/* Definição de Variáveis de Cores (Dark Mode Nativo) */
:root {
    --bg-dark: #121212;
    --bg-card: rgba(30, 30, 30, 0.6); /* Transparência para o Glassmorphism */
    --green-neon: #00ff88;
    --red-alert: #ff3333;
    --purple-premium: #8a2be2;
    --gold-premium: #ffd700;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    overflow-x: hidden;
}

/* Base de Cards (Glassmorphism e Minimalismo) */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* =========================================
   ESTRUTURA DESKTOP
========================================= */
.sidebar {
    width: 250px;
    height: 100vh;
    background: #181818;
    position: fixed;
    padding: 24px;
    border-right: 1px solid rgba(255,255,255,0.05);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar .logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--green-neon);
    margin-bottom: 40px;
}

.menu-links { list-style: none; }
.menu-links li { margin-bottom: 15px; }
.menu-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 10px;
    border-radius: 8px;
    transition: 0.3s;
}
.menu-links a:hover { 
    background: rgba(255,255,255,0.05);
    color: var(--green-neon); 
}

.content {
    margin-left: 250px;
    padding: 30px;
    width: calc(100% - 250px);
    min-height: 100vh;
}

/* Oculta os menus mobile no desktop */
.mobile-header, .tab-bar { display: none; }

/* =========================================
   ESTRUTURA MOBILE
========================================= */
@media (max-width: 768px) {
    /* Menu lateral escondido à direita por padrão no mobile */
    .sidebar { 
        transform: translateX(100%);
        right: 0;
        width: 280px;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .content {
        margin-left: 0;
        width: 100%;
        padding: 80px 20px 90px 20px; /* Espaço para o header e a tab-bar não cobrirem o conteúdo */
    }

    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 60px;
        background: rgba(24, 24, 24, 0.9);
        backdrop-filter: blur(10px);
        position: fixed;
        top: 0;
        width: 100%;
        padding: 0 20px;
        z-index: 999;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .btn-menu { background: none; border: none; color: white; font-size: 24px; cursor: pointer; }
    .logo-mobile { font-weight: bold; color: var(--green-neon); font-size: 20px; }

    .tab-bar {
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 70px;
        background: rgba(24, 24, 24, 0.95);
        backdrop-filter: blur(15px);
        position: fixed;
        bottom: 0;
        width: 100%;
        z-index: 999;
        border-top: 1px solid rgba(255,255,255,0.05);
    }

    .tab-item {
        color: var(--text-muted);
        text-decoration: none;
        font-size: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    
    .tab-item .icon { font-size: 20px; }

    .tilt-btn {
        color: var(--red-alert);
        font-weight: bold;
    }
}