﻿/* ===================== AIDA212 v2 - MAIN STYLES ===================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', sans-serif; background: #0b1120; color: #f1f5f9; line-height: 1.5; min-height: 100vh; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; outline: none; }
ul, ol { list-style: none; }
img { height: auto; display: block; }
:root {
  --bg-primary: #0b1120;
  --bg-secondary: #111827;
  --bg-card: #1e293b;
  --bg-input: #0f172a;
  --border-color: #1e3a5f;
  --border-light: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-primary: #4361ee;
  --accent-secondary: #7209b7;
  --accent-gradient: linear-gradient(135deg, #4361ee, #7209b7);
  --success: #22c55e;
  --warning: #eab308;
  --error: #ef4444;
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
}
.text-gradient { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.text-muted { color: var(--text-muted); }
.text-error { color: var(--error); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.relative { position: relative; }
.hidden { display: none !important; }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: 50%; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }
::selection { background: rgba(67, 97, 238, 0.3); color: #f1f5f9; }
:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 2px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.animate-fadeIn { animation: fadeIn 0.3s ease; }
.animate-scaleIn { animation: scaleIn 0.3s ease; }
.animate-spin { animation: spin 1s linear infinite; }
.app-layout { display: flex; min-height: 100vh; }
.main-content { flex: 1; margin-left: var(--sidebar-width); transition: margin-left 0.3s ease; min-height: 100vh; background: var(--bg-primary); }
.page-content { padding: 32px; max-width: 1400px; margin: 0 auto; }

/* ===== Forms (prompts editor, profile) ===== */
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.form-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
    outline: none;
}
textarea.form-input {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}
.form-select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.news-item:last-child { border-bottom: none; }
.news-badge { flex-shrink: 0; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; background: rgba(67, 97, 238, 0.12); color: var(--accent-primary); }
.news-badge.news-update { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.news-text { flex: 1; font-size: 13px; color: var(--text-primary); line-height: 1.5; }
.news-date { flex-shrink: 0; font-size: 11px; color: var(--text-muted); }
.card { background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border-color); padding: 24px; box-shadow: var(--shadow-card); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-md); font-size: 15px; font-weight: 600; border: none; cursor: pointer; transition: all 0.3s ease; min-height: 44px; }
.btn-primary { background: var(--accent-gradient); color: white; box-shadow: 0 4px 16px rgba(67, 97, 238, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(67, 97, 238, 0.4); }
.btn-secondary { background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border-light); }
.btn-secondary:hover { background: var(--bg-card); border-color: var(--accent-primary); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.btn-sm { padding: 8px 16px; font-size: 13px; min-height: 36px; }
.btn-lg { padding: 16px 32px; font-size: 17px; min-height: 52px; }
.btn-icon { padding: 8px; width: 36px; height: 36px; min-height: unset; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.input { width: 100%; padding: 14px 16px; background: var(--bg-input); border: 1px solid var(--border-light); border-radius: var(--radius-md); color: var(--text-primary); font-size: 15px; transition: all 0.3s ease; }
.input:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15); }
.input::placeholder { color: var(--text-muted); font-size: 14px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-primary { background: rgba(67, 97, 238, 0.15); color: #818cf8; }
.badge-success { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.badge-warning { background: rgba(234, 179, 8, 0.15); color: #fbbf24; }
.badge-error { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.tabs { display: flex; gap: 4px; background: var(--bg-secondary); border-radius: var(--radius-md); padding: 4px; }
.tab { flex: 1; padding: 10px 16px; background: transparent; border: none; color: var(--text-secondary); font-size: 13px; font-weight: 600; border-radius: var(--radius-sm); cursor: pointer; transition: all 0.3s ease; }
.tab:hover { color: var(--text-primary); }
.tab.active { background: var(--accent-primary); color: white; box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3); }
.skeleton { background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; border-radius: var(--radius-sm); }

/* ===== GLOBAL FIXES: white backgrounds, close buttons ===== */

/* Fix modal close buttons - dark theme everywhere */
.btn-icon, 
.modal-close-btn,
.modal-header .btn-icon,
.toast-close,
.sidebar-toggle,
.company-banner .btn-ghost {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 8px !important;
    color: var(--text-muted) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 14px !important;
    padding: 6px !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 1 !important;
}

.btn-icon:hover,
.modal-close-btn:hover,
.modal-header .btn-icon:hover,
.toast-close:hover,
.sidebar-toggle:hover {
    background: var(--bg-card) !important;
    border-color: var(--accent-primary) !important;
    color: var(--text-primary) !important;
}

/* Fix any white backgrounds on icons */
.fa-times,
.fa-chevron-left,
.fa-chevron-right,
.fa-eye,
.fa-eye-slash {
    color: inherit !important;
}

/* Toast close button fix */
.toast-close {
    width: 24px !important;
    height: 24px !important;
    padding: 4px !important;
    font-size: 10px !important;
    border-radius: 6px !important;
    border: none !important;
    background: rgba(255,255,255,0.1) !important;
}

.toast-close:hover {
    background: rgba(255,255,255,0.2) !important;
    color: white !important;
}

/* Sidebar toggle fix */
.sidebar-toggle {
    width: 28px !important;
    height: 28px !important;
    padding: 4px !important;
    font-size: 12px !important;
    border: none !important;
    background: var(--bg-primary) !important;
}

/* Company banner close fix */
.company-banner .btn-ghost {
    width: 28px !important;
    height: 28px !important;
    padding: 4px !important;
    font-size: 10px !important;
    border: none !important;
}

/* Password toggle fix */
.input-wrapper .btn-icon {
    width: 28px !important;
    height: 28px !important;
    padding: 4px !important;
    font-size: 12px !important;
    position: absolute !important;
    right: 6px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    border: none !important;
    background: transparent !important;
}

.input-wrapper .btn-icon:hover {
    background: var(--bg-secondary) !important;
}

/* Logo icon on auth page - no background square */
.auth-header .logo-icon {
    width: auto !important;
    height: auto !important;
    margin: 50px auto 2px !important;
    background: none !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
}

.auth-header .logo-icon img {
    width: 160px;
    height: 160px;
    filter: drop-shadow(0 0 30px rgba(67, 97, 238, 0.3));
}

/* Sidebar logo — now uses inline img tag */

/* Loading logo — size set in auth.css via .loader-logo-svg container */

/* Auth divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.auth-divider span {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Trainer button */
.btn-trainer {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-trainer:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(67, 97, 238, 0.05);
}

/* Trainer modal */
#trainerModal .modal-header {
    border-bottom-color: rgba(245, 158, 11, 0.2);
}

#trainerModal .modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f59e0b;
}

#trainerModal .btn-auth {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

#trainerModal .btn-auth:hover {
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3) !important;
}

.trainer-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    padding: 12px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: var(--radius-md);
}

.trainer-hint i {
    color: #f59e0b;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.trainer-hint span {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 24px 32px 16px;
    border-top: 1px solid var(--border-color);
    margin-top: 48px;
}

.app-footer p {
    color: #334155;
    font-size: 12px;
    letter-spacing: 0.3px;
}

.app-footer strong {
    color: #475569;
    font-weight: 600;
}

/* History sidebar */
.history-panel {
    width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.history-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

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

.history-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.history-item {
    padding: 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.history-item:hover {
    background: var(--bg-card);
}

.history-item.active {
    background: rgba(67, 97, 238, 0.1);
    border: 1px solid rgba(67, 97, 238, 0.2);
}

.history-item-type {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.history-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.history-item-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.history-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
    font-size: 13px;
}

.history-empty i {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Mode toggle (chat/voice) */
.mode-toggle {
    display: flex;
    gap: 4px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 3px;
    margin-bottom: 12px;
}

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

.mode-btn:hover {
    color: var(--text-secondary);
}

.mode-btn.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

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

/* Rating - company only */
.rating-tabs .tab[data-tab="global"] {
    display: none;
}

/* Dashboard - remove recent activity */
.dashboard-section:last-child {
    display: none;
}

/* Trainer layout with history panel */
.trainer-layout {
    display: flex;
    height: calc(100vh - 140px);
    gap: 0;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.trainer-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Chat header with mode toggle */
.trainer-chat .chat-header {
    padding: 12px 20px;
}

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

/* No logos in page titles — logo is only in: Loading, Auth, Sidebar, Trainer sidebar */

/* ===== Loader Spinner Circle ===== */
.loader-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 24px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.loader-circle-bg {
    stroke: rgba(255,255,255,0.1);
}

.loader-circle-fill {
    stroke: url(#loaderGradient);
    transition: stroke-dashoffset 0.1s ease;
    filter: drop-shadow(0 0 8px rgba(67, 97, 238, 0.5));
}

.loader-percent {
    position: absolute;
    font-size: 16px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

/* Remove old bar styles */
.loader-bar-track,
.loader-bar-fill {
    display: none;
}

/* Ensure SVG defs exist */
.loading-overlay svg,
.loader-circle {
    display: block;
}

/* ===== COMPANY SELECTION PAGE ===== */
.company-selection-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--bg-primary);
}

.company-selection-page .page-header {
    text-align: center;
    margin-bottom: 48px;
}

.company-selection-page .page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.company-selection-page .page-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1000px;
}

.company-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.company-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(67, 97, 238, 0.15);
}

.company-card .company-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-primary);
    border: 2px solid var(--border-light);
}

.company-card .company-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.company-card .company-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.company-card .company-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.company-card .company-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== AUTH PAGE FIXES ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    padding: 24px;
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    box-shadow: var(--shadow-card);
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-header .logo-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
}

.auth-header .logo-icon img {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 0 30px rgba(67, 97, 238, 0.3));
}

.auth-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 2px;
}

/* ===== DASHBOARD ENHANCEMENTS ===== */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding: 0;
}

.dashboard-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.dashboard-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card.card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-card-info {
    flex: 1;
}

.stat-card-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-card-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.dashboard-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== CLIENT TYPES GRID ===== */
.client-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.client-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.client-card:hover {
    border-color: rgba(67, 97, 238, 0.3);
    transform: translateY(-2px);
}

.client-card.selected {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

.client-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.client-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.client-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ===== DIFFICULTY SELECTOR ===== */
.difficulty-options {
    display: flex;
    gap: 8px;
}

.difficulty-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.difficulty-btn:hover {
    border-color: rgba(67, 97, 238, 0.3);
    color: var(--text-primary);
}

.difficulty-btn.active {
    border-color: var(--accent-primary);
    background: rgba(67, 97, 238, 0.1);
    color: #818cf8;
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

.difficulty-btn i {
    font-size: 24px;
}

/* ===== LEVEL BADGE ===== */
.level-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.level-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.level-icon img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

.level-info {
    flex: 1;
    min-width: 0;
}

.level-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.level-xp {
    font-size: 12px;
    color: var(--text-muted);
}

.level-bar {
    width: 120px;
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
}

.level-bar-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* ===== START TRAINING BUTTON ===== */
#startTrainingBtn {
    margin-top: 24px;
    min-height: 56px;
    font-size: 17px;
    font-weight: 700;
}

/* ===== PAGE TITLES ===== */
.page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.trainer-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.trainer-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

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

/* ===== MODAL STYLES ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.2s ease;
}

.modal-content.modal-md {
    max-width: 500px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

/* ===== FOOTER ===== */
.app-footer {
    text-align: center;
    padding: 24px 32px 16px;
    border-top: 1px solid var(--border-color);
    margin-top: 48px;
}

.app-footer p {
    color: #334155;
    font-size: 12px;
    letter-spacing: 0.3px;
}

.app-footer strong {
    color: #475569;
    font-weight: 600;
}

/* ===== NEW DASHBOARD STYLES ===== */
.db-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 32px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}
.db-welcome-left { display: flex; align-items: center; gap: 16px; }
.db-avatar { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.db-avatar-placeholder {
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--accent-gradient);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700; color: white; flex-shrink: 0;
}
.db-greeting { font-size: 22px; font-weight: 700; color: var(--text-primary); margin: 0; }
.db-company { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.db-welcome-right { display: flex; gap: 10px; flex-shrink: 0; }

.db-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
.db-stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 20px 16px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.db-stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.db-stat-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-size: 18px; }
.db-stat-value { font-size: 24px; font-weight: 800; color: var(--text-primary); }
.db-stat-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

.db-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.db-card { background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border-color); overflow: hidden; }
.db-card-header { padding: 16px 20px; border-bottom: 1px solid var(--border-color); }
.db-card-header h3 { font-size: 15px; font-weight: 700; color: var(--text-primary); margin: 0; }
.db-card-body { padding: 20px; }

.company-info-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.company-info-row:last-child { border-bottom: none; }
.company-info-label { font-size: 13px; color: var(--text-muted); }
.company-info-value { font-size: 13px; color: var(--text-primary); font-weight: 600; }

.db-trainer-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 14px; }
.db-trainer-features { display: flex; flex-direction: column; gap: 8px; }
.db-feature { font-size: 13px; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.db-feature i { color: var(--success); font-size: 14px; }
.btn-full { width: 100%; justify-content: center; }

.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-item { padding: 12px; background: rgba(255,255,255,0.02); border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,0.04); }
.news-badge {
    display: inline-block; padding: 2px 8px; border-radius: 10px;
    background: rgba(99,102,241,0.2); color: #818cf8; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px;
}
.news-badge.news-update { background: rgba(234,179,8,0.15); color: #fbbf24; }
.news-text { font-size: 13px; color: var(--text-primary); line-height: 1.5; }
.news-date { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.tips-list { display: flex; flex-direction: column; gap: 12px; }
.tip-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.tip-bulb { color: #f59e0b; font-size: 14px; margin-top: 2px; flex-shrink: 0; }

/* ===== PROFILE PAGE ===== */
.profile-header-section {
    display: flex; align-items: center; gap: 24px;
    padding: 32px; background: var(--bg-card); border-radius: var(--radius-xl);
    border: 1px solid var(--border-color); margin-bottom: 24px;
}
.profile-avatar-wrap { position: relative; flex-shrink: 0; }
.profile-avatar-img { width: 96px; height: 96px; border-radius: 20px; object-fit: cover; }
.profile-avatar-placeholder {
    width: 96px; height: 96px; border-radius: 20px;
    background: var(--accent-gradient); display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 800; color: white;
}
.profile-avatar-edit {
    position: absolute; bottom: -4px; right: -4px;
    width: 30px; height: 30px; border-radius: 8px;
    background: var(--accent-primary); border: 2px solid var(--bg-card);
    color: white; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 12px; transition: transform 0.2s;
}
.profile-avatar-edit:hover { transform: scale(1.1); }
.profile-header-info { flex: 1; }
.profile-name { font-size: 24px; font-weight: 800; color: var(--text-primary); margin: 0 0 4px; }
.profile-position { font-size: 14px; color: var(--text-secondary); }
.profile-company-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 12px; background: rgba(99,102,241,0.1); border-radius: 20px; font-size: 12px; color: #818cf8; }
.profile-header-actions { display: flex; gap: 10px; flex-shrink: 0; }

.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.profile-card { background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border-color); overflow: hidden; }
.profile-card-header { padding: 16px 20px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; }
.profile-card-header h3 { font-size: 15px; font-weight: 700; color: var(--text-primary); margin: 0; }
.profile-card-body { padding: 20px; }

.stat-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.stat-row:last-child { border-bottom: none; }
.stat-row-label { font-size: 13px; color: var(--text-muted); }
.stat-row-value { font-size: 15px; font-weight: 700; color: var(--text-primary); }

.ach-mini-list { display: flex; flex-direction: column; gap: 8px; }
.ach-mini-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius-md); background: rgba(255,255,255,0.02); }
.ach-mini-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.ach-mini-icon.locked { background: rgba(255,255,255,0.05); color: var(--text-muted); }
.ach-mini-icon.unlocked { background: rgba(99,102,241,0.15); color: #818cf8; }
.ach-mini-name { font-size: 13px; color: var(--text-primary); font-weight: 500; flex: 1; }
.ach-mini-status { font-size: 16px; }
.ach-mini-status.locked { color: var(--text-muted); }
.ach-mini-status.unlocked { color: #22c55e; }

/* ===== TRAINER MODE TOGGLE ===== */
.mode-switch { display: flex; gap: 4px; background: var(--bg-primary); border-radius: var(--radius-md); padding: 3px; margin-bottom: 16px; }
.mode-switch-btn { flex: 1; padding: 12px 16px; background: transparent; border: none; color: var(--text-muted); font-size: 14px; font-weight: 600; border-radius: var(--radius-sm); cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 8px; }
.mode-switch-btn:hover { color: var(--text-secondary); }
.mode-switch-btn.active { background: var(--bg-card); color: var(--text-primary); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.mode-switch-btn i { font-size: 16px; }
.voice-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; text-align: center; }
.voice-placeholder i { font-size: 48px; color: var(--text-muted); margin-bottom: 16px; opacity: 0.5; }
.voice-placeholder p { color: var(--text-muted); font-size: 14px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .db-stats-grid { grid-template-columns: repeat(3, 1fr); }
    .db-grid-2col { grid-template-columns: 1fr; }
    .db-welcome { flex-direction: column; align-items: flex-start; }
    .db-welcome-right { width: 100%; }
    .db-welcome-right .btn { flex: 1; }
    .profile-grid { grid-template-columns: 1fr; }
    .profile-header-section { flex-direction: column; text-align: center; }
    .profile-header-actions { width: 100%; }
    .dashboard-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .difficulty-options { flex-direction: column; }
    .page-content { padding: 20px; }
}
@media (max-width: 480px) {
    .db-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
}
