/* Общие стили */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    /* Light theme (default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f7fa;
    --bg-tertiary: #f9fafb;
    --text-primary: #333;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --border-color: #e5e7eb;
    --border-color-light: #f3f4f6;
    --shadow-sm: rgba(0, 0, 0, 0.05);
    --shadow-md: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] {
    /* Dark theme */
    --bg-primary: #1f2937;
    --bg-secondary: #111827;
    --bg-tertiary: #1e293b;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-tertiary: #9ca3af;
    --border-color: #374151;
    --border-color-light: #4b5563;
    --shadow-sm: rgba(0, 0, 0, 0.3);
    --shadow-md: rgba(0, 0, 0, 0.4);
    --shadow-lg: rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Страница логина */
body.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 70px; /* Space for fixed header */
}

h1, h2 {
    margin: 0;
    color: #333;
}

h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 600;
}

/* Контейнер авторизации */
.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 32px 24px;
    text-align: center;
}

.auth-header h1 {
    color: white;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
}

.auth-form {
    padding: 32px 24px;
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

input[type="text"], 
input[type="password"], 
input[type="email"],
input[type="file"], 
select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #333;
}

input[type="text"]:focus, 
input[type="password"]:focus, 
input[type="email"]:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input::placeholder {
    color: #9ca3af;
}

.btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.auth-links {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.auth-links a {
    color: #667eea;
    text-decoration: none;
    display: block;
    margin: 8px 0;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.message.error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
    display: block;
    opacity: 1;
    animation: messageIn 0.3s ease;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    display: block;
    opacity: 1;
    animation: messageIn 0.3s ease;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-text {
    color: #666;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Dashboard стили */
body.dashboard-page {
    background: #f5f7fa;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-top: 70px; /* Space for fixed header */
}

/* Layout с сайдбаром */
.dashboard-layout {
    display: flex;
    flex: 1;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 280px;
    min-width: 280px;
    background: white;
    border-right: 1px solid #e5e7eb;
    padding: 24px 0;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-title {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 20px;
    margin: 0 0 12px 0;
}

.sidebar-items {
    display: flex;
    flex-direction: column;
}

.sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
    font-size: 14px;
    position: relative;
}

.sidebar-item:hover {
    background: #f3f4f6;
}

.sidebar-item.active {
    background: #ede9fe;
    color: #7c3aed;
    font-weight: 500;
}

.sidebar-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #7c3aed;
}

.sidebar-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.folder-name {
    flex: 1;
    word-break: break-word;
    line-height: 1.3;
}

.folder-count {
    font-size: 12px;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}

.folder-actions {
    display: none;
    gap: 4px;
    flex-shrink: 0;
    margin-top: 2px;
}

.sidebar-item:hover .folder-actions {
    display: flex;
}

.sidebar-item:hover .folder-count {
    display: none;
}

.folder-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.folder-action-btn:hover {
    background: #e5e7eb;
}

.sidebar-add-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    color: #6b7280;
    font-size: 14px;
    transition: all 0.2s ease;
}

.sidebar-add-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.sidebar-empty {
    padding: 12px 20px;
    color: #9ca3af;
    font-size: 13px;
    font-style: italic;
}

.dashboard-container {
    flex: 1;
    padding: 40px 20px;
    width: 100%;
    max-width: none;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    z-index: 2;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.modal-icon {
    font-size: 24px;
}

.modal-header h2 {
    flex: 1;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    text-align: left;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #374151;
}

.modal-description {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 20px 0;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-body label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.modal-body input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.modal-body input:focus {
    border-color: #2563eb;
}

.modal-footer {
    display: flex;
    justify-content: stretch;
}

.btn-modal {
    width: 100%;
    padding: 14px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-modal:hover {
    background: #2563eb;
}

/* Folder select list in modal */
.folder-select-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.folder-select-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f3f4f6;
}

.folder-select-item:last-child {
    border-bottom: none;
}

.folder-select-item:hover {
    background: #f9fafb;
}

.folder-select-item.active {
    background: #ede9fe;
}

.folder-select-icon {
    font-size: 18px;
}

.folder-select-item span:nth-child(2) {
    flex: 1;
}

.folder-select-check {
    color: #7c3aed;
    font-weight: bold;
}

.folder-select-empty {
    padding: 24px;
    text-align: center;
    color: #6b7280;
}

.folder-select-empty p {
    margin: 0 0 12px 0;
}

.folder-select-empty button {
    width: auto;
}

/* Duplicate files list in modal */
.duplicate-files-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.duplicate-file-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s;
}

.duplicate-file-item:last-child {
    border-bottom: none;
}

.duplicate-file-item:hover {
    background: #f3f4f6;
}

.duplicate-file-name {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
    word-break: break-word;
}

.duplicate-file-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6b7280;
}

.duplicate-file-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.duplicate-file-status.completed {
    background: #d1fae5;
    color: #065f46;
}

.duplicate-file-status.processing {
    background: #dbeafe;
    color: #1e40af;
}

.duplicate-file-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.duplicate-file-status.failed {
    background: #fee2e2;
    color: #991b1b;
}

.duplicate-similarity {
    font-weight: 600;
    color: #7c3aed;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.dashboard-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.dashboard-header .subtitle {
    color: #666;
    font-size: 16px;
}

.upload-section {
    margin-bottom: 40px;
}

.upload-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.upload-card h2 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 24px;
    color: #333;
}

.file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9fafb;
    margin-bottom: 24px;
}

.file-upload-area:hover {
    border-color: #667eea;
    background: #f3f4f6;
}

.file-upload-area.dragover {
    border-color: #667eea;
    background: #ede9fe;
}

.file-upload-area.has-file {
    border-color: #10b981;
    background: #ecfdf5;
}

.upload-placeholder svg {
    color: #9ca3af;
    margin-bottom: 16px;
}

.upload-text {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin: 8px 0;
}

.upload-hint {
    font-size: 14px;
    color: #9ca3af;
    margin: 4px 0;
}

.form-group {
    margin-bottom: 24px;
    text-align: center;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    text-align: center;
}

.select-input {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 12px 40px 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.select-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-large {
    padding: 16px;
    font-size: 16px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.progress-container {
    margin-top: 24px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: #374151;
}

.progress-bar-wrapper {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.transcripts-section {
    margin-top: 40px;
}

.transcripts-section h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 24px;
}

.transcripts-list {
    display: grid;
    gap: 16px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.empty-state p {
    margin: 8px 0;
    font-size: 16px;
}

.empty-state .hint {
    font-size: 14px;
    color: #d1d5db;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

.transcript-item {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

.transcript-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.transcript-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.transcript-preview {
    margin: 8px 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transcript-meta {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #9ca3af;
}

.transcript-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.transcript-header h3 {
    margin-right: auto;
}

.folder-badge {
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-failed {
    background: #fee2e2;
    color: #991b1b;
}

.progress-section {
    margin: 12px 0;
}

.progress-indicator {
    position: relative;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-small {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.status-message {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #6b7280;
    font-style: italic;
}

.processing-timer {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #667eea;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.processing-timer .timer-value {
    font-family: monospace;
    font-weight: 600;
}

.processing-timer.completed {
    color: #059669;
    font-weight: 600;
}

.processing-timer.completed .timer-value {
    color: #047857;
}

.error-message {
    color: #dc2626;
    font-size: 14px;
    margin: 8px 0;
}

.processing-text {
    color: #6b7280;
    font-size: 14px;
    font-style: italic;
}

.transcript-actions {
    display: flex;
    gap: 12px;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    padding: 10px 20px;
    font-size: 14px;
}

.btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.btn-small {
    width: auto;
    padding: 8px 12px;
    font-size: 14px;
    min-width: auto;
}

.btn-danger {
    background: #fee2e2;
    color: #dc2626;
}

.btn-danger:hover {
    background: #fecaca;
    transform: translateY(-1px);
}

/* Контейнер логина и upload для других страниц */
#loginContainer, #uploadContainer {
    max-width: 400px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Прогресс бар */
progress {
    width: 100%;
    height: 20px;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 10px;
}

/* Сообщения */
#loginMessage, #result {
    margin-top: 15px;
    font-size: 14px;
    color: #555;
    word-wrap: break-word;
}

/* Список аудио */
#audioList {
    list-style-type: none;
    padding: 0;
    max-width: 600px;
    margin: 20px auto;
}

#audioList li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    font-size: 14px;
}

#audioList button {
    width: auto;
    padding: 6px 12px;
    background-color: #2196F3;
}

#audioList button:hover {
    background-color: #1976D2;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.header-content {
    width: 100%;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.header-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-link-logout {
    background: rgba(255, 255, 255, 0.2);
}

.nav-link-logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    white-space: nowrap;
    line-height: 1.2;
}

.lang-btn span {
    vertical-align: middle;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lang-arrow {
    font-size: 10px;
    opacity: 0.8;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    overflow: hidden;
    display: none;
    z-index: 1000;
}

.language-dropdown.show {
    display: block;
    animation: dropdownSlide 0.2s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    color: #374151;
}

.lang-option:hover {
    background: #f3f4f6;
}

.lang-option:first-child {
    border-radius: 12px 12px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 12px 12px;
}

.lang-flag {
    font-size: 20px;
}

.lang-name {
    font-size: 14px;
    font-weight: 500;
}

/* Use Cases Section */
.use-cases-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 60px 20px;
    margin-top: 40px;
}

.use-cases-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.use-cases-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
}

.use-cases-subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 48px;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.use-case-card {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.use-case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.use-case-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.use-case-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.use-case-icon-blue {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.use-case-icon-purple {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
}

.use-case-icon-green {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.use-case-icon-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.use-case-icon-pink {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.use-case-icon-teal {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.use-case-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px;
}

.use-case-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* How to Use Section */
.how-to-section {
    background: #f8fafc;
    padding: 60px 20px;
    margin-top: 0;
    scroll-margin-top: 80px;
}

.how-to-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.how-to-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
}

.how-to-subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 48px;
}

.how-to-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.how-to-step {
    text-align: center;
}

.step-card {
    height: 220px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.step-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.step-card-1 {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
}

.step-card-2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.step-card-3 {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.step-icon {
    width: 64px;
    height: 64px;
    color: rgba(255, 255, 255, 0.9);
}

.step-icon svg {
    width: 100%;
    height: 100%;
}

.step-icon-text {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.step-button {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 28px;
    border-radius: 25px;
    color: white;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-button-accent {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.sparkle {
    font-size: 16px;
}

.step-formats {
    display: flex;
    gap: 8px;
}

.format-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 13px;
}

.how-to-step h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px;
}

.how-to-step p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    max-width: 280px;
    margin: 0 auto;
}

/* Reviews Section */
.reviews-section {
    background: white;
    padding: 60px 20px;
    scroll-margin-top: 80px;
}

.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
}

.reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

.reviews-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.btn-add-review {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-review:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f8fafc;
}

.btn-add-review svg {
    width: 18px;
    height: 18px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.review-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.review-quote {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.review-quote svg {
    width: 20px;
    height: 20px;
    color: white;
}

.review-text {
    font-size: 14px;
    line-height: 1.7;
    color: #475569;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-rating {
    margin-bottom: 12px;
}

.review-rating .star {
    color: #fbbf24;
    font-size: 18px;
}

.review-author {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

/* Review Modal */
.modal-review {
    max-width: 500px;
}

.modal-review textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

.modal-review textarea:focus {
    outline: none;
    border-color: #667eea;
}

.star-rating {
    display: flex;
    gap: 8px;
}

.star-btn {
    font-size: 28px;
    color: #e2e8f0;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.star-btn:hover,
.star-btn.active {
    color: #fbbf24;
    transform: scale(1.1);
}

/* FAQ Section */
.faq-section {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 60px 20px;
    margin-top: 0;
    scroll-margin-top: 80px; /* Account for fixed header */
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.faq-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
}

.faq-description {
    color: #4b5563;
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 24px;
}

.faq-contact {
    color: #6b7280;
    font-size: 14px;
}

.faq-contact a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.faq-contact a:hover {
    text-decoration: underline;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 500;
    color: #1f2937;
    font-size: 15px;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: #f9fafb;
    color: #9034ea;
}

.faq-arrow {
    width: 20px;
    height: 20px;
    color: #9ca3af;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: #667eea;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: #4b5563;
    line-height: 1.7;
    font-size: 14px;
    margin: 0;
}

.faq-answer strong {
    color: #1f2937;
}

/* Footer */
.footer {
    background: #1f2937;
    color: #9ca3af;
    margin-top: auto;
    padding: 48px 20px 24px;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    padding-right: 20px;
}

.footer-logo {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 20px;
    color: #9ca3af;
}

.footer-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #d1d5db;
}

.footer-nav h4,
.footer-contact h4 {
    color: white;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 20px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: #667eea;
}

.footer-contact p {
    font-size: 14px;
    margin: 0 0 16px;
    color: #9ca3af;
}

.footer-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-email:hover {
    color: #818cf8;
}

.footer-email svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.footer-made {
    color: #9ca3af !important;
}

/* ================================
   EXPORT MODAL
   ================================ */
.modal-export {
    max-width: 700px;
}

.export-formats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 8px 0;
}

.export-format-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.export-format-card:hover {
    border-color: #667eea;
    background: #f3f0ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.export-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.export-icon svg {
    width: 32px;
    height: 32px;
}

.export-icon-docx {
    background: #e3f2fd;
    color: #1976d2;
}

.export-icon-xlsx {
    background: #e8f5e9;
    color: #388e3c;
}

.export-icon-srt {
    background: #ffebee;
    color: #d32f2f;
}

.export-icon-txt {
    background: #e3f2fd;
    color: #1976d2;
}

.export-format-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.export-format-desc {
    font-size: 12px;
    color: #6b7280;
}

/* ================================
   RESPONSIVE - TABLET (768px - 1024px)
   ================================ */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
        min-width: 240px;
    }
    
    .dashboard-container {
        padding: 30px 16px;
    }
    
    .dashboard-header h1 {
        font-size: 28px;
    }
    
    .upload-card {
        padding: 24px;
    }
    
    .file-upload-area {
        padding: 30px 20px;
    }
    
    .transcript-item {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .transcript-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .transcript-actions .btn {
        flex: 1;
        min-width: 100px;
    }
}

/* ================================
   RESPONSIVE - TABLET SMALL (max 768px)
   ================================ */
@media (max-width: 768px) {
    /* Sidebar becomes overlay on mobile */
    .dashboard-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        min-width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding: 16px 0;
        display: none;
    }
    
    .sidebar.mobile-open {
        display: block;
    }
    
    .sidebar-section {
        margin-bottom: 16px;
    }
    
    .sidebar-items {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0 12px;
        gap: 8px;
    }
    
    .sidebar-item {
        padding: 10px 14px;
        border-radius: 20px;
        background: #f3f4f6;
        flex: 0 0 auto;
    }
    
    .sidebar-item.active {
        background: #ede9fe;
    }
    
    .sidebar-item.active::before {
        display: none;
    }
    
    .sidebar-title {
        padding: 0 16px;
    }
    
    .sidebar-add-btn {
        margin: 8px 12px;
        width: auto;
        border-radius: 20px;
        background: #f3f4f6;
        justify-content: center;
    }
    
    .folder-actions {
        display: none !important;
    }
    
    .folder-count {
        display: inline-block !important;
    }
    
    /* Header adjustments */
    .header-content {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .header-logo h2 {
        font-size: 20px;
    }
    
    .header-nav {
        gap: 12px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    /* Dashboard */
    .dashboard-container {
        padding: 20px 16px;
    }
    
    .dashboard-header {
        margin-bottom: 24px;
    }
    
    .dashboard-header h1 {
        font-size: 24px;
    }
    
    .dashboard-header .subtitle {
        font-size: 14px;
    }
    
    /* Upload section */
    .upload-section {
        margin-bottom: 24px;
    }
    
    .upload-card {
        padding: 20px;
        border-radius: 12px;
    }
    
    .upload-card h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .file-upload-area {
        padding: 24px 16px;
    }
    
    .upload-placeholder svg {
        width: 40px;
        height: 40px;
    }
    
    .upload-text {
        font-size: 14px;
    }
    
    .upload-hint {
        font-size: 12px;
    }
    
    .select-input {
        max-width: 100%;
    }
    
    /* Transcripts */
    .transcripts-section h2 {
        font-size: 22px;
        margin-bottom: 16px;
    }
    
    .transcript-item {
        padding: 16px;
        border-radius: 10px;
    }
    
    .transcript-info h3 {
        font-size: 16px;
    }
    
    .transcript-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .transcript-header h3 {
        margin-right: 0;
        word-break: break-word;
    }
    
    .transcript-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .transcript-actions .btn {
        width: 100%;
    }
    
    /* Modals */
    .modal-content {
        margin: 16px;
        max-width: calc(100% - 32px);
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    /* Export modal responsive */
    .export-formats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .export-format-card {
        padding: 16px 12px;
    }
    
    .export-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }
    
    .export-icon svg {
        width: 24px;
        height: 24px;
    }
    
    /* Use Cases responsive */
    .use-cases-section {
        padding: 40px 16px;
    }
    
    .use-cases-title {
        font-size: 24px;
    }
    
    .use-cases-subtitle {
        font-size: 14px;
        margin-bottom: 32px;
    }
    
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .use-case-card {
        padding: 24px 16px;
    }
    
    .use-case-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }
    
    .use-case-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .use-case-card h3 {
        font-size: 16px;
    }
    
    .use-case-card p {
        font-size: 13px;
    }
    
    /* Reviews responsive */
    .reviews-section {
        padding: 40px 16px;
    }
    
    .reviews-header h2 {
        font-size: 26px;
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .review-card {
        padding: 20px;
    }
    
    /* How to Use responsive */
    .how-to-section {
        padding: 40px 16px;
    }
    
    .how-to-title {
        font-size: 24px;
    }
    
    .how-to-subtitle {
        font-size: 14px;
        margin-bottom: 32px;
    }
    
    .how-to-steps {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .step-card {
        height: 180px;
    }
    
    .step-icon {
        width: 48px;
        height: 48px;
    }
    
    .step-button {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* FAQ responsive */
    .faq-section {
        padding: 40px 16px;
    }
    
    .faq-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .faq-header h2 {
        font-size: 26px;
    }
    
    .faq-question {
        padding: 16px 20px;
        font-size: 14px;
    }
    
    .faq-answer p {
        padding: 0 20px 16px;
        font-size: 13px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 16px 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .footer-brand {
        grid-column: span 2;
        padding-right: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ================================
   RESPONSIVE - MOBILE (max 480px)
   ================================ */
@media (max-width: 480px) {
    /* Smaller header padding on mobile */
    body.dashboard-page,
    body.auth-page {
        padding-top: 55px;
    }
    
    /* Header */
    .header-content {
        padding: 10px 12px;
    }
    
    .header-logo h2 {
        font-size: 18px;
    }
    
    .header-nav {
        gap: 8px;
    }
    
    .nav-link {
        padding: 5px 8px;
        font-size: 12px;
    }
    
    .lang-btn {
        padding: 5px 8px;
        font-size: 12px;
        gap: 4px;
    }
    
    #currentLangName {
        display: none;
    }
    
    .lang-arrow {
        display: none;
    }
    
    /* Dashboard */
    .dashboard-container {
        padding: 16px 12px;
    }
    
    .dashboard-header h1 {
        font-size: 20px;
    }
    
    .dashboard-header .subtitle {
        font-size: 13px;
    }
    
    /* Upload */
    .upload-card {
        padding: 16px;
    }
    
    .upload-card h2 {
        font-size: 18px;
    }
    
    .file-upload-area {
        padding: 20px 12px;
    }
    
    .upload-placeholder svg {
        width: 36px;
        height: 36px;
    }
    
    .btn-large {
        padding: 14px;
        font-size: 14px;
    }
    
    /* Transcripts */
    .transcripts-section h2 {
        font-size: 18px;
    }
    
    .transcript-item {
        padding: 14px;
    }
    
    .transcript-info h3 {
        font-size: 14px;
    }
    
    .transcript-preview {
        font-size: 13px;
    }
    
    .transcript-meta {
        font-size: 11px;
    }
    
    .status-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .folder-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .btn-small {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    /* Sidebar mobile - horizontal scroll */
    .sidebar-items {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .sidebar-item {
        white-space: nowrap;
    }
    
    .folder-name {
        word-break: normal;
    }
    
    /* Auth pages */
    .auth-container {
        padding: 12px;
    }
    
    .auth-header {
        padding: 24px 16px;
    }
    
    .auth-header h1 {
        font-size: 26px;
    }
    
    .auth-form {
        padding: 24px 16px;
    }
    
    /* Empty state */
    .empty-state {
        padding: 40px 16px;
    }
    
    .empty-state p {
        font-size: 14px;
    }
    
    /* Language dropdown */
    .language-dropdown {
        right: -50px;
        min-width: 160px;
    }
    
    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-nav,
    .footer-contact {
        text-align: center;
    }
    
    .footer-tech {
        justify-content: center;
    }
    
    /* Reviews mobile */
    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .reviews-header h2 {
        font-size: 22px;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-add-review {
        width: 100%;
        justify-content: center;
    }
    
    /* Use Cases mobile */
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .use-cases-title {
        font-size: 22px;
    }
    
    /* FAQ mobile */
    .faq-section {
        padding: 32px 12px;
    }
    
    .faq-header h2 {
        font-size: 22px;
    }
    
    .faq-description {
        font-size: 14px;
    }
    
    .faq-question {
        padding: 14px 16px;
        font-size: 13px;
    }
    
    .faq-arrow {
        width: 18px;
        height: 18px;
    }
    
    .faq-answer p {
        padding: 0 16px 14px;
        font-size: 12px;
    }
}

/* ================================
   MOBILE SIDEBAR TOGGLE
   ================================ */
.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
}

/* ================================
   PRINT STYLES
   ================================ */
@media print {
    .header,
    .footer,
    .sidebar,
    .upload-section,
    .transcript-actions,
    .faq-section {
        display: none !important;
    }
    
    .dashboard-container {
        padding: 0;
    }
    
    .transcript-item {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}

/* ================================
   AI MODAL STYLES
   ================================ */
.modal-ai {
    max-width: 800px;
}

.ai-actions-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 24px;
}

.ai-actions-bar .btn {
    flex: 1;
    min-width: 120px;
}

.ai-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ai-section {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e5e7eb;
}

.ai-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-section-body {
    min-height: 40px;
}

.ai-section-content {
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.ai-section-empty {
    padding: 20px;
    text-align: center;
    color: #9ca3af;
    font-style: italic;
}

.ai-timestamp {
    display: block;
    margin-top: 8px;
    color: #6b7280;
    font-size: 12px;
}

/* Keywords */
.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-tag {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

/* Sentiment */
.sentiment-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
}

.sentiment-positive {
    background: #d1fae5;
    color: #065f46;
}

.sentiment-negative {
    background: #fee2e2;
    color: #991b1b;
}

.sentiment-neutral {
    background: #f3f4f6;
    color: #374151;
}

.sentiment-emoji {
    font-size: 24px;
}

.sentiment-label {
    font-weight: 600;
    flex: 1;
}

.sentiment-score {
    font-size: 14px;
    opacity: 0.8;
}

/* Category */
.category-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.category-label {
    font-weight: 600;
    color: #333;
    flex: 1;
}

.category-confidence {
    padding: 4px 8px;
    background: #667eea;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Translations */
.translation-item {
    margin-bottom: 16px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.translation-item:last-child {
    margin-bottom: 0;
}

.translation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.translation-header strong {
    color: #667eea;
    font-size: 14px;
}

.translation-header small {
    color: #6b7280;
    font-size: 12px;
}

.translation-text {
    margin: 0;
    color: #374151;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .ai-actions-bar {
        flex-direction: column;
    }
    
    .ai-actions-bar .btn {
        width: 100%;
    }
    
    .sentiment-display {
        flex-direction: column;
        text-align: center;
    }
    
    .category-display {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ================================
   TRANSCRIPT VIEW WITH AUDIO PLAYER
   ================================ */
.modal-transcript-view {
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.transcript-view-container {
    display: flex;
    flex-direction: column;
    height: calc(90vh - 100px);
    overflow: hidden;
}

/* Audio Player Section */
.audio-player-section {
    background: #f9fafb;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.audio-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.audio-btn:hover {
    transform: scale(1.05);
}

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

.audio-progress-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#audioProgress {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

#audioProgress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

#audioProgress::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}

.audio-time {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    justify-content: space-between;
}

.audio-speed-control {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.audio-speed-control label {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.audio-speed-control select {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 12px;
    background: white;
    cursor: pointer;
}

.audio-shortcuts {
    text-align: center;
    color: #9ca3af;
    font-size: 11px;
    margin-top: 8px;
}

/* Transcript Text Container */
.transcript-text-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: white;
    transition: opacity 0.3s;
}

.transcript-text {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 15px;
    color: #374151;
}

.transcript-segment {
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.transcript-segment:hover {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.transcript-segment.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.segment-time {
    display: inline-block;
    font-size: 12px;
    color: #667eea;
    font-weight: 600;
    margin-right: 8px;
    font-family: monospace;
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.transcript-segment.active .segment-time {
    background: rgba(102, 126, 234, 0.2);
    color: #764ba2;
}

.segment-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.segment-text-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    position: relative;
}

.segment-original {
    font-weight: 600;
    color: #1f2937;
    line-height: 1.6;
    flex: 1;
    min-width: 0;
}

.segment-original[contenteditable="true"] {
    background: #fef3c7;
    padding: 4px 8px;
    border-radius: 4px;
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

.segment-edit-btn,
.segment-save-btn,
.segment-cancel-btn {
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    flex-shrink: 0;
    opacity: 0.7;
}

.segment-text-wrapper:hover .segment-edit-btn {
    opacity: 1;
}

.segment-edit-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.segment-save-btn {
    background: #10b981;
    color: white;
    border-color: #10b981;
    opacity: 1;
}

.segment-save-btn:hover {
    background: #059669;
    border-color: #059669;
}

.segment-cancel-btn {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
    opacity: 1;
}

.segment-cancel-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.segment-save-btn:disabled {
    background: #9ca3af;
    border-color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.segment-translation {
    font-weight: 400;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    padding-left: 8px;
    border-left: 2px solid #e5e7eb;
    margin-top: 2px;
}

.segment-translation.loading {
    color: #9ca3af;
    font-style: italic;
}

.segment-translation.error {
    color: #ef4444;
    font-size: 12px;
}

.translation-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.translation-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

.translation-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.translation-controls select {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 12px;
    background: white;
    cursor: pointer;
}

.translation-controls select:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Bookmark Controls */
.bookmark-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
    flex-wrap: wrap;
}

.btn-undo, .btn-redo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-undo:hover:not(:disabled), .btn-redo:hover:not(:disabled) {
    background: var(--bg-tertiary);
    border-color: #667eea;
    color: #667eea;
}

.btn-undo:disabled, .btn-redo:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-undo span:first-child, .btn-redo span:first-child {
    font-size: 16px;
}

.btn-bookmark,
.btn-bookmark-jump {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #374151;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-bookmark:hover,
.btn-bookmark-jump:hover {
    background: #f9fafb;
    border-color: #667eea;
    color: #667eea;
}

.btn-bookmark.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.btn-bookmark.active:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653b91 100%);
}

.btn-bookmark span,
.btn-bookmark-jump span {
    font-size: 14px;
}

/* Bookmark icon on segment */
.bookmark-icon {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 16px;
    opacity: 0.7;
    z-index: 1;
}

.transcript-segment.has-bookmark {
    border-left: 3px solid #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.transcript-segment.has-bookmark:hover {
    background: rgba(245, 158, 11, 0.1);
}

.transcript-segment.has-bookmark.active {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(102, 126, 234, 0.1) 100%);
}

@media (max-width: 768px) {
    .audio-controls {
        flex-wrap: wrap;
    }
    
    .audio-progress-container {
        width: 100%;
        order: 3;
    }
    
    .audio-speed-control {
        order: 2;
    }
    
    .transcript-text {
        font-size: 14px;
    }
    
    .transcript-segment {
        padding: 10px 12px;
    }
}

    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.auth-links {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.auth-links a {
    color: #667eea;
    text-decoration: none;
    display: block;
    margin: 8px 0;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.message.error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
    display: block;
    opacity: 1;
    animation: messageIn 0.3s ease;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    display: block;
    opacity: 1;
    animation: messageIn 0.3s ease;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-text {
    color: #666;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Dashboard стили */
body.dashboard-page {
    background: #f5f7fa;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-top: 70px; /* Space for fixed header */
}

/* Layout с сайдбаром */
.dashboard-layout {
    display: flex;
    flex: 1;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 280px;
    min-width: 280px;
    background: white;
    border-right: 1px solid #e5e7eb;
    padding: 24px 0;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-title {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 20px;
    margin: 0 0 12px 0;
}

.sidebar-items {
    display: flex;
    flex-direction: column;
}

.sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
    font-size: 14px;
    position: relative;
}

.sidebar-item:hover {
    background: #f3f4f6;
}

.sidebar-item.active {
    background: #ede9fe;
    color: #7c3aed;
    font-weight: 500;
}

.sidebar-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #7c3aed;
}

.sidebar-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.folder-name {
    flex: 1;
    word-break: break-word;
    line-height: 1.3;
}

.folder-count {
    font-size: 12px;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}

.folder-actions {
    display: none;
    gap: 4px;
    flex-shrink: 0;
    margin-top: 2px;
}

.sidebar-item:hover .folder-actions {
    display: flex;
}

.sidebar-item:hover .folder-count {
    display: none;
}

.folder-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.folder-action-btn:hover {
    background: #e5e7eb;
}

.sidebar-add-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    color: #6b7280;
    font-size: 14px;
    transition: all 0.2s ease;
}

.sidebar-add-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.sidebar-empty {
    padding: 12px 20px;
    color: #9ca3af;
    font-size: 13px;
    font-style: italic;
}

.dashboard-container {
    flex: 1;
    padding: 40px 20px;
    width: 100%;
    max-width: none;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    z-index: 2;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.modal-icon {
    font-size: 24px;
}

.modal-header h2 {
    flex: 1;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    text-align: left;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #374151;
}

.modal-description {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 20px 0;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-body label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.modal-body input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.modal-body input:focus {
    border-color: #2563eb;
}

.modal-footer {
    display: flex;
    justify-content: stretch;
}

.btn-modal {
    width: 100%;
    padding: 14px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-modal:hover {
    background: #2563eb;
}

/* Folder select list in modal */
.folder-select-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.folder-select-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f3f4f6;
}

.folder-select-item:last-child {
    border-bottom: none;
}

.folder-select-item:hover {
    background: #f9fafb;
}

.folder-select-item.active {
    background: #ede9fe;
}

.folder-select-icon {
    font-size: 18px;
}

.folder-select-item span:nth-child(2) {
    flex: 1;
}

.folder-select-check {
    color: #7c3aed;
    font-weight: bold;
}

.folder-select-empty {
    padding: 24px;
    text-align: center;
    color: #6b7280;
}

.folder-select-empty p {
    margin: 0 0 12px 0;
}

.folder-select-empty button {
    width: auto;
}

/* Duplicate files list in modal */
.duplicate-files-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.duplicate-file-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s;
}

.duplicate-file-item:last-child {
    border-bottom: none;
}

.duplicate-file-item:hover {
    background: #f3f4f6;
}

.duplicate-file-name {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
    word-break: break-word;
}

.duplicate-file-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6b7280;
}

.duplicate-file-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.duplicate-file-status.completed {
    background: #d1fae5;
    color: #065f46;
}

.duplicate-file-status.processing {
    background: #dbeafe;
    color: #1e40af;
}

.duplicate-file-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.duplicate-file-status.failed {
    background: #fee2e2;
    color: #991b1b;
}

.duplicate-similarity {
    font-weight: 600;
    color: #7c3aed;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.dashboard-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.dashboard-header .subtitle {
    color: #666;
    font-size: 16px;
}

.upload-section {
    margin-bottom: 40px;
}

.upload-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.upload-card h2 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 24px;
    color: #333;
}

.file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9fafb;
    margin-bottom: 24px;
}

.file-upload-area:hover {
    border-color: #667eea;
    background: #f3f4f6;
}

.file-upload-area.dragover {
    border-color: #667eea;
    background: #ede9fe;
}

.file-upload-area.has-file {
    border-color: #10b981;
    background: #ecfdf5;
}

.upload-placeholder svg {
    color: #9ca3af;
    margin-bottom: 16px;
}

.upload-text {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin: 8px 0;
}

.upload-hint {
    font-size: 14px;
    color: #9ca3af;
    margin: 4px 0;
}

.form-group {
    margin-bottom: 24px;
    text-align: center;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    text-align: center;
}

.select-input {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 12px 40px 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.select-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-large {
    padding: 16px;
    font-size: 16px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.progress-container {
    margin-top: 24px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: #374151;
}

.progress-bar-wrapper {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.transcripts-section {
    margin-top: 40px;
}

.transcripts-section h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 24px;
}

.transcripts-list {
    display: grid;
    gap: 16px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.empty-state p {
    margin: 8px 0;
    font-size: 16px;
}

.empty-state .hint {
    font-size: 14px;
    color: #d1d5db;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

.transcript-item {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

.transcript-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.transcript-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.transcript-preview {
    margin: 8px 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transcript-meta {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #9ca3af;
}

.transcript-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.transcript-header h3 {
    margin-right: auto;
}

.folder-badge {
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-failed {
    background: #fee2e2;
    color: #991b1b;
}

.progress-section {
    margin: 12px 0;
}

.progress-indicator {
    position: relative;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-small {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.status-message {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #6b7280;
    font-style: italic;
}

.processing-timer {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #667eea;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.processing-timer .timer-value {
    font-family: monospace;
    font-weight: 600;
}

.processing-timer.completed {
    color: #059669;
    font-weight: 600;
}

.processing-timer.completed .timer-value {
    color: #047857;
}

.error-message {
    color: #dc2626;
    font-size: 14px;
    margin: 8px 0;
}

.processing-text {
    color: #6b7280;
    font-size: 14px;
    font-style: italic;
}

.transcript-actions {
    display: flex;
    gap: 12px;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    padding: 10px 20px;
    font-size: 14px;
}

.btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.btn-small {
    width: auto;
    padding: 8px 12px;
    font-size: 14px;
    min-width: auto;
}

.btn-danger {
    background: #fee2e2;
    color: #dc2626;
}

.btn-danger:hover {
    background: #fecaca;
    transform: translateY(-1px);
}

/* Контейнер логина и upload для других страниц */
#loginContainer, #uploadContainer {
    max-width: 400px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Прогресс бар */
progress {
    width: 100%;
    height: 20px;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 10px;
}

/* Сообщения */
#loginMessage, #result {
    margin-top: 15px;
    font-size: 14px;
    color: #555;
    word-wrap: break-word;
}

/* Список аудио */
#audioList {
    list-style-type: none;
    padding: 0;
    max-width: 600px;
    margin: 20px auto;
}

#audioList li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    font-size: 14px;
}

#audioList button {
    width: auto;
    padding: 6px 12px;
    background-color: #2196F3;
}

#audioList button:hover {
    background-color: #1976D2;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.header-content {
    width: 100%;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.header-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-link-logout {
    background: rgba(255, 255, 255, 0.2);
}

.nav-link-logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    white-space: nowrap;
    line-height: 1.2;
}

.lang-btn span {
    vertical-align: middle;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lang-arrow {
    font-size: 10px;
    opacity: 0.8;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    overflow: hidden;
    display: none;
    z-index: 1000;
}

.language-dropdown.show {
    display: block;
    animation: dropdownSlide 0.2s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    color: #374151;
}

.lang-option:hover {
    background: #f3f4f6;
}

.lang-option:first-child {
    border-radius: 12px 12px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 12px 12px;
}

.lang-flag {
    font-size: 20px;
}

.lang-name {
    font-size: 14px;
    font-weight: 500;
}

/* Use Cases Section */
.use-cases-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 60px 20px;
    margin-top: 40px;
}

.use-cases-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.use-cases-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
}

.use-cases-subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 48px;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.use-case-card {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.use-case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.use-case-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.use-case-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.use-case-icon-blue {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.use-case-icon-purple {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
}

.use-case-icon-green {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.use-case-icon-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.use-case-icon-pink {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.use-case-icon-teal {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.use-case-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px;
}

.use-case-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* How to Use Section */
.how-to-section {
    background: #f8fafc;
    padding: 60px 20px;
    margin-top: 0;
    scroll-margin-top: 80px;
}

.how-to-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.how-to-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
}

.how-to-subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 48px;
}

.how-to-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.how-to-step {
    text-align: center;
}

.step-card {
    height: 220px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.step-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.step-card-1 {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
}

.step-card-2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.step-card-3 {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.step-icon {
    width: 64px;
    height: 64px;
    color: rgba(255, 255, 255, 0.9);
}

.step-icon svg {
    width: 100%;
    height: 100%;
}

.step-icon-text {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.step-button {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 28px;
    border-radius: 25px;
    color: white;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-button-accent {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.sparkle {
    font-size: 16px;
}

.step-formats {
    display: flex;
    gap: 8px;
}

.format-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 13px;
}

.how-to-step h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px;
}

.how-to-step p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    max-width: 280px;
    margin: 0 auto;
}

/* Reviews Section */
.reviews-section {
    background: white;
    padding: 60px 20px;
    scroll-margin-top: 80px;
}

.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
}

.reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

.reviews-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.btn-add-review {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-review:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f8fafc;
}

.btn-add-review svg {
    width: 18px;
    height: 18px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.review-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.review-quote {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.review-quote svg {
    width: 20px;
    height: 20px;
    color: white;
}

.review-text {
    font-size: 14px;
    line-height: 1.7;
    color: #475569;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-rating {
    margin-bottom: 12px;
}

.review-rating .star {
    color: #fbbf24;
    font-size: 18px;
}

.review-author {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

/* Review Modal */
.modal-review {
    max-width: 500px;
}

.modal-review textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

.modal-review textarea:focus {
    outline: none;
    border-color: #667eea;
}

.star-rating {
    display: flex;
    gap: 8px;
}

.star-btn {
    font-size: 28px;
    color: #e2e8f0;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.star-btn:hover,
.star-btn.active {
    color: #fbbf24;
    transform: scale(1.1);
}

/* FAQ Section */
.faq-section {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 60px 20px;
    margin-top: 0;
    scroll-margin-top: 80px; /* Account for fixed header */
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.faq-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
}

.faq-description {
    color: #4b5563;
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 24px;
}

.faq-contact {
    color: #6b7280;
    font-size: 14px;
}

.faq-contact a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.faq-contact a:hover {
    text-decoration: underline;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 500;
    color: #1f2937;
    font-size: 15px;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-arrow {
    width: 20px;
    height: 20px;
    color: #9ca3af;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: #667eea;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: #4b5563;
    line-height: 1.7;
    font-size: 14px;
    margin: 0;
}

.faq-answer strong {
    color: #1f2937;
}

/* Footer */
.footer {
    background: #1f2937;
    color: #9ca3af;
    margin-top: auto;
    padding: 48px 20px 24px;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    padding-right: 20px;
}

.footer-logo {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 20px;
    color: #9ca3af;
}

.footer-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #d1d5db;
}

.footer-nav h4,
.footer-contact h4 {
    color: white;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 20px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: #667eea;
}

.footer-contact p {
    font-size: 14px;
    margin: 0 0 16px;
    color: #9ca3af;
}

.footer-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-email:hover {
    color: #818cf8;
}

.footer-email svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.footer-made {
    color: #9ca3af !important;
}

/* ================================
   EXPORT MODAL
   ================================ */
.modal-export {
    max-width: 700px;
}

.export-formats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 8px 0;
}

.export-format-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.export-format-card:hover {
    border-color: #667eea;
    background: #f3f0ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.export-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.export-icon svg {
    width: 32px;
    height: 32px;
}

.export-icon-docx {
    background: #e3f2fd;
    color: #1976d2;
}

.export-icon-xlsx {
    background: #e8f5e9;
    color: #388e3c;
}

.export-icon-srt {
    background: #ffebee;
    color: #d32f2f;
}

.export-icon-txt {
    background: #e3f2fd;
    color: #1976d2;
}

.export-format-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.export-format-desc {
    font-size: 12px;
    color: #6b7280;
}

/* ================================
   RESPONSIVE - TABLET (768px - 1024px)
   ================================ */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
        min-width: 240px;
    }
    
    .dashboard-container {
        padding: 30px 16px;
    }
    
    .dashboard-header h1 {
        font-size: 28px;
    }
    
    .upload-card {
        padding: 24px;
    }
    
    .file-upload-area {
        padding: 30px 20px;
    }
    
    .transcript-item {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .transcript-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .transcript-actions .btn {
        flex: 1;
        min-width: 100px;
    }
}

/* ================================
   RESPONSIVE - TABLET SMALL (max 768px)
   ================================ */
@media (max-width: 768px) {
    /* Sidebar becomes overlay on mobile */
    .dashboard-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        min-width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding: 16px 0;
        display: none;
    }
    
    .sidebar.mobile-open {
        display: block;
    }
    
    .sidebar-section {
        margin-bottom: 16px;
    }
    
    .sidebar-items {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0 12px;
        gap: 8px;
    }
    
    .sidebar-item {
        padding: 10px 14px;
        border-radius: 20px;
        background: #f3f4f6;
        flex: 0 0 auto;
    }
    
    .sidebar-item.active {
        background: #ede9fe;
    }
    
    .sidebar-item.active::before {
        display: none;
    }
    
    .sidebar-title {
        padding: 0 16px;
    }
    
    .sidebar-add-btn {
        margin: 8px 12px;
        width: auto;
        border-radius: 20px;
        background: #f3f4f6;
        justify-content: center;
    }
    
    .folder-actions {
        display: none !important;
    }
    
    .folder-count {
        display: inline-block !important;
    }
    
    /* Header adjustments */
    .header-content {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .header-logo h2 {
        font-size: 20px;
    }
    
    .header-nav {
        gap: 12px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    /* Dashboard */
    .dashboard-container {
        padding: 20px 16px;
    }
    
    .dashboard-header {
        margin-bottom: 24px;
    }
    
    .dashboard-header h1 {
        font-size: 24px;
    }
    
    .dashboard-header .subtitle {
        font-size: 14px;
    }
    
    /* Upload section */
    .upload-section {
        margin-bottom: 24px;
    }
    
    .upload-card {
        padding: 20px;
        border-radius: 12px;
    }
    
    .upload-card h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .file-upload-area {
        padding: 24px 16px;
    }
    
    .upload-placeholder svg {
        width: 40px;
        height: 40px;
    }
    
    .upload-text {
        font-size: 14px;
    }
    
    .upload-hint {
        font-size: 12px;
    }
    
    .select-input {
        max-width: 100%;
    }
    
    /* Transcripts */
    .transcripts-section h2 {
        font-size: 22px;
        margin-bottom: 16px;
    }
    
    .transcript-item {
        padding: 16px;
        border-radius: 10px;
    }
    
    .transcript-info h3 {
        font-size: 16px;
    }
    
    .transcript-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .transcript-header h3 {
        margin-right: 0;
        word-break: break-word;
    }
    
    .transcript-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .transcript-actions .btn {
        width: 100%;
    }
    
    /* Modals */
    .modal-content {
        margin: 16px;
        max-width: calc(100% - 32px);
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    /* Export modal responsive */
    .export-formats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .export-format-card {
        padding: 16px 12px;
    }
    
    .export-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }
    
    .export-icon svg {
        width: 24px;
        height: 24px;
    }
    
    /* Use Cases responsive */
    .use-cases-section {
        padding: 40px 16px;
    }
    
    .use-cases-title {
        font-size: 24px;
    }
    
    .use-cases-subtitle {
        font-size: 14px;
        margin-bottom: 32px;
    }
    
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .use-case-card {
        padding: 24px 16px;
    }
    
    .use-case-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }
    
    .use-case-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .use-case-card h3 {
        font-size: 16px;
    }
    
    .use-case-card p {
        font-size: 13px;
    }
    
    /* Reviews responsive */
    .reviews-section {
        padding: 40px 16px;
    }
    
    .reviews-header h2 {
        font-size: 26px;
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .review-card {
        padding: 20px;
    }
    
    /* How to Use responsive */
    .how-to-section {
        padding: 40px 16px;
    }
    
    .how-to-title {
        font-size: 24px;
    }
    
    .how-to-subtitle {
        font-size: 14px;
        margin-bottom: 32px;
    }
    
    .how-to-steps {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .step-card {
        height: 180px;
    }
    
    .step-icon {
        width: 48px;
        height: 48px;
    }
    
    .step-button {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* FAQ responsive */
    .faq-section {
        padding: 40px 16px;
    }
    
    .faq-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .faq-header h2 {
        font-size: 26px;
    }
    
    .faq-question {
        padding: 16px 20px;
        font-size: 14px;
    }
    
    .faq-answer p {
        padding: 0 20px 16px;
        font-size: 13px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 16px 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .footer-brand {
        grid-column: span 2;
        padding-right: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ================================
   RESPONSIVE - MOBILE (max 480px)
   ================================ */
@media (max-width: 480px) {
    /* Smaller header padding on mobile */
    body.dashboard-page,
    body.auth-page {
        padding-top: 55px;
    }
    
    /* Header */
    .header-content {
        padding: 10px 12px;
    }
    
    .header-logo h2 {
        font-size: 18px;
    }
    
    .header-nav {
        gap: 8px;
    }
    
    .nav-link {
        padding: 5px 8px;
        font-size: 12px;
    }
    
    .lang-btn {
        padding: 5px 8px;
        font-size: 12px;
        gap: 4px;
    }
    
    #currentLangName {
        display: none;
    }
    
    .lang-arrow {
        display: none;
    }
    
    /* Dashboard */
    .dashboard-container {
        padding: 16px 12px;
    }
    
    .dashboard-header h1 {
        font-size: 20px;
    }
    
    .dashboard-header .subtitle {
        font-size: 13px;
    }
    
    /* Upload */
    .upload-card {
        padding: 16px;
    }
    
    .upload-card h2 {
        font-size: 18px;
    }
    
    .file-upload-area {
        padding: 20px 12px;
    }
    
    .upload-placeholder svg {
        width: 36px;
        height: 36px;
    }
    
    .btn-large {
        padding: 14px;
        font-size: 14px;
    }
    
    /* Transcripts */
    .transcripts-section h2 {
        font-size: 18px;
    }
    
    .transcript-item {
        padding: 14px;
    }
    
    .transcript-info h3 {
        font-size: 14px;
    }
    
    .transcript-preview {
        font-size: 13px;
    }
    
    .transcript-meta {
        font-size: 11px;
    }
    
    .status-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .folder-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .btn-small {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    /* Sidebar mobile - horizontal scroll */
    .sidebar-items {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .sidebar-item {
        white-space: nowrap;
    }
    
    .folder-name {
        word-break: normal;
    }
    
    /* Auth pages */
    .auth-container {
        padding: 12px;
    }
    
    .auth-header {
        padding: 24px 16px;
    }
    
    .auth-header h1 {
        font-size: 26px;
    }
    
    .auth-form {
        padding: 24px 16px;
    }
    
    /* Empty state */
    .empty-state {
        padding: 40px 16px;
    }
    
    .empty-state p {
        font-size: 14px;
    }
    
    /* Language dropdown */
    .language-dropdown {
        right: -50px;
        min-width: 160px;
    }
    
    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-nav,
    .footer-contact {
        text-align: center;
    }
    
    .footer-tech {
        justify-content: center;
    }
    
    /* Reviews mobile */
    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .reviews-header h2 {
        font-size: 22px;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-add-review {
        width: 100%;
        justify-content: center;
    }
    
    /* Use Cases mobile */
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .use-cases-title {
        font-size: 22px;
    }
    
    /* FAQ mobile */
    .faq-section {
        padding: 32px 12px;
    }
    
    .faq-header h2 {
        font-size: 22px;
    }
    
    .faq-description {
        font-size: 14px;
    }
    
    .faq-question {
        padding: 14px 16px;
        font-size: 13px;
    }
    
    .faq-arrow {
        width: 18px;
        height: 18px;
    }
    
    .faq-answer p {
        padding: 0 16px 14px;
        font-size: 12px;
    }
}

/* ================================
   MOBILE SIDEBAR TOGGLE
   ================================ */
.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
}

/* ================================
   PRINT STYLES
   ================================ */
@media print {
    .header,
    .footer,
    .sidebar,
    .upload-section,
    .transcript-actions,
    .faq-section {
        display: none !important;
    }
    
    .dashboard-container {
        padding: 0;
    }
    
    .transcript-item {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}

/* ================================
   AI MODAL STYLES
   ================================ */
.modal-ai {
    max-width: 800px;
}

.ai-actions-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 24px;
}

.ai-actions-bar .btn {
    flex: 1;
    min-width: 120px;
}

.ai-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ai-section {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e5e7eb;
}

.ai-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-section-body {
    min-height: 40px;
}

.ai-section-content {
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.ai-section-empty {
    padding: 20px;
    text-align: center;
    color: #9ca3af;
    font-style: italic;
}

.ai-timestamp {
    display: block;
    margin-top: 8px;
    color: #6b7280;
    font-size: 12px;
}

/* Keywords */
.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-tag {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

/* Sentiment */
.sentiment-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
}

.sentiment-positive {
    background: #d1fae5;
    color: #065f46;
}

.sentiment-negative {
    background: #fee2e2;
    color: #991b1b;
}

.sentiment-neutral {
    background: #f3f4f6;
    color: #374151;
}

.sentiment-emoji {
    font-size: 24px;
}

.sentiment-label {
    font-weight: 600;
    flex: 1;
}

.sentiment-score {
    font-size: 14px;
    opacity: 0.8;
}

/* Category */
.category-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.category-label {
    font-weight: 600;
    color: #333;
    flex: 1;
}

.category-confidence {
    padding: 4px 8px;
    background: #667eea;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Translations */
.translation-item {
    margin-bottom: 16px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.translation-item:last-child {
    margin-bottom: 0;
}

.translation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.translation-header strong {
    color: #667eea;
    font-size: 14px;
}

.translation-header small {
    color: #6b7280;
    font-size: 12px;
}

.translation-text {
    margin: 0;
    color: #374151;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .ai-actions-bar {
        flex-direction: column;
    }
    
    .ai-actions-bar .btn {
        width: 100%;
    }
    
    .sentiment-display {
        flex-direction: column;
        text-align: center;
    }
    
    .category-display {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ================================
   TRANSCRIPT VIEW WITH AUDIO PLAYER
   ================================ */
.modal-transcript-view {
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.transcript-view-container {
    display: flex;
    flex-direction: column;
    height: calc(90vh - 100px);
    overflow: hidden;
}

/* Audio Player Section */
.audio-player-section {
    background: #f9fafb;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.audio-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.audio-btn:hover {
    transform: scale(1.05);
}

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

.audio-progress-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#audioProgress {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

#audioProgress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

#audioProgress::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}

.audio-time {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    justify-content: space-between;
}

.audio-speed-control {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.audio-speed-control label {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.audio-speed-control select {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 12px;
    background: white;
    cursor: pointer;
}

.audio-shortcuts {
    text-align: center;
    color: #9ca3af;
    font-size: 11px;
    margin-top: 8px;
}

/* Transcript Text Container */
.transcript-text-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: white;
    transition: opacity 0.3s;
}

.transcript-text {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 15px;
    color: #374151;
}

.transcript-segment {
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.transcript-segment:hover {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.transcript-segment.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.segment-time {
    display: inline-block;
    font-size: 12px;
    color: #667eea;
    font-weight: 600;
    margin-right: 8px;
    font-family: monospace;
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.transcript-segment.active .segment-time {
    background: rgba(102, 126, 234, 0.2);
    color: #764ba2;
}

.segment-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.segment-text-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    position: relative;
}

.segment-original {
    font-weight: 600;
    color: #1f2937;
    line-height: 1.6;
    flex: 1;
    min-width: 0;
}

.segment-original[contenteditable="true"] {
    background: #fef3c7;
    padding: 4px 8px;
    border-radius: 4px;
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

.segment-edit-btn,
.segment-save-btn,
.segment-cancel-btn {
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    flex-shrink: 0;
    opacity: 0.7;
}

.segment-text-wrapper:hover .segment-edit-btn {
    opacity: 1;
}

.segment-edit-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.segment-save-btn {
    background: #10b981;
    color: white;
    border-color: #10b981;
    opacity: 1;
}

.segment-save-btn:hover {
    background: #059669;
    border-color: #059669;
}

.segment-cancel-btn {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
    opacity: 1;
}

.segment-cancel-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.segment-save-btn:disabled {
    background: #9ca3af;
    border-color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.segment-translation {
    font-weight: 400;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    padding-left: 8px;
    border-left: 2px solid #e5e7eb;
    margin-top: 2px;
}

.segment-translation.loading {
    color: #9ca3af;
    font-style: italic;
}

.segment-translation.error {
    color: #ef4444;
    font-size: 12px;
}

.translation-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.translation-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

.translation-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.translation-controls select {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 12px;
    background: white;
    cursor: pointer;
}

.translation-controls select:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .audio-controls {
        flex-wrap: wrap;
    }
    
    .audio-progress-container {
        width: 100%;
        order: 3;
    }
    
    .audio-speed-control {
        order: 2;
    }
    
    .transcript-text {
        font-size: 14px;
    }
    
    .transcript-segment {
        padding: 10px 12px;
    }
}
