/**
 * VOICE-TO-PDF STYLES - VERSIÓN MODERNA
 * Capturador intuitivo y visual de voz → PDF
 */

.voice-pdf-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    padding-bottom: 40px;
}

/* HEADER */
.voice-pdf-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 32px 24px;
    background: linear-gradient(135deg, rgba(196, 214, 0, 0.1) 0%, rgba(220, 235, 80, 0.05) 100%);
    border: 1px solid rgba(196, 214, 0, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.voice-title {
    font-size: 42px;
    font-weight: 700;
    margin: 16px 0;
    background: linear-gradient(135deg, var(--lime-primary, #c4d600) 0%, var(--lime-light, #dceb50) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.voice-subtitle {
    font-size: 16px;
    color: var(--text-secondary, #aaa);
    margin: 12px 0 0 0;
}

/* MAIN LAYOUT */
.voice-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    margin-bottom: 24px;
}

/* INPUT SECTION */
.voice-input-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* TABS */
.voice-section-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary, #141829);
    border: 1px solid rgba(196, 214, 0, 0.1);
    border-radius: 12px;
}

.voice-tab {
    padding: 12px 16px;
    background: rgba(196, 214, 0, 0.05);
    border: 1px solid rgba(196, 214, 0, 0.2);
    border-radius: 8px;
    color: var(--text-primary, #e0e0e0);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.voice-tab:hover {
    background: rgba(196, 214, 0, 0.15);
    border-color: rgba(196, 214, 0, 0.4);
}

.voice-tab.active {
    background: linear-gradient(135deg, var(--lime-primary, #c4d600) 0%, var(--lime-light, #dceb50) 100%);
    color: var(--bg-primary, #0a0e27);
    border-color: var(--lime-primary, #c4d600);
    box-shadow: 0 0 20px rgba(196, 214, 0, 0.3);
}

/* MICROPHONE SECTION */
.voice-microphone {
    background: var(--bg-secondary, #141829);
    border: 2px solid rgba(196, 214, 0, 0.2);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    transition: all 0.3s ease;
}

.voice-microphone:hover {
    border-color: rgba(196, 214, 0, 0.4);
    background: rgba(196, 214, 0, 0.02);
}

.voice-mic-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lime-primary, #c4d600) 0%, var(--lime-light, #dceb50) 100%);
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--bg-primary, #0a0e27);
    font-weight: 700;
    box-shadow: 0 8px 30px rgba(196, 214, 0, 0.3);
    transition: all 0.3s ease;
    font-size: 40px;
}

.voice-mic-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(196, 214, 0, 0.4);
}

.voice-mic-btn:active {
    transform: scale(0.95);
}

.voice-mic-btn.recording {
    animation: mic-pulse 1.5s infinite;
    box-shadow: 0 0 40px rgba(196, 214, 0, 0.6);
}

@keyframes mic-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(196, 214, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(196, 214, 0, 0);
    }
}

.mic-icon {
    font-size: 48px;
    display: block;
}

.mic-text {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mic-status {
    min-height: 20px;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: #ff4444;
    border-radius: 50%;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.voice-hint {
    font-size: 13px;
    padding: 8px 12px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 6px;
    color: var(--text-primary, #e0e0e0);
    transition: all 0.3s ease;
}

.voice-hint.active {
    background: rgba(196, 214, 0, 0.1);
    border-color: rgba(196, 214, 0, 0.3);
}

/* CONTROL BUTTONS */
.voice-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn.btn-small {
    padding: 12px 16px;
    background: rgba(196, 214, 0, 0.1);
    border: 1px solid rgba(196, 214, 0, 0.2);
    border-radius: 8px;
    color: var(--text-primary, #e0e0e0);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.btn.btn-small:hover {
    background: rgba(196, 214, 0, 0.2);
    border-color: rgba(196, 214, 0, 0.4);
    transform: translateY(-2px);
}

/* LANGUAGE SELECTOR */
.voice-language-selector {
    padding: 16px;
    background: rgba(196, 214, 0, 0.05);
    border: 1px solid rgba(196, 214, 0, 0.1);
    border-radius: 8px;
}

.voice-language-selector label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary, #e0e0e0);
}

.voice-language-selector select {
    width: 100%;
    padding: 10px;
    background: var(--bg-primary, #0a0e27);
    border: 1px solid rgba(196, 214, 0, 0.2);
    border-radius: 6px;
    color: var(--text-primary, #e0e0e0);
    cursor: pointer;
    font-size: 13px;
}

.voice-language-selector select:hover {
    border-color: rgba(196, 214, 0, 0.4);
}

/* PREVIEW SECTION */
.voice-preview-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-secondary, #141829);
    border: 1px solid rgba(196, 214, 0, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(196, 214, 0, 0.1);
}

.preview-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--text-primary, #e0e0e0);
}

.preview-section-title {
    background: linear-gradient(135deg, var(--lime-primary, #c4d600) 0%, var(--lime-light, #dceb50) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 14px;
}

/* LIVE PREVIEW */
.voice-live-preview {
    background: linear-gradient(135deg, rgba(196, 214, 0, 0.05) 0%, rgba(220, 235, 80, 0.02) 100%);
    border: 2px dashed rgba(196, 214, 0, 0.2);
    border-radius: 8px;
    padding: 20px;
    min-height: 120px;
    max-height: 200px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.voice-live-preview:hover {
    border-color: rgba(196, 214, 0, 0.4);
    background: linear-gradient(135deg, rgba(196, 214, 0, 0.1) 0%, rgba(220, 235, 80, 0.05) 100%);
}

.preview-content {
    margin: 0;
    color: var(--text-primary, #e0e0e0);
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
}

.preview-interim {
    margin: 8px 0 0 0;
    color: var(--text-muted, #888);
    font-size: 13px;
    font-style: italic;
    opacity: 0.7;
    animation: pulse-text 0.5s infinite alternate;
}

@keyframes pulse-text {
    from {
        opacity: 0.5;
    }
    to {
        opacity: 0.9;
    }
}

.preview-empty {
    color: var(--text-muted, #888);
    font-size: 13px;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* PREVIEW FULL */
.preview-full {
    padding-top: 16px;
    border-top: 2px solid rgba(196, 214, 0, 0.1);
}

.preview-full h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: var(--text-primary, #e0e0e0);
}

.preview-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 12px;
}

.preview-section {
    padding: 12px;
    background: rgba(196, 214, 0, 0.08);
    border-left: 3px solid var(--lime-primary, #c4d600);
    border-radius: 6px;
}

.preview-section h5 {
    margin: 0 0 6px 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--lime-primary, #c4d600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-section p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary, #aaa);
    line-height: 1.5;
}

/* SCROLLBAR STYLING */
.preview-text::-webkit-scrollbar,
.voice-live-preview::-webkit-scrollbar {
    width: 6px;
}

.preview-text::-webkit-scrollbar-track,
.voice-live-preview::-webkit-scrollbar-track {
    background: transparent;
}

.preview-text::-webkit-scrollbar-thumb,
.voice-live-preview::-webkit-scrollbar-thumb {
    background: rgba(196, 214, 0, 0.2);
    border-radius: 3px;
}

.preview-text::-webkit-scrollbar-thumb:hover,
.voice-live-preview::-webkit-scrollbar-thumb:hover {
    background: rgba(196, 214, 0, 0.4);
}

/* FOOTER */
.voice-footer {
    display: flex;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(196, 214, 0, 0.1) 0%, rgba(220, 235, 80, 0.05) 100%);
    border: 1px solid rgba(196, 214, 0, 0.2);
    border-radius: 12px;
    gap: 12px;
}

.btn.btn-primary-large {
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--lime-primary, #c4d600) 0%, var(--lime-light, #dceb50) 100%);
    border: none;
    border-radius: 8px;
    color: var(--bg-primary, #0a0e27);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(196, 214, 0, 0.3);
}

.btn.btn-primary-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(196, 214, 0, 0.4);
}

.btn.btn-primary-large:active {
    transform: translateY(-2px);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .voice-layout {
        grid-template-columns: 1fr;
    }

    .voice-section-tabs {
        grid-template-columns: repeat(2, 1fr);
    }

    .voice-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .voice-pdf-container {
        padding: 16px;
    }

    .voice-pdf-header {
        padding: 24px 16px;
    }

    .voice-title {
        font-size: 28px;
    }

    .voice-subtitle {
        font-size: 14px;
    }

    .voice-section-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px;
    }

    .voice-tab {
        padding: 10px 12px;
        font-size: 12px;
    }

    .voice-mic-btn {
        width: 100px;
        height: 100px;
        font-size: 36px;
    }

    .mic-text {
        font-size: 11px;
    }

    .preview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .voice-controls {
        grid-template-columns: 1fr 1fr;
    }

    .btn.btn-primary-large {
        padding: 14px 32px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .voice-pdf-container {
        padding: 12px;
    }

    .voice-pdf-header {
        padding: 20px 12px;
        margin-bottom: 24px;
    }

    .voice-title {
        font-size: 24px;
    }

    .voice-subtitle {
        font-size: 13px;
    }

    .voice-section-tabs {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 8px;
    }

    .voice-tab {
        padding: 10px;
        font-size: 12px;
    }

    .voice-layout {
        gap: 16px;
    }

    .voice-microphone {
        padding: 20px 16px;
    }

    .voice-mic-btn {
        width: 90px;
        height: 90px;
        font-size: 32px;
    }

    .voice-controls {
        gap: 8px;
    }

    .btn.btn-small {
        padding: 10px 12px;
        font-size: 12px;
    }

    .voice-live-preview {
        min-height: 100px;
        max-height: 150px;
        padding: 16px;
    }

    .preview-text {
        max-height: 200px;
    }

    .voice-footer {
        padding: 16px;
        flex-direction: column;
    }

    .btn.btn-primary-large {
        width: 100%;
        padding: 13px;
        font-size: 13px;
    }
}
