@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ================================================
   ESTILOS PRINCIPAIS - SISTEMA TREINADOR GABRIEL
   DESIGN MODERNO: NEON-DARK & GLASSMORPHISM
   ================================================ */

:root {
    /* Cores Principais - Neon Palette */
    --primary: #bfff00;
    --primary-dark: #a6dd00;
    --primary-glow: rgba(191, 255, 0, 0.4);
    --secondary: #00f2ff;
    --secondary-dark: #00c2cc;
    --accent: #ff00ff;
    
    /* Cores de Fundo - Deep Dark */
    --dark: #050505;
    --dark-surface: #0a0a0c;
    --dark-card: rgba(20, 20, 25, 0.7);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.1);
    
    /* Cores de Texto */
    --text-main: #ffffff;
    --text-muted: #a0a0a8;
    --text-dim: #606068;
    
    /* Cores de Status */
    --success: #00ffa3;
    --warning: #ffe600;
    --danger: #ff3366;
    --info: #00d1ff;
    
    /* Espaçamento */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 4rem;
    
    /* Bordas */
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --border-radius-lg: 24px;
    --border-radius-full: 9999px;
    
    /* Sombras & Efeitos */
    --shadow-sm: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.5);
    --glow-primary: 0 0 15px var(--primary-glow);
    
    /* Transições */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --max-width: 1200px;
    --sidebar-width: 260px;
}

/* ================================================
   TEMA CLARO (LIGHT MODE) - Warm Slate Palette
   ================================================ */
.light-theme {
    /* Fundos em tons slate quentes - confortável para os olhos */
    --dark: #f1f5f9;
    --dark-surface: #e2e8f0;
    --dark-card: #ffffff;
    --glass: rgba(15, 23, 42, 0.05);
    --glass-border: rgba(15, 23, 42, 0.1);
    --glass-hover: rgba(15, 23, 42, 0.08);
    
    /* Cores de Texto */
    --text-main: #1e293b;
    --text-muted: #475569;
    --text-dim: #64748b;
    
    /* Cor Primária para Light Mode - Indigo Profissional */
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-glow: rgba(79, 70, 229, 0.15);
    
    /* Status ajustados */
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #2563eb;
    
    /* Sombras */
    --shadow-sm: 0 1px 10px rgba(15, 23, 42, 0.1);
    --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.12);
}

/* === Overrides de componentes para Light Mode === */
.light-theme body,
.light-theme html {
    background: var(--dark);
    color: var(--text-main);
}

.light-theme .sidebar {
    background: #ffffff;
    border-right: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 4px 0 20px rgba(15, 23, 42, 0.06);
}

.light-theme .sidebar-header {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

.light-theme .sidebar-header h2 {
    color: var(--text-main);
}

.light-theme .nav-item {
    color: var(--text-muted);
}

.light-theme .nav-item:hover, 
.light-theme .nav-item.active {
    background: rgba(191, 255, 0, 0.12);
    color: #4a7000;
}

.light-theme .nav-section-title {
    color: var(--text-dim);
}

.light-theme .main-content {
    background: var(--dark);
}

.light-theme .top-bar {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.light-theme .page-title {
    color: var(--text-main) !important;
}

.light-theme .user-info strong {
    color: var(--text-main) !important;
}

.light-theme .card {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.07);
}

.light-theme .card:hover {
    background: #ffffff;
    border-color: var(--primary-dark);
    box-shadow: 0 4px 20px rgba(191, 255, 0, 0.2);
}

.light-theme .card-header {
    background: rgba(15, 23, 42, 0.03);
    border-bottom-color: rgba(15, 23, 42, 0.08);
    color: var(--text-main);
}

.light-theme .card-header h2 {
    color: #4a7000;
}

.light-theme .form-control {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.15);
    color: var(--text-main);
}

.light-theme .form-control:focus {
    background: #ffffff;
    border-color: #8fc200;
    box-shadow: 0 0 0 3px rgba(191, 255, 0, 0.15);
}

.light-theme .form-control::placeholder {
    color: var(--text-dim);
}

.light-theme .form-group label {
    color: var(--text-muted);
}

.light-theme .table-container {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.07);
}

.light-theme th {
    background: rgba(15, 23, 42, 0.04);
    color: var(--text-muted);
    border-bottom-color: rgba(15, 23, 42, 0.1);
}

.light-theme td {
    border-bottom-color: rgba(15, 23, 42, 0.06);
    color: var(--text-main);
}

.light-theme tr:hover {
    background: rgba(15, 23, 42, 0.03);
}

.light-theme .modal-content {
    background: #f5f7fa;
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
}

.light-theme .modal-header {
    background: rgba(15, 23, 42, 0.03);
    border-bottom-color: rgba(15, 23, 42, 0.08);
    color: var(--text-main);
}

.light-theme .modal-header h3 {
    color: #4a7000;
}

.light-theme .modal-footer {
    background: rgba(15, 23, 42, 0.03);
    border-top-color: rgba(15, 23, 42, 0.08);
}

.light-theme .stat-card {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.07);
}

.light-theme .stat-content h3 {
    color: var(--text-main);
}

.light-theme .stat-content p {
    color: var(--text-muted);
}

.light-theme .btn-glass {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.12);
    color: var(--text-main);
}

.light-theme .btn-glass:hover {
    background: rgba(15, 23, 42, 0.1);
    border-color: #8fc200;
    color: #4a7000;
}

.light-theme .btn-outline {
    color: #4a7000;
    border-color: #8fc200;
}

.light-theme .btn-outline:hover {
    background: #8fc200;
    color: #ffffff;
}

.light-theme .badge-warning {
    background: rgba(217, 119, 6, 0.12);
    color: #92400e;
}

.light-theme .badge-success {
    background: rgba(22, 163, 74, 0.1);
    color: #15803d;
}

.light-theme .badge-danger {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

.light-theme .badge-info {
    background: rgba(2, 132, 199, 0.1);
    color: #0369a1;
}

.light-theme .alert-error {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.2);
    color: #991b1b;
}

.light-theme .alert-success {
    background: rgba(22, 163, 74, 0.08);
    border-color: rgba(22, 163, 74, 0.2);
    color: #166534;
}

.light-theme .tabs {
    border-bottom-color: rgba(15, 23, 42, 0.1);
}

.light-theme .tab {
    color: var(--text-muted);
}

.light-theme .exercicio-card {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
}

.light-theme .exercicio-card:hover {
    border-color: #8fc200;
}

.light-theme .exercicio-info h4 {
    color: var(--text-main);
}

.light-theme .exercicio-info small {
    color: var(--text-muted);
}

.light-theme .theme-toggle {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.12);
    color: var(--text-muted);
}

.light-theme .user-avatar {
    color: var(--dark);
}

.light-theme ::-webkit-scrollbar-track {
    background: #e8edf2;
}

.light-theme ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border: 2px solid #e8edf2;
}

.light-theme ::-webkit-scrollbar-thumb:hover {
    background: #8fc200;
}

.light-theme .glass-card {
    background: rgba(255,255,255,0.9);
    border-color: rgba(15, 23, 42, 0.1);
}

.light-theme .painel-header {
    background: linear-gradient(135deg, rgba(143, 194, 0, 0.12), rgba(255,255,255,0.5));
    border-color: rgba(15, 23, 42, 0.1);
}

.light-theme .treino-card {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
}

.light-theme .exercicio-item {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.08);
}

.light-theme .exercicio-item:hover {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(143, 194, 0, 0.4);
}

.light-theme .detalhe-badge {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.1);
    color: var(--text-muted);
}

.light-theme .serie-row {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.08);
}

.light-theme .serie-input input {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.15);
    color: var(--text-main);
}

.light-theme .serie-check {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.12);
    color: var(--text-muted);
}

.light-theme .mobile-menu-btn {
    color: var(--text-main);
}

.light-theme select option {
    background: #ffffff;
    color: var(--text-main);
}

/* ================================================
   RESET E BASE
   ================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: var(--dark);
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: var(--transition);
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* Scrollbar Customizada */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--dark);
}
::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 10px;
    border: 2px solid var(--dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ================================================
   UTILITÁRIOS
   ================================================ */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }

.hover-primary:hover {
    color: var(--primary) !important;
    transform: translateY(-3px);
}

.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-md { gap: var(--spacing-md); }

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
}

/* ================================================
   COMPONENTES - BOTÕES
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-transform: uppercase;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary);
    color: var(--dark);
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    background: var(--text-main);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--dark);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--dark);
    box-shadow: var(--glow-primary);
}

.btn-glass {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: var(--glass-hover);
    border-color: var(--primary);
}

/* ================================================
   COMPONENTES - FORMULÁRIOS
   ================================================ */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-main);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 15px rgba(191, 255, 0, 0.1);
}

.form-control::placeholder {
    color: var(--text-dim);
}

/* Estilo para as opções do select (Dropdown) */
.form-control option {
    background-color: #1a1a2e; /* Fundo escuro fixo para garantir visibilidade */
    color: white;
}

.light-theme .form-control option {
    background-color: white;
    color: var(--text-main);
}

/* ================================================
   COMPONENTES - CARDS
   ================================================ */
.card {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    transition: var(--transition);
}

.card:hover {
    border-color: var(--primary);
    background: rgba(30, 30, 35, 0.9);
    transform: translateY(-5px);
}

/* Componente de Box de Séries (Histórico) */
.serie-box {
    background: var(--dark-surface);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.6rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.serie-box:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    background: rgba(191, 255, 0, 0.05);
}

.serie-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.serie-value {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
    margin: 2px 0;
}

.serie-reps {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.light-theme .serie-box {
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.1);
}

.light-theme .serie-value {
    color: var(--primary-dark);
}

/* Interface de Busca no Histórico */
.search-box {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    pointer-events: none;
}

.pl-xl {
    padding-left: 2.8rem !important;
}

/* Novo Card de Histórico */
.history-card {
    background: var(--dark-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.history-header {
    background: var(--glass);
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.history-date {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
}

.history-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-body {
    padding: var(--spacing-md) var(--spacing-lg);
}

.history-ex {
    margin-bottom: var(--spacing-md);
}

.history-ex:last-child {
    margin-bottom: 0;
}

.history-ex-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: var(--spacing-sm);
}

.history-series {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.history-serie {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-serie .s-num {
    color: var(--primary);
    font-weight: 800;
    font-size: 0.75rem;
}

.history-serie .s-val {
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Overrides para Light Mode */
.light-theme .history-card {
    background: #ffffff;
}

.light-theme .history-date {
    color: var(--primary);
}

.light-theme .history-serie {
    background: #f8fafc;
}

.light-theme .history-serie .s-val {
    color: var(--text-main);
}

.card-header {
    padding: var(--spacing-lg);
    background: var(--glass);
    border-bottom: 1px solid var(--glass-border);
    color: white;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.card-body {
    padding: var(--spacing-lg);
}

.card-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--glass);
    border-top: 1px solid var(--glass-border);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

/* ================================================
   COMPONENTES - TABELAS
   ================================================ */
.table-container {
    overflow-x: auto;
    border-radius: var(--border-radius);
    background: var(--dark-surface);
    border: 1px solid var(--glass-border);
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 100%;
}

th, td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

th {
    background: var(--glass);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.table-actions {
    display: flex;
    gap: var(--spacing-xs);
}

/* ================================================
   COMPONENTES - BADGES
   ================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(0,184,148,0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(253,203,110,0.2);
    color: #b37400;
}

.badge-danger {
    background: rgba(214,48,49,0.1);
    color: var(--danger);
}

.badge-info {
    background: rgba(9,132,227,0.1);
    color: var(--info);
}

/* ================================================
   MODAL
   ================================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--dark-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    width: 95%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: var(--transition);
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: var(--spacing-lg);
    background: var(--glass);
    border-bottom: 1px solid var(--glass-border);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.25rem;
    color: var(--primary);
}

.modal-close {
    color: var(--text-dim);
    font-size: 1.5rem;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--glass);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-sm);
}

/* ================================================
   LOGIN PAGE
   ================================================ */
.login-page {
    background: radial-gradient(circle at top right, #1a1a2e, #050505);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.login-box {
    background: var(--dark-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    width: 100%;
    max-width: 420px;
}

.login-header {
    padding: var(--spacing-2xl) var(--spacing-lg);
    background: linear-gradient(135deg, rgba(191, 255, 0, 0.1), transparent);
    border-bottom: 1px solid var(--glass-border);
    color: white;
    text-align: center;
}

.login-header .logo {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: var(--dark);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 2.5rem;
    box-shadow: var(--glow-primary);
}

.login-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.5px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.login-form {
    padding: var(--spacing-xl);
}

.login-footer {
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.forgot-link, .back-link {
    color: var(--text-dim);
    font-size: 0.9rem;
    transition: var(--transition);
}

.forgot-link:hover, .back-link:hover {
    color: var(--primary);
}

/* ================================================
   LANDING PAGE
   ================================================ */
.landing-page {
    background: var(--dark);
    color: var(--text-main);
}

.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md) var(--spacing-xl);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--glass-border);
}

.landing-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.landing-nav {
    display: flex;
    gap: var(--spacing-lg);
}

.landing-nav a {
    font-weight: 500;
    color: var(--text-muted);
}

.landing-nav a:hover {
    color: var(--primary);
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-2xl) 0;
    background: radial-gradient(circle at bottom left, rgba(191, 255, 0, 0.05), transparent 40%),
                url('../uploads/hero_background.png') center/cover no-repeat;
    position: relative;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--dark) 20%, transparent 80%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -2px;
}

.hero-content h1 span {
    color: var(--primary);
    display: block;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
}

.features-section {
    padding: var(--spacing-2xl) 0;
    background: var(--dark-surface);
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--glass-hover);
    border-color: var(--primary);
    transform: translateY(-10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--dark);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--glow-primary);
}

.cta-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--dark);
    text-align: center;
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 800;
}

.landing-footer {
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-dim);
}

/* ================================================
   ADMIN PANEL - LAYOUT
   ================================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--dark);
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--dark-surface);
    border-right: 1px solid var(--glass-border);
    position: fixed;
    height: 100vh;
    z-index: 1000;
}

.sidebar-header {
    padding: var(--spacing-xl) var(--spacing-lg);
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-header i {
    color: var(--primary);
    filter: drop-shadow(var(--glow-primary));
}

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

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 1rem var(--spacing-lg);
    color: var(--text-muted);
    transition: var(--transition);
    border-right: 3px solid transparent;
    width: 100%;
}

.nav-item:hover, .nav-item.active {
    color: var(--primary);
    background: linear-gradient(to right, rgba(191, 255, 0, 0.05), transparent);
    border-right-color: var(--primary);
}

.nav-item i {
    width: 24px;
    text-align: center;
}

.nav-section-title {
    padding: var(--spacing-md);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-dim);
    letter-spacing: 1px;
    margin-top: var(--spacing-md);
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: var(--spacing-xl);
    background: var(--dark);
    min-height: 100vh;
    width: calc(100% - var(--sidebar-width));
    max-width: calc(100% - var(--sidebar-width));
    overflow-y: auto;
    overflow-x: hidden;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.user-info {
    text-align: right;
}

.user-info strong {
    display: block;
    color: var(--text-main);
}

.user-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.user-avatar {
    width: 45px;
    height: 45px;
    background: var(--primary);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-weight: 700;
}

/* ================================================
   ADMIN - CARDS DE ESTATÍSTICAS
   ================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    background: var(--dark-surface);
    border: 1px solid var(--glass-border);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.stat-icon.blue { background: rgba(0, 209, 255, 0.1); color: var(--info); }
.stat-icon.green { background: rgba(0, 255, 163, 0.1); color: var(--success); }
.stat-icon.red { background: rgba(255, 51, 102, 0.1); color: var(--danger); }
.stat-icon.yellow { background: rgba(255, 230, 0, 0.1); color: var(--warning); }

.stat-content h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -1px;
}

.stat-content p {
    color: var(--text-dim);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================================================
   PAINEL DO ALUNO - TREINO
   ================================================ */
.painel-aluno {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    padding-bottom: 100px; /* Espaço para o menu inferior */
}

.painel-header {
    background: linear-gradient(135deg, var(--primary-glow), transparent);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-xl);
}

.painel-header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.treino-card {
    background: var(--dark-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.treino-header {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: #ffffff; /* Sempre branco para contraste no gradiente */
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.light-theme .treino-header {
    background: var(--primary);
    color: #ffffff;
}

.treino-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
}

.exercicio-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    transition: var(--transition);
}

.exercicio-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(191, 255, 0, 0.3);
}

.exercicio-nome {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: var(--spacing-md);
}

.detalhe-badge {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius-full);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.serie-row {
    display: grid;
    grid-template-columns: 50px 1fr 1fr 45px;
    gap: 12px;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--glass-border);
}

.serie-row.completed {
    background: rgba(0, 255, 163, 0.05);
    border-color: var(--success);
}

.serie-numero {
    font-weight: 800;
    color: var(--primary);
}

.serie-input input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 10px;
    color: var(--text-main);
    text-align: center;
    font-weight: 700;
    width: 100%;
}

.serie-input input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.serie-check {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.serie-row.completed .serie-check {
    background: var(--success);
    color: var(--dark);
    box-shadow: 0 0 15px rgba(0, 255, 163, 0.4);
}

/* Botão de Ver Exercício (Olho) */
.btn-icon {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--primary);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.btn-icon:hover {
    background: var(--glass-hover);
    transform: scale(1.1) translateY(-2px);
    box-shadow: var(--glow-primary);
    border-color: var(--primary);
}

/* Menu de Navegação Inferior Premium */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    padding: 12px 8px env(safe-area-inset-bottom);
    z-index: 1000;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    flex: 1;
    opacity: 0.7;
}

.nav-link i {
    font-size: 1.3rem;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    opacity: 1;
}

.nav-link.active i {
    transform: translateY(-3px);
    text-shadow: 0 0 15px var(--primary-glow);
}

/* Overrides Light Mode */
.light-theme .btn-icon {
    color: var(--primary-dark);
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.1);
}

.light-theme .bottom-nav {
    background: rgba(255, 255, 255, 0.9);
    border-top-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 -5px 20px rgba(15, 23, 42, 0.08);
}

.btn-finalizar {
    background: var(--primary);
    color: var(--dark);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    font-size: 1.25rem;
    font-weight: 800;
    width: 100%;
    text-transform: uppercase;
    box-shadow: var(--glow-primary);
}

.btn-finalizar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,184,148,0.5);
}

/* ================================================
   RESPONSIVIDADE - MOBILE FIRST
   ================================================ */
@media (max-width: 768px) {
    /* Forçar overflow-x hidden em tudo no mobile */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    * {
        max-width: 100%;
    }
    
    .admin-layout,
    .main-content,
    .page-content {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        margin: 0;
        padding: var(--spacing-sm);
    }
    
    .card, .stats-grid, .table-container {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .card {
        border-radius: var(--border-radius-sm) !important;
        box-shadow: var(--shadow-sm) !important;
        margin-bottom: var(--spacing-md) !important;
    }
    
    .card-header {
        padding: var(--spacing-md) !important;
        flex-direction: column !important;
        gap: var(--spacing-sm) !important;
    }
    
    .card-header h2 {
        font-size: 1rem !important;
    }
    
    .card-body {
        padding: var(--spacing-md) !important;
    }
    
    .table-container {
        background: transparent !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .mobile-card-list table,
    .mobile-card-list thead,
    .mobile-card-list tbody,
    .mobile-card-list th,
    .mobile-card-list td,
    .mobile-card-list tr {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .mobile-card-list thead {
        display: none !important;
    }
    
    .mobile-card-list tbody tr {
        background: var(--dark-card) !important;
        border: 1px solid var(--glass-border) !important;
        border-radius: var(--border-radius-sm) !important;
        padding: var(--spacing-sm) !important;
        margin-bottom: var(--spacing-sm) !important;
        box-shadow: var(--shadow-sm) !important;
        width: 100% !important;
    }
    
    .mobile-card-list tbody td {
        display: flex !important;
        justify-content: space-between !important;
        padding: var(--spacing-xs) 0 !important;
        border-bottom: 1px solid var(--glass-border) !important;
        color: var(--text-main) !important;
    }
    
    .mobile-card-list tbody td:last-child {
        border-bottom: none !important;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
        width: 280px;
        max-width: 100%;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .mobile-menu-btn {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    *, *::before, *::after {
        box-sizing: border-box;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .admin-layout {
        width: 100%;
        overflow-x: hidden;
    }
    
    .main-content {
        padding: var(--spacing-md);
        margin: 0;
        width: 100%;
        overflow-x: hidden;
        min-height: 100vh;
    }
    
    .page-content {
        width: 100%;
        overflow-x: hidden;
        padding: 0;
    }
    
    .hero-section {
        padding: var(--spacing-md);
        padding-top: 80px;
        min-height: auto;
    }

    .features-section {
        padding: var(--spacing-lg);
    }
    
    /* Grid de Dashboard em Cards no Mobile */
    .dashboard-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--spacing-md) !important;
        grid-template-columns: 1fr !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: var(--spacing-md);
    }
    
    .form-row .form-group {
        width: 100% !important;
        flex: none !important;
    }
    
    .form-group {
        margin-bottom: var(--spacing-md) !important;
    }

    .top-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: var(--spacing-sm) !important;
        margin-bottom: var(--spacing-md) !important;
    }
    
    .page-title {
        font-size: 1.3rem;
    }
    
    .user-menu {
        justify-content: space-between !important;
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-sm) !important;
        margin-bottom: var(--spacing-md) !important;
    }
    
    .stat-card {
        flex-direction: row !important;
        text-align: left !important;
        padding: var(--spacing-md) !important;
        gap: var(--spacing-md) !important;
    }
    
    .stat-icon {
        width: 45px !important;
        height: 45px !important;
        flex-shrink: 0;
    }
    
    .stat-content {
        flex: 1;
    }
    
    .stat-content h3 {
        font-size: 1.2rem !important;
    }
    
    .stat-content p {
        font-size: 0.75rem !important;
    }

    .serie-row {
        grid-template-columns: 45px 1fr 1fr;
        gap: 6px;
        padding: 8px !important;
    }

    .serie-check {
        display: none !important;
    }
    
    .serie-input input {
        padding: 6px 4px !important;
        font-size: 0.9rem !important;
        min-height: 38px !important;
    }
    
    .serie-input label {
        font-size: 0.6rem !important;
    }
    
    .serie-numero {
        font-size: 0.8rem !important;
    }
    
    .exercicio-item {
        padding: var(--spacing-sm) !important;
    }
    
    .exercicio-nome {
        font-size: 0.95rem !important;
    }
    
    .exercicio-detalhes {
        gap: 6px !important;
    }
    
    .detalhe-badge {
        font-size: 0.7rem !important;
        padding: 3px 8px !important;
    }
    
    .table-container {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        overflow: visible !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    
    /* Converter Tabela em Cards no Mobile */
    .mobile-card-list {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--spacing-sm) !important;
    }
    
    .mobile-card-list table,
    .mobile-card-list thead,
    .mobile-card-list tbody,
    .mobile-card-list th,
    .mobile-card-list td,
    .mobile-card-list tr {
        display: block !important;
        width: 100% !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
    }
    
    .mobile-card-list thead {
        display: none !important;
    }
    
    .mobile-card-list tbody tr {
        background: var(--dark-card) !important;
        border: 1px solid var(--glass-border) !important;
        border-radius: var(--border-radius-sm) !important;
        padding: var(--spacing-md) !important;
        margin-bottom: var(--spacing-sm) !important;
        box-shadow: var(--shadow-sm) !important;
    }
    
    .mobile-card-list tbody td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: var(--spacing-xs) 0 !important;
        border-bottom: 1px solid var(--glass-border) !important;
        text-align: left !important;
        color: var(--text-main) !important;
    }
    
    .mobile-card-list tbody td:last-child {
        border-bottom: none !important;
    }
    
    .mobile-card-list tbody td::before {
        content: attr(data-label);
        font-weight: 600 !important;
        color: var(--text-muted) !important;
        font-size: 0.75rem !important;
        text-transform: uppercase !important;
    }
    
    .mobile-card-list .table-actions {
        display: flex !important;
        gap: var(--spacing-xs) !important;
        justify-content: flex-end !important;
        margin-top: var(--spacing-sm) !important;
        padding-top: var(--spacing-sm) !important;
        border-top: 1px solid var(--glass-border) !important;
    }

    th, td {
        padding: var(--spacing-sm);
        font-size: 0.8rem;
    }
    
    th {
        font-size: 0.75rem;
    }
    
    .table-actions {
        flex-wrap: wrap;
        gap: var(--spacing-xs);
    }
    
    .btn-sm {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    .card {
        border-radius: var(--border-radius-sm) !important;
        box-shadow: var(--shadow-sm) !important;
        margin-bottom: var(--spacing-md) !important;
    }
    
    .card-body {
        padding: var(--spacing-md) !important;
    }
    
    .card-header {
        padding: var(--spacing-md) !important;
        flex-direction: column !important;
        gap: var(--spacing-sm) !important;
    }
    
    .card-header h2 {
        font-size: 1rem;
    }
    
    .top-bar.flex {
        flex-wrap: wrap !important;
    }
    
    .top-bar.flex.justify-between {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: var(--spacing-md) !important;
    }
    
    .flex.items-center {
        justify-content: space-between !important;
    }
    
    .badge {
        font-size: 0.65rem !important;
        padding: 2px 6px !important;
    }
    
    .modal-content {
        width: 98% !important;
        margin: var(--spacing-xs) !important;
        max-height: 95vh !important;
        border-radius: var(--border-radius-sm) !important;
    }
    
    .modal-body {
        padding: var(--spacing-md) !important;
    }
    
    .modal-footer {
        padding: var(--spacing-sm) var(--spacing-md) !important;
        flex-wrap: wrap !important;
        gap: var(--spacing-sm) !important;
    }
    
    .modal-footer .btn {
        flex: 1 !important;
        min-width: 100px !important;
    }
    
    .alert {
        padding: var(--spacing-sm) !important;
        font-size: 0.85rem !important;
        margin-bottom: var(--spacing-md) !important;
        border-radius: var(--border-radius-sm) !important;
    }
    
    .image-upload-container {
        padding: var(--spacing-sm) !important;
    }
    
    .stats-grid .stat-content h3 {
        font-size: 1.3rem;
    }
    
    .stats-grid .stat-content p {
        font-size: 0.8rem;
    }
    
    /* Treinos mobile */
    .exercicio-card {
        background: var(--gray-100);
        border-radius: var(--border-radius-sm);
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-sm);
    }
    
    .exercicio-card img {
        width: 100% !important;
        height: auto !important;
        border-radius: var(--border-radius-sm);
        margin-bottom: var(--spacing-sm);
    }
    
    /* Navegação do Treino */
    .treino-nav-mobile {
        display: flex !important;
        gap: var(--spacing-xs);
        overflow-x: auto;
        padding-bottom: var(--spacing-sm);
        -webkit-overflow-scrolling: touch;
    }
    
    .treino-nav-mobile a {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .painel-aluno {
        padding: var(--spacing-md);
    }
    
    .serie-row {
        grid-template-columns: 40px 1fr 1fr 40px;
        gap: 8px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .landing-nav a:not(.btn) {
        display: none;
    }
    
    .btn:not(.landing-nav .btn) {
        width: 100%;
    }
    .landing-nav .btn {
        padding: 6px 12px !important;
        font-size: 0.7rem !important;
    }
}

/* ================================================
   ANIMAÇÕES
   ================================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 15px var(--primary-glow); }
    50% { box-shadow: 0 0 25px var(--primary-glow); }
}

.animate-fadeIn {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-glow {
    animation: glowPulse 3s infinite;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius-sm);
    color: white;
    font-weight: 500;
    z-index: 2000;
    animation: slideIn 0.3s ease;
}

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

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

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
/* Theme Toggle Button */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--glass-hover);
    color: var(--primary);
    transform: rotate(15deg);
}

.light-theme .theme-toggle {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.1);
    color: var(--primary);
}
