:root {
    --primary-color: #0f7a5c;
    --primary-dark: #0a5a43;
    --accent-color: #d4a94c;
    --sidebar-width: 250px;
}

body {
    background-color: #f4f7f6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== LOGIN PAGE ===== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}
.login-card {
    max-width: 400px;
    width: 100%;
    border: none;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,.2);
}
.login-card .card-header {
    background: var(--primary-color);
    color: #fff;
    border-radius: 16px 16px 0 0 !important;
    text-align: center;
    padding: 2rem 1.5rem 1.5rem;
}
.login-card .card-header .logo-circle {
    width: 64px;
    height: 64px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 28px;
    color: var(--primary-color);
    font-weight: bold;
}

/* ===== LAYOUT ===== */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--primary-dark);
    position: fixed;
    top: 0;
    left: 0;
    color: #fff;
    z-index: 1000;
}
.sidebar .brand {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar .brand h5 { color: #fff; margin: 0; font-weight: 700; }
.sidebar .brand small { color: rgba(255,255,255,.6); }
.sidebar .nav-link {
    color: rgba(255,255,255,.85);
    padding: .7rem 1.25rem;
    border-left: 3px solid transparent;
}
.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background: rgba(255,255,255,.08);
    color: #fff;
    border-left-color: var(--accent-color);
}
.sidebar .nav-link i { width: 22px; display: inline-block; }
.sidebar-section-title {
    color: rgba(255,255,255,.4);
    font-size: .7rem;
    text-transform: uppercase;
    padding: .8rem 1.25rem .3rem;
    letter-spacing: .05em;
}

.main-content {
    margin-left: var(--sidebar-width);
    padding: 1.5rem 1.75rem 3rem;
}

.topbar {
    background: #fff;
    padding: .8rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* ===== CARDS ===== */
.stat-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
    padding: 1.25rem;
    height: 100%;
}
.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}
.stat-card .stat-value { font-size: 1.6rem; font-weight: 700; margin: 0; }
.stat-card .stat-label { color: #7a8a86; font-size: .85rem; }

.card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.card-header {
    background: #fff;
    border-bottom: 1px solid #eef1f0;
    font-weight: 600;
    border-radius: 14px 14px 0 0 !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}
.text-primary-custom { color: var(--primary-color) !important; }
.bg-primary-custom { background-color: var(--primary-color) !important; }

.table thead th {
    background: #f4f7f6;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #5c6b67;
    border-bottom: 2px solid #e5e9e8;
}

@media (max-width: 991px) {
    .sidebar { left: -260px; transition: left .25s; }
    .sidebar.show { left: 0; }
    .main-content { margin-left: 0; }
}
