:root {
    --bg-dark: #0f0f12;
    --card-bg: #1a1a24;
    --primary-blue: #3498db;
    --metal-blue: #2c3e50;
    --metal-gray: #7f8c8d;
    --accent-color: #6c5ce7;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --success: #2ecc71;
    --warning: #f1c40f;
    --danger: #e74c3c;
    --sidebar-width: 260px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    display: flex;
    min-height: 100vh;
}

/* Sidebar Estilo Virtual */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--card-bg);
    height: 100vh;
    position: fixed;
    border-right: 1px solid rgba(255,255,255,0.05);
    z-index: 100;
}

.sidebar-header {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar-header h2 {
    font-size: 1.2rem;
    background: linear-gradient(to right, var(--primary-blue), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: var(--text-gray);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
    gap: 12px;
}

.sidebar-menu li a:hover, .sidebar-menu li a.active {
    color: var(--text-white);
    background: rgba(255,255,255,0.03);
    border-left: 4px solid var(--primary-blue);
}

.sidebar-menu li a i {
    font-size: 1.1rem;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 30px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.header-top h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Cards de Estatísticas Estilo Imagem */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-blue);
}

.stat-card h3 {
    color: var(--text-gray);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.stat-card .value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-card .desc {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.stat-card i {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    opacity: 0.2;
}

/* Gráficos e Tabelas */
.dashboard-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 25px;
}

.content-box {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.content-box h2 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Tabelas Customizadas */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    color: var(--text-gray);
    font-size: 0.85rem;
    padding: 15px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

td {
    padding: 15px 10px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-ativo { background: rgba(46, 204, 113, 0.15); color: #2ecc71; }
.status-inativo { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }

/* Botões Modernos */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary { background: var(--primary-blue); color: white; }
.btn-primary:hover { filter: brightness(1.2); }

.btn-outline { 
    background: transparent; 
    border: 1px solid rgba(255,255,255,0.1); 
    color: var(--text-white); 
}

/* Forms Dark */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-gray); font-size: 0.9rem; }
input, select, textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 15px;
    border-radius: 8px;
    color: white;
    outline: none;
}
input:focus { border-color: var(--primary-blue); }

@media (max-width: 1024px) {
    .dashboard-row { grid-template-columns: 1fr; }
    .sidebar { width: 70px; }
    .sidebar .menu-text, .sidebar-header h2 { display: none; }
    .main-content { margin-left: 70px; }
}
