:root {
    --sidebar-width: 240px;
    --footer-height: 34px;
    --primary: #0ea5e9;
    --primary-dark: #0369a1;
    --primary-soft: #e0f2fe;
    --accent: #22d3ee;
    --navy: #071225;
    --bg: #f5f8fc;
    --card-bg: #ffffff;
    --border: #e2e6ea;
    --text: #1f272e;
    --text-muted: #6c7680;
    --sidebar-bg: #ffffff;
    --hover-bg: #f0f4f7;
    --accent-pink: #e91e8c;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
}

body.rtl { direction: rtl; }
body.rtl .sidebar { left: auto; right: 0; border-right: none; border-left: 1px solid var(--border); }
body.rtl .main-content { margin-left: 0; margin-right: var(--sidebar-width); }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* Layout */
.app-layout { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #061225 0%, #0b1c36 100%);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    height: calc(100vh - var(--footer-height));
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow: hidden;
}
body.rtl .sidebar { left: auto; right: 0; }

.sidebar-nav { flex: 1; min-height: 0; overflow-y: auto; }

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: calc(100vh - var(--footer-height));
    display: flex;
    flex-direction: column;
}
body.rtl .main-content { margin-left: 0; margin-right: var(--sidebar-width); }

/* Sidebar */
.sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo {
    width: 44px;
    height: 44px;
    background: #020617;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.sidebar-logo img { width: 40px; height: 40px; object-fit: cover; border-radius: 10px; }
.sidebar-title h2 { color: #ffffff; letter-spacing: .2px; }
.sidebar-title span { color: #c8d9ef; }
.sidebar-header { border-color: rgba(255,255,255,.12); padding: 18px; }
.sidebar-search { border-color: rgba(255,255,255,.12); }
.sidebar-search form, .record-search {
    display: flex; align-items: center; gap: 8px; border: 1px solid var(--border);
    border-radius: 10px; padding: 0 12px; background: #fff;
}
.sidebar-search form { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); }
.sidebar-search input { color: #ffffff; border: 0; background: transparent; outline: 0; padding: 10px 0; }
.sidebar-search input::placeholder { color: #b7c9e0; }
.sidebar-search form span { color: #dbeafe; }
.nav-section-title {
    padding: 14px 20px 8px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #e8f1ff !important;
    opacity: 1 !important;
}
.nav-item a {
    color: #f1f7ff !important;
    margin: 2px 10px;
    padding: 10px 12px !important;
    border-radius: 9px;
    font-weight: 500;
}
.nav-item a:hover, .nav-item.active a {
    color: #ffffff !important;
    background: linear-gradient(90deg, rgba(14,165,233,.45), rgba(34,211,238,.18)) !important;
}
.nav-item.active a {
    border-right: 0 !important;
    box-shadow: inset 3px 0 0 #7dd3fc;
    font-weight: 700;
}
body.rtl .nav-item.active a {
    border-left: 0 !important;
    box-shadow: inset -3px 0 0 #7dd3fc;
}
.sidebar-user { border-color: rgba(255,255,255,.12); color: #ffffff; }
.user-info .name { color: #ffffff; }
.user-info .email { color: #c8d9ef; }
.user-avatar { background: linear-gradient(135deg, var(--primary), var(--accent)); }
.nav-icon { opacity: 1; }

.top-bar { min-height: 66px; box-shadow: 0 1px 12px rgba(15,23,42,.04); }
.page-content { padding: 30px; max-width: 1600px; width: 100%; margin: 0 auto; }
.page-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:24px; }
.page-heading h1 { margin:4px 0 6px; font-size:26px; letter-spacing:-.5px; }
.page-heading p { margin:0; color:var(--text-muted); }
.eyebrow { color:var(--primary-dark); font-size:11px; font-weight:800; letter-spacing:1.2px; text-transform:uppercase; }
body.rtl .eyebrow,
body.rtl .data-table th,
body.rtl .detail-grid dt,
body.rtl .nav-section-title {
    text-transform: none;
    letter-spacing: 0;
}
.heading-actions, .workflow-actions, .confirm-actions { display:flex; align-items:center; gap:10px; }

.panel {
    background:#fff; border:1px solid #e5eaf1; border-radius:16px;
    box-shadow:0 8px 30px rgba(15,23,42,.045); overflow:hidden;
}
.panel-toolbar { min-height:68px; padding:14px 18px; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid #edf0f4; }
.filter-bar { flex-wrap:wrap; gap:10px; justify-content:flex-start; }
.record-search { flex:1 1 260px; min-width:220px; max-width:440px; }
.record-search input { width:100%; border:0; padding:9px 0; outline:0; font:inherit; background:transparent; }
.filter-select { border:1px solid var(--border); border-radius:10px; padding:9px 12px; font:inherit; background:#fff; color:var(--text); cursor:pointer; max-width:200px; }
.btn-ghost { background:transparent; border:1px solid var(--border); color:var(--text-muted); }
.btn-ghost:hover { background:#f4f7fa; }
.record-count { color:var(--text-muted); font-size:12px; background:#f4f7fa; padding:7px 10px; border-radius:999px; margin-inline-start:auto; }
.table-wrap { width:100%; overflow:auto; }
.data-table { width:100%; border-collapse:collapse; }
.data-table th { padding:13px 16px; text-align:start; font-size:11px; color:#64748b; text-transform:uppercase; letter-spacing:.5px; background:#f8fafc; white-space:nowrap; }
.data-table td { padding:15px 16px; border-top:1px solid #edf1f5; white-space:nowrap; vertical-align:middle; }
.data-table tbody tr { transition:.15s ease; }
.data-table tbody tr:hover { background:#f8fbff; }
.record-link { color:#0f172a; font-weight:650; }
.record-link:hover { color:var(--primary-dark); }
.row-actions { display:flex; gap:8px; justify-content:flex-end; }
.row-actions a { width:30px; height:30px; display:grid; place-items:center; border-radius:8px; background:#f1f5f9; color:#475569; }
.row-actions a:hover { background:var(--primary-soft); color:var(--primary-dark); }
.actions-column { text-align:end !important; }

.status-badge { display:inline-flex; padding:5px 9px; border-radius:999px; font-size:11px; font-weight:700; }
.status-badge.success { background:#dcfce7; color:#15803d; }
.status-badge.danger { background:#fee2e2; color:#b91c1c; }
.status-badge.warning { background:#fef3c7; color:#a16207; }
.status-badge.neutral { background:#e2e8f0; color:#475569; }

.premium-empty { padding:75px 20px; text-align:center; }
.premium-empty .empty-icon { margin:0 auto 16px; width:62px; height:62px; display:grid; place-items:center; border-radius:18px; background:var(--primary-soft); color:var(--primary); font-size:32px; }
.premium-empty h3 { margin:0 0 7px; font-size:18px; }
.premium-empty p { margin:0 0 20px; color:var(--text-muted); }

.btn-auto { width:auto !important; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:40px; padding:9px 16px; }
.btn-primary { background:linear-gradient(135deg, var(--primary), #0284c7); box-shadow:0 6px 16px rgba(14,165,233,.2); }
.btn-secondary { color:#334155; background:#fff; border:1px solid #dce3eb; }
.btn-success { color:white; background:#16a34a; }
.btn-danger { color:white; background:#dc2626; }

.form-panel, .detail-panel { padding:0 24px 24px; }
.form-section-title { display:flex; align-items:center; gap:12px; padding:22px 0 18px; border-bottom:1px solid #edf1f5; margin-bottom:20px; }
.section-icon { width:38px; height:38px; display:grid; place-items:center; border-radius:11px; color:var(--primary-dark); background:var(--primary-soft); }
.form-section-title h3 { margin:0; font-size:16px; }
.form-section-title p { margin:4px 0 0; color:var(--text-muted); font-size:12px; }
.permissions-heading { flex-wrap: wrap; }
.permission-bulk-actions { display:flex; gap:8px; margin-inline-start:auto; }
.permissions-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
    gap:12px;
}
.permission-card {
    border:1px solid #e2e8f0;
    border-radius:12px;
    background:#f8fafc;
    overflow:hidden;
}
.permission-card-title {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:12px 14px;
    background:#fff;
    border-bottom:1px solid #e2e8f0;
}
.permission-card-title label,
.permission-options label {
    display:flex;
    align-items:center;
    gap:7px;
    cursor:pointer;
}
.permission-card-title label { color:var(--primary); font-size:12px; }
.permission-options {
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:8px;
    padding:12px 14px;
}
.permission-options label {
    padding:7px 9px;
    border-radius:8px;
    background:#fff;
    color:var(--text);
    font-size:12px;
}
.permission-options label:hover { background:#eaf6ff; }
.permission-options input,
.permission-card-title input { accent-color:var(--primary); }
.form-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:20px 24px; }
.field-wrap { min-width:0; }
.field-wide { grid-column:1/-1; }
.field-wrap label { display:block; font-size:12px; font-weight:700; color:#334155; margin-bottom:7px; }
.required { color:#e11d48; margin-inline-start:3px; }
.field-wrap input:not([type=checkbox]), .field-wrap select, .field-wrap textarea {
    width:100%; min-height:44px; border:1px solid #dce3eb; border-radius:10px; padding:10px 12px;
    background:#fbfdff; color:#0f172a; font:inherit; outline:0; transition:.15s;
}
.field-wrap textarea { min-height:110px; resize:vertical; }
.field-wrap input:focus, .field-wrap select:focus, .field-wrap textarea:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(14,165,233,.12); background:#fff; }
.checkbox-field { display:flex; align-items:center; gap:9px; padding-top:23px; }
.checkbox-field label { order:2; margin:0; }
.field-wrap small { display:block; color:#64748b; margin-top:5px; }
.field-error { color:#be123c; margin-top:5px; font-size:12px; }
.sticky-actions { position:sticky; bottom:0; display:flex; justify-content:flex-end; gap:10px; padding:16px 0; background:linear-gradient(transparent, var(--bg) 25%); z-index:5; }

.workflow-bar { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; margin-bottom:18px; }
.workflow-label { color:#64748b; margin-inline-end:10px; }
.workflow-actions form { margin:0; }
.detail-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; margin:0; }
.detail-grid > div { padding:16px; border-bottom:1px solid #edf1f5; }
.detail-grid dt { color:#64748b; font-size:12px; font-weight:700; text-transform:none; margin-bottom:7px; }
.detail-grid dd { margin:0; font-weight:550; word-break:break-word; color:#0f172a; }
.danger-zone { margin-top:20px; text-align:end; }
.danger-zone a { color:#dc2626; font-size:12px; }
.confirm-card { max-width:520px; margin:8vh auto; text-align:center; padding:38px; }
.confirm-icon { width:58px; height:58px; display:grid; place-items:center; margin:0 auto 16px; border-radius:50%; background:#fee2e2; color:#dc2626; font-size:28px; font-weight:800; }
.confirm-card h1 { margin:0 0 10px; }
.confirm-card p { color:#64748b; line-height:1.6; }
.confirm-actions { justify-content:center; margin-top:24px; }
.report-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.report-card { padding:20px; }
.report-card h3 { margin:0 0 15px; font-size:15px; }
.report-row { display:flex; justify-content:space-between; align-items:center; padding:12px 3px; border-top:1px solid #edf1f5; }
.report-row strong { min-width:34px; text-align:center; padding:5px 9px; border-radius:999px; color:#0369a1; background:#e0f2fe; }
.brand-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 130;
    height: var(--footer-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #071225;
    color: #dbeafe;
    font-size: 12px;
    border-top: 1px solid rgba(125,211,252,.25);
}
.brand-footer strong { color: #7dd3fc; margin-inline-start: 4px; }
.app-layout { padding-bottom: var(--footer-height); }
.mobile-menu { display:none; border:0; background:#eff6ff; color:#0369a1; border-radius:8px; padding:8px 10px; }

.stat-card, .card, .master-card { border-radius:14px; box-shadow:0 7px 24px rgba(15,23,42,.035); }
.stat-card { border-top:3px solid var(--primary); }
.stat-card .value { color:#0f172a; }
.master-card-title { background:linear-gradient(90deg,#f8fbff,#fff); }

@media (max-width: 900px) {
    .mobile-menu { display:block; }
    .top-bar { justify-content:flex-start; gap:12px; }
    body.menu-open .sidebar { transform:translateX(0); box-shadow:10px 0 40px rgba(0,0,0,.25); }
    body.rtl.menu-open .sidebar { transform:translateX(0); }
    body.rtl .sidebar { transform:translateX(100%); }
    .form-grid, .detail-grid { grid-template-columns:1fr; }
    .report-grid { grid-template-columns:1fr; }
    .page-heading, .workflow-bar { flex-direction:column; align-items:stretch; }
    .page-content { padding:20px 14px; }
}

.sidebar-title h2 { margin: 0; font-size: 15px; font-weight: 600; }
.sidebar-title span { font-size: 12px; color: var(--text-muted); }

.sidebar-search {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    position:relative;
}

.sidebar-search-box {
    display:flex;
    align-items:center;
    gap:8px;
    padding:0 10px;
    border:1px solid rgba(255,255,255,.18);
    border-radius:10px;
    background:rgba(255,255,255,.11);
    transition:border-color .2s, background .2s, box-shadow .2s;
}
.sidebar-search-box:focus-within {
    border-color:#38bdf8;
    background:rgba(255,255,255,.16);
    box-shadow:0 0 0 3px rgba(56,189,248,.12);
}
.sidebar-search .sidebar-search-box input {
    width: 100%;
    min-width:0;
    padding:10px 0;
    border:0;
    outline:0;
    font-size: 13px;
    color:#fff;
    background:transparent;
}
.sidebar-search-box > span { color:#dbeafe; }
.sidebar-search-clear {
    display:none;
    border:0;
    background:transparent;
    color:#cbd5e1;
    cursor:pointer;
    font-size:18px;
    line-height:1;
}
.sidebar-search-box:focus-within .sidebar-search-clear { display:block; }
.sidebar-search-results {
    position:absolute;
    z-index:160;
    top:calc(100% - 8px);
    left:16px;
    right:16px;
    max-height:300px;
    overflow:auto;
    padding:6px;
    border:1px solid #dbe4ef;
    border-radius:12px;
    background:#fff;
    box-shadow:0 18px 45px rgba(2,8,23,.28);
}
.sidebar-search-results[hidden] { display:none; }
.sidebar-search-results a,
.sidebar-search-empty {
    display:block;
    padding:10px 11px;
    border-radius:8px;
    color:#26364b !important;
    font-size:12px;
    text-decoration:none;
}
.sidebar-search-results a:hover,
.sidebar-search-results a.is-selected {
    background:#e8f6ff;
    color:#0369a1 !important;
}
.sidebar-search-empty { color:#64748b; text-align:center; }

.sidebar-nav { flex: 1; padding: 8px 0; overflow-y: auto; }

.nav-section-title {
    padding: 14px 20px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #e8f1ff;
    letter-spacing: 0.8px;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin: 2px 10px;
    border-radius: 9px;
    color: #f1f7ff;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s;
}

.nav-item a:hover, .nav-item.active a {
    background: linear-gradient(90deg, rgba(14,165,233,.45), rgba(34,211,238,.18));
    color: #ffffff;
}

.nav-item.active a {
    font-weight: 700;
    border-right: 0;
    box-shadow: inset 3px 0 0 #7dd3fc;
}
body.rtl .nav-item.active a {
    border-right: none;
    border-left: 0;
    box-shadow: inset -3px 0 0 #7dd3fc;
}

.nav-icon { width: 18px; text-align: center; opacity: 1; }

.nav-accordion { margin: 2px 10px; }
.nav-accordion summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 9px;
    color: #f1f7ff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: background .15s ease, color .15s ease;
}
.nav-accordion summary::-webkit-details-marker { display: none; }
.nav-accordion summary > span:first-child { display: flex; align-items: center; gap: 10px; }
.nav-accordion summary:hover,
.nav-accordion[open] > summary {
    color: #fff;
    background: linear-gradient(90deg, rgba(14,165,233,.40), rgba(34,211,238,.14));
}
.nav-accordion .chevron { color: #bae6fd; font-size: 15px; transition: transform .2s ease; }
.nav-accordion[open] .chevron { transform: rotate(180deg); }
.nav-children {
    margin: 5px 0 8px;
    padding-inline-start: 20px;
    border-inline-start: 1px solid rgba(125,211,252,.35);
}
.nav-children a {
    display: block;
    margin: 2px 0;
    padding: 8px 12px;
    border-radius: 7px;
    color: #dbeafe !important;
    font-size: 12px;
    line-height: 1.25;
}
.nav-children a:hover {
    color: #fff !important;
    background: rgba(14,165,233,.24);
}

.sidebar-user {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.user-info .name { font-size: 13px; font-weight: 500; }
.user-info .email { font-size: 11px; color: var(--text-muted); }

/* Top bar */
.top-bar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb .current { color: var(--text); font-weight: 500; }

.top-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
    display: flex;
    gap: 4px;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.lang-switch button {
    padding: 6px 12px;
    border: none;
    background: white;
    cursor: pointer;
    font-size: 12px;
}

.lang-switch button.active { background: var(--primary); color: white; }

/* Content */
.page-content { padding: 24px; flex: 1; }

.page-title { font-size: 20px; font-weight: 600; margin: 0 0 20px; }

/* Cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}

.stat-card .label { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.stat-card .value { font-size: 28px; font-weight: 600; }
.stat-card .action { margin-top: 12px; font-size: 13px; }

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 20px;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 { margin: 0; font-size: 15px; font-weight: 600; }

.card-body { padding: 20px; }

/* Masters & Reports grid */
.masters-section h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
}

.masters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.master-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.master-card-title {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    background: #fafbfc;
}

.master-links { padding: 8px 0; }

.master-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    color: var(--text);
    transition: background 0.15s;
}

.master-link:hover { background: var(--hover-bg); }

.master-link .arrow { color: var(--text-muted); font-size: 12px; }

/* Chart placeholder */
.chart-container { height: 250px; position: relative; }

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* Login */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(14,165,233,.2), transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(34,211,238,.12), transparent 35%),
        linear-gradient(135deg, #020617 0%, #081b38 100%);
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.login-logo { display:block; width:90px; height:90px; object-fit:cover; border-radius:20px; margin:0 auto 18px; box-shadow:0 12px 30px rgba(14,165,233,.25); }

.login-card h1 { text-align: center; margin: 0 0 8px; color: var(--primary); }
.login-card .subtitle { text-align: center; color: var(--text-muted); margin-bottom: 32px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 13px; }
.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-primary { background: var(--primary); color: white; width: 100%; }
.btn-primary:hover { background: var(--primary-dark); }

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 13px;
}

.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

.list-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}

.list-item:last-child { border-bottom: none; }

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .main-content { margin-left: 0; }
    body.rtl .main-content { margin-right: 0; }
}
