@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --sidebar-width: 280px;
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0ea5e9;
    --bg-main: #f8fafc;
    --sidebar-bg: #0f172a;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    background-color: var(--bg-main);
    color: #1e293b;
    display: flex;
    min-height: 100vh;
}

/* Sidebar Estilo ADPN */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: white;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
}

.sidebar-header {
    padding: 30px 25px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar-menu {
    padding: 20px 15px;
}

.menu-section {
    padding: 25px 15px 10px;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #475569;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.menu-item {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
}

.menu-item:hover {
    background: rgba(255,255,255,0.05);
    color: white;
    transform: translateX(5px);
}

.menu-item.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
}

/* Main Content */
.main-wrapper {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-nav {
    height: 80px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 50px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.content-area {
    padding: 40px 50px;
}

/* Dashboard Cards Estilo ADPN */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    padding: 30px;
    border-radius: 20px;
    color: white;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.stat-card.blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.stat-card.green { background: linear-gradient(135deg, #10b981, #047857); }
.stat-card.cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.stat-card.orange { background: linear-gradient(135deg, #f59e0b, #d97706); }

.stat-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; opacity: 0.9; }
.stat-value { font-size: 2.2rem; font-weight: 800; margin-top: 10px; }

/* Cards Gerais */
.card {
    background: white;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    padding: 35px;
    border: 1px solid rgba(226, 232, 240, 0.5);
    margin-bottom: 30px;
}

/* Tabelas Modernas */
table { width: 100%; border-collapse: separate; border-spacing: 0 10px; }
th { padding: 15px 20px; text-align: left; color: #64748b; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; }
td { padding: 20px; background: #f8fafc; border: none; }
td:first-child { border-radius: 15px 0 0 15px; }
td:last-child { border-radius: 0 15px 15px 0; }
tr:hover td { background: #f1f5f9; }

/* Botões */
.btn {
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Footer */
.footer {
    margin-top: auto;
    padding: 40px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    color: #94a3b8;
    font-weight: 500;
}
