:root {
    --primary: #0b1f3a;
    --secondary: #1d4ed8;
    --accent-gold: #f59e0b;
    --bg-light: #f1f5f9;
    --text-dark: #0f172a;
    --sidebar-width: 240px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--primary);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    transition: left 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.2s;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background: var(--secondary);
    color: #fff;
}

/* Conteúdo Principal */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 30px;
}

/* Header Admin */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Botão Toggle Mobile */
.btn-toggle-mobile {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    margin-right: 15px;
}

/* Cards Dashboard */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card-stat {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-left: 4px solid var(--accent-gold);
}

.card-stat h3 {
    font-size: 0.9rem;
    color: #64748b;
}

.card-stat .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 5px;
}

/* Tabelas Padronizadas */
.table-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background: #f8fafc;
    color: var(--primary);
}

/* Status Badges */
.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}
.badge-pendente { background: #fef3c7; color: #d97706; }
.badge-aprovado { background: #dcfce7; color: #15803d; }
.badge-cancelado { background: #fee2e2; color: #b91c1c; }

/* Botões */
.btn {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-danger { background: #dc2626; color: #fff; }

/* Responsividade Mobile e Tablet */
@media (max-width: 768px) {
    .btn-toggle-mobile {
        display: block;
    }

    .sidebar {
        left: -250px;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
    }
}