:root {
    --sidebar-width: 260px;
    --brand-green: #1a5f4a;
    --brand-gold: #c9a227;
}

body {
    background: #f4f7f6;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0f3d30 0%, var(--brand-green) 100%);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1040;
    transition: transform .25s ease;
}

.sidebar-brand {
    padding: 1.25rem 1rem;
    font-weight: 700;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.sidebar-nav {
    list-style: none;
    padding: .75rem 0;
    margin: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem 1.25rem;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    transition: background .15s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: auto;
}

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-width: 0;
}

.topbar {
    background: #fff;
    border-bottom: 1px solid #e5ece8;
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.card {
    border-radius: 12px;
}

.table-responsive {
    border-radius: 12px;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f3d30 0%, #1a5f4a 50%, #2d8f6f 100%);
    padding: 1rem;
}

.login-card {
    max-width: 420px;
    width: 100%;
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.login-brand {
    text-align: center;
    color: var(--brand-green);
}

.login-brand i {
    font-size: 2.5rem;
}

.btn-primary {
    background: var(--brand-green);
    border-color: var(--brand-green);
}

.btn-primary:hover {
    background: #0f3d30;
    border-color: #0f3d30;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 .2rem rgba(26, 95, 74, .15);
}

.page-header h1 {
    color: #1a2e28;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
}

.arabic-text {
    direction: rtl;
    text-align: right;
    font-family: 'Traditional Arabic', 'Segoe UI', serif;
}

.badge {
    font-weight: 500;
}

.table th {
    white-space: nowrap;
    font-size: .875rem;
    color: #5a6b65;
}

.table td {
    vertical-align: middle;
}

.filter-bar {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
