/* =========================================
   CONFIGURAÇÕES GERAIS E VARIÁVEIS
   ========================================= */
:root {
    --primary: #1a1a2e;
    --accent: #007bff;
    --bg: #f4f7f6;
    --dark-bg: #000000;
    --glass-border: #333333;
    --grad-btn: linear-gradient(90deg, #7873f5 0%, #ff6ec4 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    background: var(--bg);
    margin: 0;
}

/* =========================================
   ESTILO: TELA DE LOGIN (DARK MODE)
   ========================================= */
.login-wrapper {
    display: flex;
    height: 100vh;
    background-color: var(--dark-bg);
}

.login-side {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background-color: var(--dark-bg);
    color: #ffffff;
}

.login-content {
    width: 100%;
    max-width: 350px;
}

.login-logo {
    width: 150px;
    margin-bottom: 40px;
    display: block;
}

.login-content h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.login-content h1 span {
    color: #ff6ec4;
}

.input-box {
    margin-bottom: 20px;
}

.input-box label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: #cccccc;
}

.input-box input {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1.5px solid var(--glass-border);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: 0.3s;
}

.input-box input:focus {
    border-color: #a18cd1;
    outline: none;
    box-shadow: 0 0 10px rgba(161, 139, 209, 0.2);
}

.btn-entrar {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: var(--grad-btn);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.3s;
}

.btn-entrar:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.image-side {
    width: 60%;
    background: url('../img/login-bg.png') no-repeat center center;
    background-size: cover;
    position: relative;
}

.image-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #000 0%, transparent 100%);
}

/* =========================================
   ESTILO: DASHBOARD (PAINEL INTERNO)
   ========================================= */
.sidebar {
    width: 250px;
    height: 100vh;
    background: var(--primary);
    color: white;
    position: fixed;
    left: 0;
    top: 0;
}

.sidebar-header {
    padding: 30px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ffffff10;
}

.menu {
    padding-top: 20px;
}

.menu a {
    display: block;
    padding: 15px 25px;
    color: #adb5bd;
    text-decoration: none;
    transition: 0.3s;
}

.menu a:hover, 
.menu a.active {
    background: #ffffff05;
    color: white;
    border-left: 4px solid var(--accent);
}

.menu i {
    margin-right: 10px;
    width: 20px;
}

.main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
    min-height: 100vh;
}

.top-header {
    background: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.content-wrapper {
    padding: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stat-card i {
    font-size: 2.5rem;
    margin-right: 20px;
    opacity: 0.2;
}

.stat-card h3 {
    font-size: 1.8rem;
    margin: 0;
}

.stat-card.blue { border-top: 5px solid #007bff; }
.stat-card.green { border-top: 5px solid #28a745; }
.stat-card.orange { border-top: 5px solid #fd7e14; }

/* =========================================
   RESPONSIVIDADE
   ========================================= */
@media (max-width: 900px) {
    .image-side { 
        display: none; 
    }
    .login-side { 
        width: 100%; 
    }
    .sidebar {
        width: 70px;
    }
    .sidebar span, .sidebar-header span {
        display: none;
    }
    .main-content {
        margin-left: 70px;
        width: calc(100% - 70px);
    }
}