/* Arquivo: assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

:root {
    --primary-color: #0d6efd;
    --bg-color: #f4f6f9;
    --card-bg: #ffffff;
    --text-main: #2c3e50;
    --text-muted: #6c757d;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
}

/* Body específico para página de login */
body.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card de Login Moderno */
.login-card {
    background: var(--card-bg);
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
}

.login-header h3 {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

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

/* Inputs Estilizados */
.form-control {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

/* Botão Moderno */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    width: 100%;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.brand-logo {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

/* --- LAYOUT DO DASHBOARD --- */

/* Layout do Dashboard */
#wrapper {
    overflow-x: hidden;
    display: flex;
    width: 100%;
    min-height: 100vh; /* Garante altura total */
}

/* Sidebar (Menu Lateral) */
#sidebar-wrapper {
    min-height: 100vh;
    width: 250px; /* Largura fixa */
    margin-left: -250px; /* Escondido por padrão no mobile */
    transition: margin 0.25s ease-out;
    background-color: #fff; /* Branco clean */
    border-right: 1px solid #e9ecef;
}

#sidebar-wrapper .sidebar-heading {
    padding: 1.5rem 1.25rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    border-bottom: 1px solid #e9ecef;
}

#sidebar-wrapper .list-group {
    width: 250px;
}

#sidebar-wrapper .list-group-item {
    border: none;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: all 0.2s;
}

#sidebar-wrapper .list-group-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    padding-left: 1.5rem; /* Efeito de movimento */
}

#sidebar-wrapper .list-group-item.active {
    background-color: #e7f1ff; /* Azul bem clarinho */
    color: var(--primary-color);
    font-weight: 600;
    border-right: 4px solid var(--primary-color);
}

/* Conteúdo Principal */
#page-content-wrapper {
    width: 100%;
    background-color: var(--bg-color); /* Fundo cinza claro */
}

/* Navbar do Topo */
.navbar-light {
    background-color: #fff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    padding: 1rem;
}

/* Estado "Toggled" (Menu Aberto/Fechado) */
body.sb-sidenav-toggled #sidebar-wrapper {
    margin-left: 0;
}

@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0; /* Visível no desktop */
    }

    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }

    body.sb-sidenav-toggled #sidebar-wrapper {
        margin-left: -250px; /* Esconde no desktop se toggled */
    }
}

/* Cards de Estatísticas */
.stat-card {
    border: none;
    border-radius: 12px;
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.bg-icon-primary { background: #e7f1ff; color: #0d6efd; }
.bg-icon-success { background: #d1e7dd; color: #198754; }
.bg-icon-warning { background: #fff3cd; color: #ffc107; }
