/* ============================================
   SAHOST - SISTEMA DE CONTROLE COM IA
   Estilos Completos
   ============================================ */

/* RESET & VARIÁVEIS */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

:root {
    --bg-dark: #0a0e1a;
    --bg-card: #151b2d;
    --bg-glass: rgba(21, 27, 45, 0.7);
    --cyan: #00d9ff;
    --green: #00ff88;
    --yellow: #ffd700;
    --red: #ff4444;
    --purple: #a855f7;
    --text: #e6edf3;
    --text-sec: #8b949e;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0e1a 0%, #1e293b 100%);
    color: var(--text);
    overflow-x: hidden;
}

/* GLASS EFFECT */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 217, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ANIMATIONS */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 217, 255, 0.4); }
    50% { box-shadow: 0 0 40px rgba(0, 217, 255, 0.8); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   LOGIN PAGE
   ============================================ */

.login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: var(--bg-glass);
    backdrop-filter: blur(30px);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 30px;
    padding: 50px 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.5s ease;
}

.logo {
    text-align: center;
    margin-bottom: 35px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    border-radius: 22px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    animation: glow 2s infinite;
}

.logo-text {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

/* FORMS */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-sec);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(10, 14, 26, 0.8);
    border: 2px solid rgba(0, 217, 255, 0.2);
    border-radius: 14px;
    font-size: 14px;
    color: var(--text);
    font-family: inherit;
    transition: all 0.3s;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
    transform: translateY(-2px);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* BUTTONS */
.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.5);
}

.btn-sec {
    padding: 12px 24px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text);
    transition: all 0.3s;
}

.btn-sec:hover {
    background: rgba(0, 217, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 217, 255, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--red), #dc2626);
    border: none;
    color: white;
}

/* ALERTS */
.alert {
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    animation: slideIn 0.3s ease;
}

.alert-success {
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid var(--green);
    color: var(--green);
}

.alert-danger {
    background: rgba(255, 68, 68, 0.15);
    border: 1px solid var(--red);
    color: var(--red);
}

/* ============================================
   APP LAYOUT
   ============================================ */

.app {
    display: none;
    min-height: 100vh;
}

.app.active {
    display: flex;
}

/* SIDEBAR */
.sidebar {
    width: 280px;
    background: var(--bg-glass);
    backdrop-filter: blur(30px);
    border-right: 1px solid rgba(0, 217, 255, 0.2);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(0, 217, 255, 0.1), transparent 50%);
    pointer-events: none;
}

.sidebar-brand {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
    position: relative;
    z-index: 1;
}

.sidebar-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    border-radius: 18px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    animation: pulse 2s infinite;
}

.sidebar-title {
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 3px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 8px;
    border-radius: 12px;
    color: var(--text-sec);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.menu-item:hover {
    background: rgba(0, 217, 255, 0.1);
    color: var(--cyan);
    transform: translateX(5px);
}

.menu-item.active {
    background: linear-gradient(135deg, var(--cyan), var(--green));
    color: white;
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.4);
}

.menu-icon {
    font-size: 20px;
}

.sidebar-menu {
    flex: 1;
    position: relative;
    z-index: 1;
}

.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
    position: relative;
    z-index: 1;
}

/* MAIN CONTENT */
.main {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    position: relative;
}

.main::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.05), transparent 70%);
    pointer-events: none;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    animation: slideIn 0.5s ease;
}

.header h1 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 5px;
    background: linear-gradient(135deg, var(--text), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    color: var(--text-sec);
    font-size: 14px;
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-icon:hover {
    background: rgba(0, 217, 255, 0.2);
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.4);
}

/* STATS CARDS */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 24px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
    animation: slideIn 0.5s ease;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.stat.cyan::before { background: linear-gradient(90deg, var(--cyan), var(--green)); }
.stat.yellow::before { background: linear-gradient(90deg, var(--yellow), var(--cyan)); }
.stat.purple::before { background: linear-gradient(90deg, var(--purple), var(--cyan)); }
.stat.red::before { background: linear-gradient(90deg, var(--red), var(--yellow)); }

.stat:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 217, 255, 0.3);
    border-color: var(--cyan);
}

.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.stat.cyan .stat-icon { background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(0, 255, 136, 0.2)); }
.stat.yellow .stat-icon { background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(0, 217, 255, 0.2)); }
.stat.purple .stat-icon { background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(0, 217, 255, 0.2)); }
.stat.red .stat-icon { background: linear-gradient(135deg, rgba(255, 68, 68, 0.2), rgba(255, 215, 0, 0.2)); }

.stat:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-value {
    font-size: 42px;
    font-weight: 900;
    margin: 12px 0;
    background: linear-gradient(135deg, var(--text), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-sec);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-trend {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: var(--text-sec);
}

.trend-up {
    color: var(--green);
    font-weight: 700;
}

/* SECTIONS */
.section {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 25px;
    animation: slideIn 0.5s ease;
}

.section-title {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--text), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* CARDS */
.card {
    background: rgba(10, 14, 26, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--cyan), var(--green));
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover {
    transform: translateX(12px);
    border-color: var(--cyan);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.25);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.hash {
    background: linear-gradient(135deg, var(--cyan), var(--green));
    padding: 8px 18px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
}

.time {
    font-size: 12px;
    color: var(--text-sec);
    font-weight: 600;
}

.card-body {
    color: var(--text-sec);
    line-height: 1.7;
    margin: 15px 0;
    font-size: 14px;
}

/* BADGES */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-right: 8px;
    text-transform: uppercase;
}

.badge.blue { background: rgba(59, 130, 246, 0.2); border: 1px solid #3b82f6; color: #3b82f6; }
.badge.green { background: rgba(0, 255, 136, 0.2); border: 1px solid var(--green); color: var(--green); }
.badge.yellow { background: rgba(255, 215, 0, 0.2); border: 1px solid var(--yellow); color: var(--yellow); }
.badge.red { background: rgba(255, 68, 68, 0.2); border: 1px solid var(--red); color: var(--red); }
.badge.purple { background: rgba(168, 85, 247, 0.2); border: 1px solid var(--purple); color: var(--purple); }

/* AI SPECIFIC */
.ai-card {
    border: 2px solid rgba(168, 85, 247, 0.3);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(0, 217, 255, 0.1));
}

.ai-card.suspicious {
    border-color: var(--red);
    animation: pulse 2s infinite;
}

.score-bar {
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    margin: 10px 0;
}

.score-fill {
    height: 100%;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.score-fill.good { background: linear-gradient(90deg, var(--green), var(--cyan)); }
.score-fill.warning { background: linear-gradient(90deg, var(--yellow), var(--cyan)); }
.score-fill.bad { background: linear-gradient(90deg, var(--red), var(--yellow)); }

/* EMPTY STATE */
.empty {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 25px;
    opacity: 0.4;
    animation: pulse 2s infinite;
}

.empty-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.empty-text {
    color: var(--text-sec);
    margin-bottom: 30px;
    font-size: 14px;
}

/* STATUS */
.status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.status.on { background: rgba(0, 255, 136, 0.2); border: 1px solid var(--green); color: var(--green); }
.status.off { background: rgba(255, 68, 68, 0.2); border: 1px solid var(--red); color: var(--red); }

/* LOADING */
.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 217, 255, 0.2);
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* NOTIFICATION DOT */
.notif {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--green);
    animation: pulse 2s infinite;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--cyan), var(--green)); border-radius: 10px; }

/* SECURITY BADGE */
.security-badge {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid var(--green);
    color: var(--green);
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    animation: slideIn 1s ease;
}

/* MOBILE MENU BUTTON */
.mobile-menu-btn {
    display: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header h1 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .app {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(0, 217, 255, 0.2);
        padding: 20px;
    }
    
    .sidebar-menu {
        display: none;
    }
    
    .sidebar-menu.mobile-open {
        display: block;
    }
    
    .sidebar-brand {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        background: linear-gradient(135deg, var(--cyan), var(--green));
        border: none;
        border-radius: 12px;
        font-size: 24px;
        cursor: pointer;
        transition: transform 0.3s;
        color: white;
    }
    
    .mobile-menu-btn:active {
        transform: scale(0.95);
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .main {
        padding: 20px 15px;
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .card {
        padding: 20px;
    }
    
    .card:hover {
        transform: translateX(5px);
    }
    
    .form-input, .form-textarea {
        font-size: 16px; /* Evita zoom no iOS */
    }
    
    .security-badge {
        bottom: 15px;
        right: 15px;
        font-size: 10px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .logo-text,
    .sidebar-title {
        font-size: 18px;
    }
    
    .stat-value {
        font-size: 32px;
    }
    
    .section {
        padding: 20px 15px;
    }
    
    .btn-primary {
        padding: 14px;
        font-size: 14px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .badge {
        font-size: 9px;
        padding: 4px 8px;
    }
}
/* ============================================
   CSS PARA RELATÓRIOS E IMPRESSÃO
   ============================================ */

/* ESTILOS PARA IMPRESSÃO */
@media print {
    /* Esconde tudo exceto o relatório */
    body * {
        visibility: hidden;
    }
    
    #printableReport,
    #printableReport * {
        visibility: visible;
    }
    
    #printableReport {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: white !important;
    }
    
    /* Força cores na impressão */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
    
    /* Remove sombras e efeitos desnecessários */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    /* Quebras de página */
    h2 {
        page-break-after: avoid;
    }
    
    table {
        page-break-inside: avoid;
    }
    
    tr {
        page-break-inside: avoid;
    }
    
    /* Remove botões na impressão */
    button,
    .btn-primary,
    .btn-sec,
    .no-print {
        display: none !important;
    }
}

/* ESTILOS DO RELATÓRIO NA TELA */
#reportContent {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

#printableReport {
    background: white;
    color: #1a1a1a;
}

#printableReport h1,
#printableReport h2,
#printableReport h3 {
    color: #0066cc;
}

#printableReport table {
    width: 100%;
    border-collapse: collapse;
}

#printableReport th {
    background: #f8f9fa;
    font-weight: 700;
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid #dee2e6;
}

#printableReport td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

#printableReport tr:hover {
    background: #f8f9fa;
}

/* Barras de progresso */
.progress-bar {
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    transition: width 0.5s ease;
}

/* Badges de status */
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
}

.status-badge.success {
    background: #d4edda;
    color: #155724;
}

.status-badge.danger {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.warning {
    background: #fff3cd;
    color: #856404;
}

/* Responsivo para o relatório */
@media (max-width: 768px) {
    #printableReport {
        padding: 20px !important;
    }
    
    #printableReport h1 {
        font-size: 24px !important;
    }
    
    #printableReport h2 {
        font-size: 20px !important;
    }
    
    #printableReport table {
        font-size: 12px !important;
    }
    
    #printableReport .grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
/* ============================================
   CSS PARA GRÁFICOS E AUTO-REFRESH
   Cole no FINAL do styles.css
   ============================================ */

/* Animação slideOut */
@keyframes slideOut {
    from { 
        opacity: 1; 
        transform: translateY(0); 
    }
    to { 
        opacity: 0; 
        transform: translateY(-20px); 
    }
}

/* Seção de gráficos */
#chartsSection {
    animation: slideIn 0.5s ease;
}

/* Canvas dos gráficos */
canvas {
    max-width: 100%;
    height: auto !important;
}

/* Responsivo para gráficos */
@media (max-width: 768px) {
    #chartsSection > div:first-child {
        grid-template-columns: 1fr !important;
    }
    
    #chartsSection canvas {
        max-height: 200px !important;
    }
}

/* Indicador de auto-refresh */
#autoRefreshIndicator {
    z-index: 9998;
    pointer-events: none;
}

/* Pulse animation para badges */
@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1;
    }
    50% { 
        transform: scale(1.05); 
        opacity: 0.8;
    }
}

/* Spin animation para loading */
@keyframes spin {
    to { 
        transform: rotate(360deg); 
    }
}
/* ============================================
   MENU RETRÁTIL/COLAPSÁVEL - VERSÃO FINAL
   ============================================ */

.sidebar {
    transition: all 0.3s ease;
    position: relative;
}

.sidebar.collapsed {
    width: 80px;
}

/* Esconde textos quando colapsado */
.sidebar.collapsed .sidebar-title {
    display: none;
}

.sidebar.collapsed .menu-item {
    justify-content: center;
    padding: 14px 10px;
}

.sidebar.collapsed .menu-item > *:not(.menu-icon) {
    display: none !important;
}

.sidebar.collapsed .menu-icon {
    margin: 0 !important;
    font-size: 24px;
}

/* Ajusta brand quando colapsado - CENTRALIZADO */
.sidebar.collapsed .sidebar-brand {
    padding: 20px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.sidebar.collapsed .sidebar-icon {
    width: 50px;
    height: 50px;
    font-size: 28px;
    margin: 0;
}

.sidebar.collapsed .mobile-menu-btn {
    display: none;
}

.sidebar.collapsed .sidebar-footer {
    padding: 10px;
}

/* Esconde badges quando colapsado */
.sidebar.collapsed .badge,
.sidebar.collapsed .notif {
    display: none !important;
}

/* Botão de colapsar - POSICIONAMENTO NO TOPO CORRIGIDO */
.collapse-btn {
    position: absolute;
    top: 30px;  /* ← MUDOU DE 50% PARA 30px */
    right: -15px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    border: 2px solid var(--bg-dark);
    border-radius: 50%;
    color: white;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.5);
    transition: all 0.3s ease;
    z-index: 1000;
}

.collapse-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 217, 255, 0.7);
}

.collapse-btn:active {
    transform: scale(0.95);
}

/* Tooltip do botão quando colapsado */
.sidebar.collapsed .menu-item {
    position: relative;
}

.sidebar.collapsed .menu-item:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    margin-left: 10px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    z-index: 1000;
    pointer-events: none;
    animation: slideIn 0.2s ease;
}

/* Mobile - esconde o botão */
@media (max-width: 768px) {
    .collapse-btn {
        display: none;
    }
    
    .sidebar.collapsed {
        width: 100%;
    }
}

/* ============================================
   CSS EXTRA PARA USUÁRIOS - SUPER BONITO
   Cole no FINAL do styles.css
   ============================================ */

/* Animação para entrada dos cards */
#usersList .card {
    animation: slideIn 0.5s ease;
    animation-fill-mode: both;
}

#usersList .card:nth-child(1) { animation-delay: 0.1s; }
#usersList .card:nth-child(2) { animation-delay: 0.2s; }
#usersList .card:nth-child(3) { animation-delay: 0.3s; }
#usersList .card:nth-child(4) { animation-delay: 0.4s; }
#usersList .card:nth-child(5) { animation-delay: 0.5s; }

/* Hover nos cards de usuário */
#usersList .card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 217, 255, 0.4);
}

/* Animação do avatar */
#usersList .card:hover [style*="border-radius:50%"] {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s ease;
}

/* Badge animado */
.badge {
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.1);
}

/* Checkbox customizado */
input[type="checkbox"] {
    accent-color: var(--green);
    cursor: pointer;
}

/* Animação do modal */
@keyframes modalSlide {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#editUserModal > div {
    animation: modalSlide 0.3s ease;
}

/* Input focus mais bonito */
#userForm input:focus,
#editUserForm input:focus,
#userForm select:focus,
#editUserForm select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.2);
    transform: translateY(-2px);
}

/* Botão criar usuário pulsante */
.header .btn-icon {
    animation: pulse 2s infinite;
}

/* Grid responsivo melhorado */
@media (max-width: 768px) {
    #usersList .card [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    #editUserModal > div {
        max-width: 95% !important;
        padding: 20px !important;
    }
}
/* ============================================
   CSS PARA USUÁRIOS - SUPER BONITO
   Cole no FINAL do styles.css
   ============================================ */

/* Animação de entrada dos cards */
#usersList .card {
    animation: slideIn 0.5s ease;
    animation-fill-mode: both;
}

#usersList .card:nth-child(1) { animation-delay: 0.1s; }
#usersList .card:nth-child(2) { animation-delay: 0.2s; }
#usersList .card:nth-child(3) { animation-delay: 0.3s; }
#usersList .card:nth-child(4) { animation-delay: 0.4s; }

/* Hover melhorado */
#usersList .card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 25px 60px rgba(0, 217, 255, 0.5);
}

/* Avatar pulsante ao hover */
#usersList .card:hover [style*="border-radius:50%"] {
    animation: pulse 1s infinite;
}

/* Botões com hover especial */
#usersList .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 217, 255, 0.6);
}

#usersList .btn-sec:hover {
    transform: translateY(-3px);
    background: rgba(0, 217, 255, 0.2);
}

/* Badge flutuante */
.badge {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.badge:hover {
    transform: scale(1.05);
}

/* Grid responsivo */
@media (max-width: 768px) {
    #usersList .card [style*="display:flex"] {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    #usersList .card [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* Status online piscando */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

[style*="🟢 Online"] {
    animation: blink 2s infinite;
}
/* ============================================
   LOGIN ULTRA MODERNO - VERSÃO COMPLETA
   Cole no FINAL do styles.css
   ============================================ */

/* CONTAINER PRINCIPAL */
.login-modern {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 50%, #0a0e1a 100%);
    position: relative;
    overflow: hidden;
    padding: 0;
}

/* PARTÍCULAS ANIMADAS */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--cyan);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
    opacity: 0.3;
    box-shadow: 0 0 10px var(--cyan);
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 15s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 18s; }
.particle:nth-child(4) { left: 50%; animation-delay: 1s; animation-duration: 14s; }
.particle:nth-child(5) { left: 60%; animation-delay: 3s; animation-duration: 16s; }
.particle:nth-child(6) { left: 70%; animation-delay: 5s; animation-duration: 13s; }
.particle:nth-child(7) { left: 80%; animation-delay: 2.5s; animation-duration: 17s; }
.particle:nth-child(8) { left: 90%; animation-delay: 4.5s; animation-duration: 19s; }

@keyframes float {
    0%, 100% { 
        transform: translateY(100vh) scale(0); 
        opacity: 0;
    }
    10% {
        opacity: 0.3;
        transform: translateY(90vh) scale(1);
    }
    90% {
        opacity: 0.3;
        transform: translateY(10vh) scale(1);
    }
    100% {
        opacity: 0;
    }
}

/* CONTAINER DO LOGIN */
.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 95%;
    max-width: 1400px;
    min-height: 85vh;
    background: rgba(21, 27, 45, 0.6);
    backdrop-filter: blur(40px);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 
        0 0 0 1px rgba(0, 217, 255, 0.1),
        0 30px 90px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: slideIn 0.6s ease;
}

/* LADO ESQUERDO - INFO */
.login-left {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.1), transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.login-info {
    position: relative;
    z-index: 1;
}

/* LOGO ANIMADO */
.logo-animated {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    position: relative;
}

.logo-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--cyan);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 3s linear infinite;
    opacity: 0.3;
}

.logo-ring.ring-2 {
    animation-duration: 2s;
    animation-direction: reverse;
    border-color: var(--green);
    border-top-color: transparent;
}

.logo-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 
        0 0 30px rgba(0, 217, 255, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    animation: glow 2s infinite alternate;
}

/* TÍTULO COM TYPING */
.brand-title {
    text-align: center;
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 8px;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.brand-subtitle {
    text-align: center;
    color: var(--text-sec);
    font-size: 16px;
    margin-bottom: 50px;
    font-weight: 500;
}

/* CARROSSEL DE FEATURES */
.features-carousel {
    position: relative;
    height: 140px;
    margin: 40px 0;
}

.feature {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s ease;
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 25px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.feature.active {
    opacity: 1;
    transform: translateX(0);
}

.feature-icon {
    font-size: 48px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    border-radius: 15px;
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text);
}

.feature-content p {
    font-size: 14px;
    color: var(--text-sec);
    line-height: 1.6;
}

/* ESTATÍSTICAS AO VIVO */
.live-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(0, 217, 255, 0.1);
    transition: all 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--cyan);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.stat-value {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-sec);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* LADO DIREITO - FORMULÁRIO */
.login-right {
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 14, 26, 0.8);
}

.login-form-wrapper {
    width: 100%;
    max-width: 420px;
}

.form-header {
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 32px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 10px;
}

.form-header p {
    color: var(--text-sec);
    font-size: 15px;
}

/* FORMULÁRIO MODERNO */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.label-icon {
    font-size: 18px;
}

.input-wrapper {
    position: relative;
}

.modern-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 217, 255, 0.2);
    border-radius: 14px;
    font-size: 15px;
    color: var(--text);
    font-family: inherit;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.modern-input:focus {
    outline: none;
    border-color: var(--cyan);
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--green));
    transition: width 0.4s;
    border-radius: 0 0 14px 14px;
}

.modern-input:focus ~ .input-border {
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
    z-index: 2;
}

.toggle-password:hover {
    opacity: 1;
}

/* OPÇÕES DO FORMULÁRIO */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-sec);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.checkbox-label input:checked ~ .checkbox-custom {
    background: linear-gradient(135deg, var(--cyan), var(--green));
    border-color: var(--cyan);
}

.checkbox-label input:checked ~ .checkbox-custom::after {
    content: '✓';
    color: white;
    font-weight: bold;
}

.forgot-link {
    color: var(--cyan);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.forgot-link:hover {
    color: var(--green);
    text-decoration: underline;
}

/* BOTÃO DE LOGIN */
.btn-login {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-login:hover::before {
    width: 300px;
    height: 300px;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.6);
}

.btn-login:active {
    transform: translateY(-1px);
}

.btn-text,
.btn-icon {
    position: relative;
    z-index: 1;
}

/* FOOTER DO FORM */
.form-footer {
    margin-top: 30px;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0 20px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.divider span {
    padding: 0 15px;
    color: var(--text-sec);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-login {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.social-btn {
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.social-btn:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--cyan);
    transform: translateY(-2px);
}

/* BADGES DE SEGURANÇA */
.security-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-sec);
}

.badge-icon {
    font-size: 16px;
}

/* RESPONSIVO */
@media (max-width: 1200px) {
    .login-container {
        grid-template-columns: 1fr;
        max-width: 550px;
    }
    
    .login-left {
        display: none;
    }
    
    .login-right {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .login-modern {
        padding: 20px;
    }
    
    .login-container {
        min-height: auto;
    }
    
    .login-right {
        padding: 30px 20px;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
    
    .modern-input {
        font-size: 16px; /* Previne zoom no iOS */
    }
}
/* ============================================
   EFEITOS EXTRAS DO LOGIN MODERNO
   Cole no FINAL do styles.css
   ============================================ */

/* EFEITO RIPPLE DO BOTÃO */
.btn-login .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ESTADOS DOS INPUTS */
.input-wrapper.focused .modern-input {
    box-shadow: 0 0 0 4px rgba(0, 217, 255, 0.1);
}

.input-wrapper.has-value .modern-input {
    background: rgba(0, 217, 255, 0.05);
}

/* ANIMAÇÃO MATRIX (EASTER EGG) */
@keyframes matrix {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(180deg); }
}

/* LOADING STATE DO BOTÃO */
.btn-login.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.btn-login.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-login.loading .btn-text,
.btn-login.loading .btn-icon {
    opacity: 0;
}

/* ALERTAS MODERNOS */
#loginAlert {
    margin-bottom: 25px;
}

#loginAlert .alert {
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    animation: slideIn 0.4s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

#loginAlert .alert::before {
    content: '';
    font-size: 20px;
}

#loginAlert .alert-success {
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid var(--green);
    color: var(--green);
}

#loginAlert .alert-success::before {
    content: '✅';
}

#loginAlert .alert-danger {
    background: rgba(255, 68, 68, 0.15);
    border: 1px solid var(--red);
    color: var(--red);
}

#loginAlert .alert-danger::before {
    content: '❌';
}

/* HOVER SUAVE NOS SOCIAL BUTTONS */
.social-btn svg {
    transition: transform 0.3s;
}

.social-btn:hover svg {
    transform: scale(1.2) rotate(5deg);
}

/* PULSE NO LOGO */
@keyframes glow {
    0%, 100% {
        box-shadow: 
            0 0 30px rgba(0, 217, 255, 0.6),
            inset 0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 50px rgba(0, 217, 255, 0.9),
            0 0 80px rgba(0, 255, 136, 0.5),
            inset 0 0 30px rgba(255, 255, 255, 0.2);
    }
}

/* SHAKE ANIMATION PARA ERRO */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.modern-input.error {
    animation: shake 0.5s;
    border-color: var(--red);
}

/* FOCO NO CHECKBOX */
.checkbox-label:hover .checkbox-custom {
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

/* GRADIENTE ANIMADO NO FUNDO */
.login-modern::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.03), transparent 50%);
    animation: rotate 30s linear infinite;
}

/* BRILHO NOS BADGES DE SEGURANÇA */
.badge-item {
    transition: all 0.3s;
}

.badge-item:hover {
    color: var(--cyan);
    transform: translateY(-2px);
}

.badge-item:hover .badge-icon {
    filter: drop-shadow(0 0 5px var(--cyan));
}

/* SCROLL SUAVE NA PÁGINA */
html {
    scroll-behavior: smooth;
}

/* MELHORIAS DE ACESSIBILIDADE */
.modern-input:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 2px;
}

.btn-login:focus-visible {
    outline: 3px solid white;
    outline-offset: 4px;
}

/* LOADING SPINNER PERSONALIZADO */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* RESPONSIVO - AJUSTES FINOS */
@media (max-width: 480px) {
    .brand-title {
        font-size: 42px;
        letter-spacing: 4px;
    }
    
    .live-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .security-badges {
        flex-direction: column;
        gap: 10px;
    }
}

/* MODO ESCURO REFORÇADO */
@media (prefers-color-scheme: dark) {
    .login-modern {
        background: linear-gradient(135deg, #000000 0%, #0a0e1a 50%, #000000 100%);
    }
}

/* TRANSIÇÕES SUAVES GLOBAIS */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* DESTAQUE QUANDO ARRASTA */
::selection {
    background: rgba(0, 217, 255, 0.3);
    color: white;
}

/* CURSORES CUSTOMIZADOS */
.btn-login,
.social-btn,
.forgot-link,
.checkbox-label,
.toggle-password {
    cursor: pointer;
}

/* FEEDBACK VISUAL NO CLICK */
.btn-login:active {
    transform: scale(0.98);
}

.social-btn:active {
    transform: scale(0.95);
}
/* Hover no botão de perfil */
#profileBtn:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--cyan);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 217, 255, 0.3);
}

/* Menu aberto */
#profileMenu.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Hover nos itens do menu */
.profile-menu-item:hover,
button[onclick="logout()"]:hover {
    background: rgba(0, 217, 255, 0.1) !important;
}

button[onclick="logout()"]:hover {
    background: rgba(255, 68, 68, 0.1) !important;
}