:root {
    --sidebar-width: 250px;
    --brand-color: #0d5c63;
    --brand-color-dark: #093b40;
    --accent-color: #3aafa9;
}

body {
    background-color: #f4f6f8;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: linear-gradient(180deg, var(--brand-color) 0%, var(--brand-color-dark) 100%);
    color: #fff;
    position: fixed;
    left: 0;
    top: 0;
}

.sidebar .brand {
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.sidebar .brand h1 {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 700;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.85);
    padding: 0.65rem 1.25rem;
    border-left: 3px solid transparent;
}

.sidebar .nav-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.sidebar .nav-link.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-left-color: var(--accent-color);
    font-weight: 600;
}

.sidebar .nav-link i {
    width: 20px;
    display: inline-block;
    text-align: center;
    margin-right: 0.5rem;
}

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

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-title {
    font-weight: 700;
    color: #1f2937;
}

.card-stat {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.card-stat .icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
}

.table-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 1.25rem;
}

.btn-brand {
    background-color: var(--brand-color);
    border-color: var(--brand-color);
    color: #fff;
}

.btn-brand:hover {
    background-color: var(--brand-color-dark);
    border-color: var(--brand-color-dark);
    color: #fff;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-color) 0%, var(--brand-color-dark) 100%);
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

@media print {
    .sidebar, .topbar, .no-print { display: none !important; }
    .main-content { margin-left: 0 !important; padding: 0 !important; }
}
