/* ==================== Global Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light mode colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
    
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

/* Dark Mode */
body.dark-mode {
    --bg-primary: #1e293b;
    --bg-secondary: #0f172a;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border: #334155;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-lg: rgba(0, 0, 0, 0.5);
}

/* ==================== Login Page Styles ==================== */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
    animation: slideUp 0.6s ease-out;
}

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

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-icon {
    font-size: 60px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    animation: pulse 2s ease-in-out infinite;
}

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

.login-header h1 {
    font-size: 36px;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.login-header p {
    color: #64748b;
    font-size: 14px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 12px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-form {
    display: none;
    animation: fadeIn 0.3s;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

.form-group label i {
    margin-right: 8px;
    color: var(--primary);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

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

.demo-login {
    margin-top: 20px;
    text-align: center;
}

.demo-login p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 10px;
}

.btn-demo {
    padding: 10px 20px;
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-demo:hover {
    background: var(--primary);
    color: white;
}

/* Animated Background - Removed for cleaner look */
.background-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    /* Animations removed */
}

/* Alert Messages */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    transition: transform 0.3s;
}

.alert.show {
    transform: translateX(0);
}

.alert-success {
    background: var(--success);
}

.alert-error {
    background: var(--error);
}

.alert i {
    font-size: 20px;
}

/* ==================== Home Page Styles ==================== */
.home-body {
    background: var(--bg-secondary);
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background: var(--bg-primary);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.nav-brand i {
    font-size: 28px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    padding: 10px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.icon-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.user-btn:hover {
    background: var(--primary);
    color: white;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-lg);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown button {
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-dropdown button:hover {
    background: var(--bg-tertiary);
}

/* Main Content */
.main-content {
    display: flex;
    gap: 24px;
    padding: 24px;
    max-width: 1600px;
    margin: 0 auto;
}

/* Sidebar */
.sidebar {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stats-card,
.filter-card,
.tags-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px var(--shadow);
}

.stats-card h3,
.filter-card h3,
.tags-card h3 {
    font-size: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.stat-item span {
    color: var(--text-secondary);
}

.stat-item strong {
    color: var(--primary);
    font-size: 18px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-btn {
    padding: 12px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-btn:hover {
    background: var(--primary-light);
    color: white;
}

.filter-btn.active {
    background: var(--gradient-1);
    color: white;
}

.tags-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.tag-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-primary);
}

.tag-item:hover {
    background: var(--primary);
    color: white;
}

.tag-count {
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.no-tags {
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
}

/* Content Area */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Mode Toggle */
.mode-toggle {
    display: flex;
    gap: 12px;
    background: var(--bg-primary);
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 2px 8px var(--shadow);
}

.mode-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mode-btn:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
}

.mode-btn.active {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.mode-btn i {
    font-size: 18px;
}

/* Recording Panel */
.recording-panel {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 16px var(--shadow);
}

/* Translation Panel */
.translation-panel {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 16px var(--shadow);
}

.translation-header {
    margin-bottom: 24px;
}

.translation-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.translation-header i {
    color: var(--primary);
}

.translation-settings {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.language-selector {
    flex: 1;
    min-width: 200px;
}

.language-selector label {
    display: block;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 14px;
}

.language-selector label i {
    margin-right: 6px;
    color: var(--primary);
}

.language-selector select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.language-selector select:focus {
    outline: none;
    border-color: var(--primary);
}

.swap-btn {
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 10px;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 18px;
}

.swap-btn:hover {
    background: var(--primary);
    color: white;
    transform: rotate(180deg);
}

.translator-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 16px;
    margin: 24px 0;
}

.translation-boxes {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
}

.translation-box {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid var(--border);
}

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

.box-header label {
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.box-header label i {
    color: var(--primary);
}

.box-actions {
    display: flex;
    gap: 8px;
}

.translation-box textarea {
    width: 100%;
    min-height: 150px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 15px;
    resize: vertical;
    font-family: inherit;
}

.translation-box textarea:focus {
    outline: none;
}

.translation-arrow {
    font-size: 32px;
    color: var(--primary);
    animation: slideArrow 2s ease-in-out infinite;
}

@keyframes slideArrow {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

.translation-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

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

.recording-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.recording-header i {
    color: var(--primary);
}

#languageSelect {
    position: relative;
}

#languageDropdown {
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 600;
}

.recorder-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 16px;
    margin-bottom: 24px;
}

.microphone-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.record-btn {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-1);
    color: white;
    font-size: 36px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    position: relative;
    z-index: 2;
}

.record-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

.record-btn.recording {
    background: var(--gradient-2);
    animation: recordPulse 1.5s ease-in-out infinite;
}

@keyframes recordPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-ring {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    opacity: 0;
    transition: all 0.3s;
}

.microphone-visual.active .pulse-ring {
    animation: pulseRing 1.5s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        width: 100px;
        height: 100px;
        opacity: 1;
    }
    100% {
        width: 160px;
        height: 160px;
        opacity: 0;
    }
}

.recording-status {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 600;
}

.recording-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--error);
}

.recording-dot {
    font-size: 12px;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Transcript Container */
.transcript-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.transcript-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transcript-header label {
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

#transcript {
    width: 100%;
    min-height: 150px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    resize: vertical;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
}

#transcript:focus {
    outline: none;
    border-color: var(--primary);
}

.save-note-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.save-note-section input {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.save-note-section input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Actions Bar */
.actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.search-container {
    flex: 1;
    max-width: 400px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-container i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
}

.search-container input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary);
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.btn-secondary {
    padding: 12px 20px;
    background: var(--bg-primary);
    border: 2px solid var(--primary);
    border-radius: 10px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.sort-select {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
}

/* Notes Section */
.notes-section {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px var(--shadow);
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.note-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.note-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-lg);
    border-color: var(--primary);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.note-header h3 {
    font-size: 18px;
    color: var(--text-primary);
    flex: 1;
}

.favorite-btn {
    padding: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.favorite-btn:hover,
.favorite-btn.active {
    color: #f59e0b;
    transform: scale(1.2);
}

.note-content {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.note-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.note-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    padding: 4px 10px;
    background: var(--primary-light);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.note-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.note-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.note-actions {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.action-btn {
    flex: 1;
    padding: 8px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.action-btn:hover {
    background: var(--primary);
    color: white;
}

.action-btn.delete:hover {
    background: var(--error);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-state i {
    font-size: 80px;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s;
}

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

.modal-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.close-modal {
    padding: 8px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.close-modal:hover {
    background: var(--error);
    color: white;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.modal-body input,
.modal-body textarea {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
}

.modal-body textarea {
    min-height: 200px;
    resize: vertical;
}

.modal-body input:focus,
.modal-body textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 12px;
    box-shadow: 0 4px 16px var(--shadow-lg);
    font-weight: 600;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    background: var(--success);
    color: white;
}

.toast-error {
    background: var(--error);
    color: white;
}

.toast-warning {
    background: var(--warning);
    color: white;
}

.toast-info {
    background: var(--info);
    color: white;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
    }
    
    .stats-card,
    .filter-card,
    .tags-card {
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        flex-direction: column;
    }
    
    .notes-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-bar {
        flex-direction: column;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .recording-panel,
    .translation-panel {
        padding: 20px;
    }
    
    .record-btn {
        width: 80px;
        height: 80px;
        font-size: 28px;
    }
    
    .login-container {
        padding: 30px 20px;
    }
    
    /* Translation responsive */
    .translation-boxes {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .translation-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .translation-settings {
        flex-direction: column;
    }
    
    .language-selector {
        width: 100%;
    }
    
    .swap-btn {
        align-self: center;
    }
    
    .translation-actions {
        flex-direction: column;
    }
    
    .translation-actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 12px 16px;
    }
    
    .nav-brand {
        font-size: 20px;
    }
    
    .main-content {
        padding: 16px;
    }
    
    .user-btn span {
        display: none;
    }
}
