/* ============================================
   VOICE GENERATOR SPECIFIC STYLES
   ============================================ */

.voice .output-item {
    padding-top: 0;
    padding-bottom: 0;
}

.voice-library-link {
    margin-bottom: 20px;
}

.voice-library-link a {
    color: #4CAF50;
    text-decoration: none;
}

.voice-library-link a:hover {
    text-decoration: underline;
}

#voice-name {
    text-align: left;
}

#voice-name::placeholder {
    color: #f0f0f0;
}

.voice-name-hint {
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.voice-audio-upload {
    width: 100%;
    padding: 10px;
    background: #132232;
    border: 1px solid #223552;
    border-radius: 4px;
    color: #88aacc;
    font-size: 14px;
    cursor: pointer;
    height: fit-content;
    box-sizing: border-box;
}

.voice-audio-upload::-webkit-file-upload-button {
    background: #48658b;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    color: #f0f0f0;
    cursor: pointer;
    margin-right: 10px;
}

.voice-audio-upload::-webkit-file-upload-button:hover {
    background: #5a7ba6;
}

.voice-clone-hint {
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px;
    border-left: 3px solid #ffc107;
}

.voice-title {
    margin: 0 0 15px 0;
    font-size: 36px;
    text-align: center;
}

.voice-desc {
    /* font-size: 0.9em;
    color: #aabbcc;
    margin: 0 0 10px 0;
    line-height: 1.4; */
}

/* ============================================
   CHATTERBOX VOICE CLONING STYLES
   ============================================ */

.chatterbox-upload-section {
    margin-bottom: 20px;
}

.chatterbox-upload-hint {
    font-size: 14px;
    color: #88aacc;
    margin: 5px 0 15px 0;
    line-height: 1.5;
}

.chatterbox-upload-hint .tip-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

/* WAV Uploads Selector Grid */
.wav-uploads-selector {
    margin-bottom: 15px;
}

.wav-uploads-selector .uploads-label {
    font-size: 14px;
    color: #88aacc;
    margin-bottom: 10px;
    display: block;
}

.wav-uploads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.wav-upload-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: #132232;
    border: 2px solid #223552;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.wav-upload-item:hover {
    border-color: #48658b;
    background: #1a2d42;
}

.wav-upload-item.selected {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.wav-upload-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 6px;
}

.wav-upload-icon svg {
    width: 100%;
    height: 100%;
    stroke: #88aacc;
}

.wav-upload-item.selected .wav-upload-icon svg {
    stroke: #4CAF50;
}

.wav-upload-name {
    font-size: 11px;
    color: #88aacc;
    text-align: center;
    word-break: break-word;
    line-height: 1.3;
}

.wav-select-check {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: #4CAF50;
    border-radius: 50%;
    color: white;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.wav-upload-item.selected .wav-select-check {
    opacity: 1;
    transform: scale(1);
}

.wav-uploads-hint {
    font-size: 12px;
    color: #667788;
    margin: 0;
}

.wav-uploads-hint a {
    color: #4CAF50;
}

/* Upload divider */
.upload-divider {
    text-align: center;
    margin: 15px 0;
    color: #88aacc;
    font-size: 13px;
}

/* Chatterbox audio preview */
.chatterbox-audio-preview {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    padding: 15px;
    background: #132232;
    border: 1px solid #223552;
    border-radius: 8px;
}

.chatterbox-audio-preview audio {
    width: 100%;
    height: 40px;
}

.chatterbox-audio-preview .remove-file-btn {
    align-self: flex-start;
}

/* Warning hint styling */
.voice-clone-hint.warning-hint {
    margin-top: 15px;
    border-left-color: #ff9800;
}