﻿:root {
    --color-primary: #667eea;
    --color-primary-dark: #764ba2;
    --color-text-dark: #2d3748;
    --color-text-secondary: #718096;
    --color-text-muted: #a0aec0;
    --color-success: #48bb78;
    --color-success-dark: #38a169;
    --color-error: #f56565;
    --color-error-dark: #e53e3e;
    --color-info: #4299e1;
    --color-info-dark: #3182ce;
    --color-warning: #ecc94b;
    --color-surface-95: rgba(255, 255, 255, 0.95);
    --color-surface-98: rgba(255, 255, 255, 0.98);
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-primary: rgba(102, 126, 234, 0.3);
    --shadow-success: rgba(72, 187, 120, 0.3);
    --shadow-error: rgba(245, 101, 101, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    --gradient-success: linear-gradient(135deg, var(--color-success) 0%, var(--color-success-dark) 100%);
    --gradient-error: linear-gradient(135deg, var(--color-error) 0%, var(--color-error-dark) 100%);
    --gradient-muted: linear-gradient(135deg, var(--color-text-muted) 0%, var(--color-text-secondary) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    min-height: 100vh;
    color: var(--color-text-dark);
}

.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.home-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: floating 20s infinite linear;
}

@keyframes floating {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.home-container h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 10;
    position: relative;
}

.text-input-container {
    width: 100%;
    max-width: 600px;
    position: relative;
    margin-bottom: 25px;
    z-index: 10;
}

.text-input-label {
    position: absolute;
    left: 20px;
    top: -12px;
    background: var(--gradient-primary);
    padding: 6px 12px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 15;
}

.text-input, select {
    width: 100%;
    padding: 20px 25px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    font-size: 16px;
    color: var(--color-text-dark);
    font-weight: 500;
    box-shadow: 0 10px 40px var(--shadow-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

    .text-input:focus, select:focus {
        outline: none;
        border-color: rgba(255, 255, 255, 0.8);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15), 0 0 0 4px rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
        background: rgba(255, 255, 255, 1);
    }

.delete-icon-button {
    background: var(--gradient-error);
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: white;
    padding: 12px;
    border-radius: 50%;
    margin-left: 15px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(245, 101, 101, 0.3);
}

    .delete-icon-button:hover {
        transform: scale(1.15) rotate(5deg);
        box-shadow: 0 10px 30px rgba(245, 101, 101, 0.5);
        background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    }

.button-group {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 600px;
    margin-top: 35px;
    z-index: 10;
    position: relative;
}

.skip-button, .continue-button, .start-button {
    flex: 1;
    padding: 18px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.skip-button {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
}

    .skip-button:disabled {
        background: var(--gradient-muted);
        cursor: not-allowed;
        transform: none;
    }

.continue-button {
    background: var(--gradient-success);
    color: white;
}

    .continue-button:disabled {
        background: var(--gradient-muted);
        cursor: not-allowed;
    }

.start-button {
    background: var(--gradient-success);
    color: white;
    max-width: 300px;
    margin: 0 auto;
}

    .skip-button:not(:disabled):hover,
    .continue-button:not(:disabled):hover,
    .start-button:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    }

.skip-button:not(:disabled):hover {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
}

.continue-button:not(:disabled):hover, .start-button:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.two-column-container {
    display: flex;
    gap: 25px;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 25px;
    z-index: 10;
    position: relative;
}

.column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.language-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.language-wrapper, .wide-language-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
}

.add-language-button, .remove-language-button {
    width: 45px;
    height: 45px;
    font-size: 24px;
    font-weight: bold;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-language-button {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.3);
}

.remove-language-button {
    background: var(--gradient-error);
    color: white;
    box-shadow: 0 6px 20px rgba(245, 101, 101, 0.3);
}

    .add-language-button:hover, .remove-language-button:hover {
        transform: scale(1.15);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

.custom-upload {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 25px;
    border: 2px dashed rgba(255, 255, 255, 0.6);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

    .custom-upload:hover {
        border-color: rgba(255, 255, 255, 1);
        background: rgba(255, 255, 255, 1);
        transform: translateY(-2px);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    }

.upload-button {
    padding: 12px 20px;
    background: var(--gradient-success);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

    .upload-button:hover:not(:disabled) {
        background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
        transform: scale(1.05);
    }

    .upload-button:disabled {
        background: #a0aec0;
        cursor: not-allowed;
    }

.char-counter {
    position: absolute;
    right: 15px;
    bottom: 15px;
    font-size: 11px;
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 10px;
    font-weight: 500;
}

    .char-counter.max-reached {
        color: var(--color-error);
        background: rgba(245, 101, 101, 0.1);
    }

.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    background: #ffffff;
    color: #374151;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

    .back-button:hover {
        background: #f3f4f6;
        border-color: rgba(0, 0, 0, 0.15);
        transform: translateX(-4px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

.screen-share-layout {
    display: flex;
    flex-direction: row;
    gap: 25px;
    padding: 25px;
    height: 100vh;
    background: var(--gradient-primary);
    font-family: inherit;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: #374151;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: modernSpin 1.2s linear infinite;
    margin: 0 auto 25px auto;
}

@keyframes modernSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-content p {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    opacity: 0.9;
}

/* Таймер */
.timer {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 16px;
    color: var(--color-text-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    border-radius: 50px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 200;
}

.timer-icon {
    font-size: 18px;
    color: var(--color-primary);
}

.screen-container {
    flex: 1.8;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    min-width: 0;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.screen-area {
    width: 100%;
    height: 60vh;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    min-height: 400px;
}

    .screen-area:hover {
        border-color: rgba(255, 255, 255, 0.4);
    }

.microphone-toggle-button {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    z-index: 150;
}

    .microphone-toggle-button:hover {
        transform: scale(1.1);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    }

    .microphone-toggle-button i.fa-microphone {
        color: var(--color-success);
        font-size: 18px;
    }

    .microphone-toggle-button i.fa-microphone-slash {
        color: var(--color-error);
        font-size: 18px;
    }

.screenshot-button {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: rgba(72, 187, 120, 0.95);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.3);
    z-index: 150;
}

    .screenshot-button:hover {
        background: rgba(72, 187, 120, 1);
        transform: scale(1.1);
        box-shadow: 0 12px 35px rgba(72, 187, 120, 0.5);
    }

    .screenshot-button i {
        font-size: 18px;
    }

.transcription-container {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    min-height: 200px;
}

.transcription-box {
    width: 100%;
    flex: 1;
    border: none;
    border-radius: 20px;
    padding: 20px;
    font-size: 15px;
    line-height: 1.6;
    resize: none;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    color: var(--color-text-dark);
    padding-bottom: 60px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    overflow-y: auto;
}

    .transcription-box:focus {
        box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.3);
        transform: translateY(-2px);
    }

    .transcription-box::placeholder {
        color: #a0aec0;
        font-style: italic;
    }

.keyboard-shortcut-hint {
    position: absolute;
    bottom: 50px;
    right: 18px;
    font-size: 11px;
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 10px;
    font-weight: 500;
    pointer-events: none;
    opacity: 0.7;
}

.clear-button {
    position: absolute;
    bottom: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-text-secondary);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 10px 18px;
    font-size: 13px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

    .clear-button:hover {
        background: var(--color-error);
        color: white;
        transform: scale(1.05);
        box-shadow: 0 6px 20px var(--shadow-error);
    }

.response-container {
    flex: 2.2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 450px;
    max-width: 700px;
}

.response-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 25px;
    position: relative;
    overflow-y: auto;
    padding-bottom: 80px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.3) transparent;
    height: calc(100vh - 200px);
}

    .response-box::-webkit-scrollbar {
        width: 6px;
    }

    .response-box::-webkit-scrollbar-track {
        background: transparent;
    }

    .response-box::-webkit-scrollbar-thumb {
        background: rgba(102, 126, 234, 0.3);
        border-radius: 3px;
    }

        .response-box::-webkit-scrollbar-thumb:hover {
            background: rgba(102, 126, 234, 0.5);
        }

.question-box {
    padding: 18px;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 16px;
    border-left: 4px solid var(--color-primary);
    margin-bottom: 20px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-box strong {
    font-size: 11px;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.copy-icon-button, .transfer-icon-button {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.copy-icon-button {
    top: 18px;
    right: 18px;
}

.transfer-icon-button {
    top: 18px;
    left: 18px;
}

.copy-icon-button:hover {
    color: var(--color-success);
    background: rgba(72, 187, 120, 0.1);
    transform: scale(1.1);
}

.transfer-icon-button:hover {
    color: var(--color-primary);
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.1);
}

.main-buttons-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: row;
    gap: 15px;
    z-index: 300;
    align-items: center;
}

.response-button {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border: none;
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(66, 153, 225, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 140px;
    text-align: center;
}

    .response-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .response-button:hover::before {
        left: 100%;
    }

    .response-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(66, 153, 225, 0.4);
        background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    }

.share-button, .stop-button {
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    min-width: 140px;
    text-align: center;
}

.share-button {
    background: var(--gradient-success);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

    .share-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(72, 187, 120, 0.4);
        background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    }

.stop-button {
    background: var(--gradient-error);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

    .stop-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(245, 101, 101, 0.4);
        background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    }

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    overflow: hidden;
    animation: modalSlideUp 0.4s ease;
    text-align: center;
    padding: 35px;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(60px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0 0 18px 0;
    letter-spacing: 0.3px;
}

.modal-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin: 0 0 30px 0;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-button {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px
}

    .modal-button:not(.cancel) {
        background: var(--gradient-primary);
        color: white;
        box-shadow: 0 6px 20px var(--shadow-primary);
    }

        .modal-button:not(.cancel):hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
        }

    .modal-button.cancel {
        background: #f7fafc;
        color: #4a5568;
        border: 2px solid #e2e8f0;
    }

        .modal-button.cancel:hover {
            background: #edf2f7;
            border-color: #cbd5e0;
        }

/* ============================================
   Dark Mode Support for app.css
   ============================================ */

/* Body text */
html[data-theme="dark"] body {
    color: var(--text-primary);
}

/* Loading overlay */
html[data-theme="dark"] .loading-overlay {
    background: rgba(15, 23, 42, 0.95);
}

html[data-theme="dark"] .loading-content {
    color: var(--text-primary);
}

html[data-theme="dark"] .loading-content p {
    color: var(--text-secondary);
}

/* Modal dark mode */
html[data-theme="dark"] .modal {
    background: rgba(0, 0, 0, 0.8);
}

html[data-theme="dark"] .modal-content {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

html[data-theme="dark"] .modal-content h3 {
    color: var(--text-primary);
}

html[data-theme="dark"] .modal-content p {
    color: var(--text-secondary);
}

html[data-theme="dark"] .modal-button.cancel {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

html[data-theme="dark"] .modal-button.cancel:hover {
    background: var(--bg-hover);
    border-color: var(--border-color-hover);
}

/* Timer */
html[data-theme="dark"] .timer {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Transcription box */
html[data-theme="dark"] .transcription-box {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

html[data-theme="dark"] .transcription-box::placeholder {
    color: var(--text-placeholder);
}

/* Response box */
html[data-theme="dark"] .response-box {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

/* Question box */
html[data-theme="dark"] .question-box {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: var(--primary);
}

/* Back button */
html[data-theme="dark"] .back-button {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

html[data-theme="dark"] .back-button:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Icon buttons */
html[data-theme="dark"] .copy-icon-button,
html[data-theme="dark"] .transfer-icon-button {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

html[data-theme="dark"] .clear-button {
    background: var(--bg-secondary);
    color: var(--text-muted);
    border-color: var(--border-color);
}

/* Char counter */
html[data-theme="dark"] .char-counter {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

/* Keyboard shortcut hint */
html[data-theme="dark"] .keyboard-shortcut-hint {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

/* Microphone toggle */
html[data-theme="dark"] .microphone-toggle-button {
    background: var(--bg-secondary);
}

/* ============================================
   Mobile Responsive Styles
   ============================================ */
@media (max-width: 768px) {
    /* Home container */
    .home-container {
        padding: 20px 16px;
    }

    .home-container h1 {
        font-size: 2rem;
        margin-bottom: 24px;
    }

    /* Text inputs */
    .text-input-container {
        max-width: 100%;
    }

    .text-input-label {
        font-size: 11px;
        padding: 4px 10px;
    }

    .text-input, select {
        padding: 16px 20px;
        font-size: 16px;
        border-radius: 20px;
    }

    /* Auth buttons */
    .auth-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .auth-buttons .btn {
        width: 100%;
    }

    /* Feature cards on home */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 20px;
    }

    /* Login/Register forms */
    .auth-form-container {
        padding: 20px;
        margin: 16px;
        max-width: 100%;
    }

    .auth-form h2 {
        font-size: 1.5rem;
    }

    /* Dashboard layout */
    .dashboard-container {
        padding: 16px;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .welcome-text {
        font-size: 1.25rem;
    }

    /* Interview setup */
    .interview-setup-form {
        padding: 16px;
    }

    .interview-setup-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }

    .interview-setup-tabs .tab {
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* Screen share / Interview screen */
    .interview-screen {
        padding: 12px;
    }

    .transcript-panel {
        max-height: 40vh;
    }

    .control-panel {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .control-button {
        padding: 12px;
        min-width: 48px;
    }

    /* Mock interview */
    .mock-interview-container {
        padding: 16px;
    }

    .mock-question-card {
        padding: 16px;
    }

    /* Analytics */
    .analytics-container {
        padding: 16px;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .chart-container {
        height: 250px;
    }

    /* History */
    .history-container {
        padding: 16px;
    }

    .history-item {
        flex-direction: column;
        gap: 12px;
    }

    .history-item-details {
        width: 100%;
    }

    .history-item-actions {
        width: 100%;
        justify-content: flex-end;
    }

    /* Profile */
    .profile-container {
        padding: 16px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Settings */
    .settings-container {
        padding: 16px;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    /* Career coach */
    .career-coach-container {
        padding: 16px;
    }

    .chat-container {
        height: calc(100vh - 200px);
    }

    .chat-input {
        padding: 12px;
    }

    /* Admin panel */
    .admin-container {
        padding: 16px;
    }

    .admin-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .admin-table {
        font-size: 14px;
    }

    .admin-table th,
    .admin-table td {
        padding: 8px;
    }

    /* Token package cards */
    .token-packages {
        grid-template-columns: 1fr;
    }

    .token-package-card {
        padding: 20px;
    }

    /* Notifications panel */
    .notifications-panel {
        width: 100%;
        max-width: none;
        right: 0;
        left: 0;
        border-radius: 0;
        max-height: 70vh;
    }

    /* Mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
    }

    .desktop-nav {
        display: none;
    }

    /* Touch-friendly targets */
    button,
    a,
    .clickable {
        min-height: 44px;
        min-width: 44px;
    }

    /* Interview role badge */
    .role-badge {
        font-size: 11px;
        padding: 4px 8px;
    }

    /* Loading overlay */
    .loading-overlay {
        padding: 20px;
    }

    .loading-text {
        font-size: 14px;
    }
}

/* Small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    .home-container h1 {
        font-size: 1.5rem;
    }

    .text-input, select {
        padding: 14px 16px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }
}

/* Accessibility: respect user's reduced motion preferences (#17) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}