:root {
    --primary: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.3);
    --bg-dark: #09090b;
    --card-bg: #111113;
    --card-border: #27272a;
    --text-main: #f4f4f5;
    --text-dim: #a1a1aa;
    --glass: rgba(24, 24, 27, 0.8);
}

/* Reset e Tipografia Profissional */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', 'Poppins', sans-serif; }

/* Scrollbar Customizada Premium */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

body { 
    background-color: var(--bg-dark); 
    color: var(--text-main); 
    display: flex; 
    min-height: 100vh; 
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Sidebar Estilo SaaS de Luxo */
.sidebar { 
    width: 280px; 
    background: var(--card-bg); 
    border-right: 1px solid var(--card-border); 
    padding: 40px 24px; 
    display: flex; 
    flex-direction: column; 
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
}

.logo { 
    font-size: 1.4rem; 
    font-weight: 700; 
    display: flex; 
    align-items: center; 
    gap: 12px;
    letter-spacing: -0.5px;
    margin-bottom: 48px;
}
.logo i { color: var(--primary); width: 28px; }
.logo span { color: var(--primary); }

/* Itens de Menu Premium */
.nav-menu { display: flex; flex-direction: column; gap: 8px; }
/* BUG FIX: Garante que o menu escondido pelo JS não ocupe espaço visual */
.nav-menu[style*="display: none"] { pointer-events: none; }

.nav-item { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    color: var(--text-dim); 
    text-decoration: none; 
    padding: 14px 16px; 
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.nav-item i { width: 20px; transition: 0.2s; }
.nav-item:hover, .nav-item.active { 
    background: rgba(139, 92, 246, 0.1); 
    color: var(--text-main); 
}
.nav-item.active i { color: var(--primary); }

/* Badge de Status com Animação */
.sidebar-footer { margin-top: auto; }
.user-status-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    padding: 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.status-dot { 
    width: 8px; height: 8px; 
    background: #4ade80; 
    border-radius: 50%; 
    box-shadow: 0 0 10px #4ade80;
    animation: pulse 2s infinite;
}
.user-status { font-size: 0.75rem; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* Layout do Conteúdo Principal */
.main-wrapper { flex: 1; padding: 48px; max-width: 1400px; margin: 0 auto; width: 100%; }
.top-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 48px; }
.header-text h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 8px; background: linear-gradient(to right, #fff, #a1a1aa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.header-text p { color: var(--text-dim); font-size: 1.1rem; }
.date-display { padding: 8px 16px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 20px; font-size: 0.85rem; color: var(--text-dim); }

/* Grid de Cards Premium */
.grid-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }

/* BUG FIX: Estilo para inputs da tela de login injetada */
input[type="text"], input[type="password"] {
    outline: none;
    transition: border-color 0.3s;
}
input:focus { border-color: var(--primary) !important; }

.platform-card {
    background: linear-gradient(145deg, #18181b, #111113);
    border: 1px solid var(--card-border);
    padding: 32px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}
.platform-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, var(--primary-glow), transparent 70%);
    opacity: 0; transition: 0.4s;
}
.platform-card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: 0 20px 40px rgba(0,0,0,0.6); }
.platform-card:hover::before { opacity: 1; }

.platform-card h3 { font-size: 1.25rem; margin-bottom: 12px; position: relative; z-index: 1; }
.platform-card p { font-size: 0.95rem; color: var(--text-dim); margin-bottom: 28px; line-height: 1.6; position: relative; z-index: 1; }

/* Botões com Efeito Glow */
.btn-access { 
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px; background: var(--primary); color: white; 
    text-decoration: none; border-radius: 12px; font-size: 0.9rem; font-weight: 600;
    transition: all 0.3s; border: none; cursor: pointer; position: relative; z-index: 1;
    gap: 8px;
}
.btn-access:hover { box-shadow: 0 0 20px var(--primary-glow); transform: scale(1.02); }

/* Modal Premium (Glassmorphism) */
.modal {
    display: none; position: fixed; z-index: 9999;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(12px);
}
.modal-content {
    background: var(--card-bg); margin: 10% auto; padding: 40px;
    border: 1px solid var(--card-border); border-radius: 24px;
    width: 90%; max-width: 420px; text-align: center;
    animation: modalIn 0.3s ease-out;
}
@keyframes modalIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Footer */
.main-footer { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--card-border); text-align: center; color: var(--text-dim); font-size: 0.85rem; }

/* Responsividade Full Premium */
@media (max-width: 768px) {
    body { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: relative; padding: 24px; border-right: none; border-bottom: 1px solid var(--card-border); }
    .main-wrapper { padding: 24px; }
    .top-header { flex-direction: column; gap: 20px; text-align: center; align-items: center; }
    .header-text h1 { font-size: 1.8rem; }
    .logo { margin-bottom: 24px; justify-content: center; }
    .nav-menu { flex-direction: row; overflow-x: auto; padding-bottom: 10px; justify-content: center; }
    .nav-item { white-space: nowrap; padding: 10px 16px; }
    .sidebar-footer { display: none; } /* Esconde o status na sidebar mobile para não poluir */
}
