/* ===================== باشقۇرۇش بېتى — زامانىۋىي دىزايىن ===================== */
:root {
    --primary: #3B82F6;
    --primary-light: #60A5FA;
    --primary-dark: #2563EB;
    --primary-soft: #DBEAFE;
    --secondary: #10B981;
    --secondary-soft: #D1FAE5;
    --accent: #F59E0B;
    --danger: #EF4444;
    --danger-soft: #FEE2E2;

    --bg: #F1F5F9;
    --surface: #FFFFFF;
    --sidebar-bg: #0F172A;
    --sidebar-text: #94A3B8;
    --sidebar-active: #3B82F6;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --text: #1E293B;
    --text-secondary: #64748B;
    --muted: #94A3B8;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
    --shadow: 0 4px 6px -1px rgba(15, 23, 42, .06), 0 2px 4px -1px rgba(15, 23, 42, .04);
    --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, .08), 0 4px 6px -2px rgba(15, 23, 42, .04);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, .08), 0 10px 10px -5px rgba(15, 23, 42, .04);
    --transition: .2s cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { direction: rtl; scroll-behavior: smooth; }

body {
    font-family: "Inter", -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ---------- ئومۇمىي قۇرۇلما ---------- */
.admin-app {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
}

/* ===== Sidebar — يورۇق كۆك ===== */
.sidebar {
    width: 220px;
    background: #F7FAFF;
    color: #4B5B76;
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 200;
    border-left: 1px solid #E6EEFB;
    transition: transform var(--transition), width var(--transition);
}
.sidebar-brand {
    margin: 10px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, #2E8BFF 0%, #1D6FE8 100%);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .28);
}
.brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,.18);
}
.brand-text { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.brand-title { font-size: 17px; font-weight: 800; color: #fff; }
.brand-sub { font-size: 11px; color: rgba(255,255,255,.82); font-weight: 500; }

.sidebar-nav {
    flex: 1;
    padding: 8px 10px;
    overflow-y: auto;
}
.nav-group { margin-bottom: 2px; }
.nav-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: var(--radius);
    border: none;
    background: transparent;
    color: #4B5B76;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}
.nav-group-toggle:hover { background: #EAF2FF; color: #1D6FE8; }
.nav-group-toggle .nav-chevron {
    margin-right: auto;
    font-size: 16px;
    transition: transform var(--transition);
    opacity: .55;
}
.nav-group.open .nav-chevron { transform: rotate(-90deg); }
.nav-group-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
    padding: 0 4px;
}
.nav-group.open .nav-group-items { max-height: 300px; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    text-decoration: none;
    color: #4B5B76;
    font-weight: 600;
    font-size: 13.5px;
    transition: all var(--transition);
    position: relative;
    margin-bottom: 2px;
}
.nav-item:hover { background: #EAF2FF; color: #1D6FE8; }
.nav-item.active { background: #E3EFFF; color: #1D6FE8; }
.nav-item.active::before {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    border-radius: 4px;
    background: #1D6FE8;
}
.nav-item.sub { font-size: 13px; font-weight: 500; padding-right: 20px; }
.nav-icon { font-size: 16px; width: 22px; text-align: center; }
.nav-label { flex: 1; text-align: right; }
.nav-badge {
    background: #1D6FE8;
    color: #fff;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    padding: 0 6px;
}

/* Sidebar promo card */
.sidebar-promo {
    margin: 10px;
    padding: 16px 14px;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, #3B8DFF 0%, #7EC2FF 60%, #EAF4FF 100%);
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.sidebar-promo .promo-title { font-size: 13px; font-weight: 800; line-height: 1.5; }
.sidebar-promo .promo-sub { font-size: 10.5px; opacity: .9; margin-top: 4px; }
.sidebar-promo .promo-art { font-size: 26px; margin-top: 8px; }

/* Sidebar collapsed */
.sidebar.collapsed { width: 70px; }
.sidebar.collapsed + .main { margin-right: 70px; }
.sidebar.collapsed .brand-text,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-chevron,
.sidebar.collapsed .nav-badge,
.sidebar.collapsed .sidebar-promo { display: none; }
.sidebar.collapsed .sidebar-brand { padding: 12px 8px; }
.sidebar.collapsed .nav-item,
.sidebar.collapsed .nav-group-toggle { justify-content: center; }
.sidebar.collapsed .nav-group-items { display: none; }

/* ===== Main ===== */
.main {
    flex: 1;
    margin-right: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 150;
    opacity: 0;
    transition: opacity var(--transition);
}
.sidebar.open ~ .sidebar-overlay {
    display: block;
    opacity: 1;
}
.content {
    flex: 1;
    padding: 24px 28px 32px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.admin-footer {
    padding: 16px 28px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
}

/* ---------- Topbar — زامانىۋىي ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 28px;
    box-shadow: var(--shadow-sm);
}
.topbar-left { display: flex; align-items: center; gap: 18px; }
.menu-toggle {
    display: inline-flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    color: var(--text);
    box-shadow: var(--shadow-xs);
}
.page-info { display: flex; flex-direction: column; gap: 2px; }
.page-title { font-size: 20px; font-weight: 800; color: var(--text); }
.page-breadcrumb { font-size: 12px; color: var(--muted); font-weight: 500; }

.topbar-right { display: flex; align-items: center; gap: 14px; }
.search-bar {
    position: relative;
    display: flex;
    align-items: center;
}
.search-bar input {
    width: 260px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 9px 16px 9px 40px;
    font-family: inherit;
    font-size: 13px;
    background: var(--bg);
    transition: all var(--transition);
    color: var(--text);
}
.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}
.search-bar .search-icon {
    position: absolute;
    left: 14px;
    font-size: 15px;
    color: var(--muted);
    pointer-events: none;
}
.topbar-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}
.topbar-icon:hover { background: var(--primary-soft); color: var(--primary); border-color: var(--primary-light); }
.topbar-admin {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border);
    cursor: default;
}
.admin-mini {
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
    flex-shrink: 0;
}
.admin-info { display: flex; flex-direction: column; gap: 1px; }
.admin-name { font-size: 13px; font-weight: 700; color: var(--text); }
.admin-role { font-size: 11px; color: var(--muted); }
.topbar-admin .admin-avatar { width: 32px; height: 32px; font-size: 14px; }
.topbar-admin .admin-name { color: var(--text); font-weight: 700; }
.topbar-icon .notif-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--danger);
    color: #fff;
    border-radius: 999px;
    border: 2px solid #fff;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.admin-chip {
    background: var(--primary-soft);
    color: var(--primary-dark);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

/* ---------- ئەسكەرتمە ---------- */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    animation: slideDown .35s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.alert-info  { background: #EFF6FF; color: #1D4ED8; border-color: #BFDBFE; }
.alert-error { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }

/* ---------- كارتا ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
    animation: fadeUp .45s ease;
}
.card:hover { box-shadow: var(--shadow-md); }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.card-title {
    font-size: 16px;
    margin-bottom: 18px;
    color: var(--text);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-title-extra {
    margin-right: auto;
    font-size: 13px;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}
.card-title-extra:hover { text-decoration: underline; }

/* ---------- جەدۋەل — زامانىۋىي ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th, .table td {
    text-align: right;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}
.table th {
    background: #F8FAFC;
    color: var(--text-secondary);
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.table tbody tr { transition: background var(--transition); }
.table tbody tr:hover { background: #F8FAFC; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr.row-active { background: #EFF6FF !important; box-shadow: inset 0 0 0 1px var(--primary-light); }
.empty { text-align: center; color: var(--muted); padding: 40px !important; font-weight: 600; }
.empty::before {
    content: '📭';
    display: block;
    font-size: 36px;
    margin-bottom: 10px;
    opacity: .7;
}

.dot { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: var(--shadow-sm); }
.tag {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    display: inline-block;
    box-shadow: var(--shadow-xs);
}
.zh-cell { font-size: 17px; font-weight: 700; }
.ltr { direction: ltr; text-align: left; }
.nowrap { white-space: nowrap; }
.row-actions { display: flex; gap: 8px; align-items: center; }

/* ---------- فورما ---------- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}
.field > span::after { content: ':'; }
.field-full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 11px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    width: 100%;
    transition: all var(--transition);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #CBD5E1; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .12);
}
.field textarea { resize: vertical; min-height: 80px; }
.color-input { height: 44px; padding: 4px; cursor: pointer; }
.field-hint { font-size: 11px; color: var(--muted); margin-top: -2px; }
.field-checkbox { justify-content: flex-start; }
.field-checkbox > span { margin-bottom: 4px; }
.toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 700;
    color: var(--text);
    user-select: none;
}
.toggle input[type="checkbox"] {
    width: 44px;
    height: 24px;
    appearance: none;
    background: #CBD5E1;
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    transition: background var(--transition);
    outline: none;
}
.toggle input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition);
}
.toggle input[type="checkbox"]:checked { background: var(--primary); }
.toggle input[type="checkbox"]:checked::after { transform: translateX(-20px); }

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
    align-items: center;
    padding-top: 8px;
}

/* ---------- كۇنۇپكىلار ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, .35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(59, 130, 246, .4); }
.btn-ghost {
    background: #fff;
    color: var(--text-secondary);
    border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-danger {
    background: var(--danger-soft);
    color: var(--danger);
    border-color: #FECACA;
}
.btn-danger:hover { background: #FECACA; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }
.inline { display: inline; }

/* ---------- Dashboard — رەسىمدەك ---------- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-info { display: flex; flex-direction: column; gap: 6px; }
.stat-label { font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.stat-num { font-size: 26px; font-weight: 800; color: var(--text); line-height: 1; }
.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary);
    background: var(--secondary-soft);
    padding: 3px 8px;
    border-radius: 999px;
}
.stat-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

/* بۆلەك ئىككىلىنىش */
.two-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 22px;
}
.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 22px;
}

/* Chart كونتىرول */
.chart-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.chart-tab {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: var(--bg);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    cursor: pointer;
}
.chart-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.chart-box {
    position: relative;
    height: 280px;
}
.chart-legend {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i {
    width: 10px; height: 10px; border-radius: 50%; display: inline-block;
}

/* تېز كىرىش */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.dashboard-quick { grid-template-columns: repeat(2, 1fr); }
.quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
    box-shadow: var(--shadow-xs);
}
.quick-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.quick-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.quick-text { font-size: 13px; font-weight: 700; }

/* جەدۋەل ئۇچۇرى */
.mini-list { list-style: none; }
.mini-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}
.mini-list li:last-child { border-bottom: none; }
.mini-list .meta { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.mini-list .title { font-size: 14px; font-weight: 700; color: var(--text); }
.mini-list .desc { font-size: 12px; color: var(--muted); }
.mini-list .side { font-size: 12px; color: var(--muted); white-space: nowrap; }
.mini-list .rank {
    width: 24px; height: 24px;
    border-radius: 6px;
    background: var(--bg);
    color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800;
    margin-left: 10px;
}
.mini-list li:first-child .rank { background: #FEF3C7; color: #D97706; }
.mini-list li:nth-child(2) .rank { background: #F1F5F9; color: #475569; }
.mini-list li:nth-child(3) .rank { background: #FFEDD5; color: #C2410C; }
.notice-list li { align-items: flex-start; }
.notice-list .tag { font-size: 11px; padding: 2px 8px; }

/* تۈڭلۈك دىagramما */
.donut-wrap {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto;
}
.donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.donut-center .num { font-size: 22px; font-weight: 800; color: var(--text); }
.donut-center .lbl { font-size: 11px; color: var(--muted); }

/* ---------- ئىزدەش ۋە سۈزۈش ---------- */
.toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    align-items: center;
}
.search-box {
    flex: 1;
    min-width: 260px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 16px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    transition: all var(--transition);
}
.search-box:hover { border-color: #CBD5E1; }
.search-box:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(59, 130, 246, .12); }

/* ---------- ھالەت ۋە بەلگىلەر ---------- */
.status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--border-light);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.status::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}
.status.active { background: var(--secondary-soft); color: #065F46; }
.status.active::before { background: var(--secondary); }

.code-block {
    display: block;
    direction: ltr;
    text-align: left;
    background: #0F172A;
    color: #E2E8F0;
    padding: 16px;
    border-radius: var(--radius);
    margin-top: 14px;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 13px;
    word-break: break-all;
    border: 1px solid #1E293B;
}

.muted { color: var(--muted); }

/* Checkboxes in tables */
.check-all, .check-row {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Bulk toolbar */
.bulk-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--text-secondary);
}
.bulk-bar .selected-count { font-weight: 800; color: var(--primary); }

/* ---------- كىرىش بېتى ---------- */
.login-body {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 45%, #2563EB 100%);
    overflow: hidden;
    padding: 20px;
}

.login-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    animation: float 8s ease-in-out infinite;
}
.blob-1 { width: 340px; height: 340px; top: -90px; right: -70px; }
.blob-2 { width: 280px; height: 280px; bottom: -80px; left: -60px; animation-delay: 2.5s; }
.blob-3 { width: 170px; height: 170px; top: 42%; left: 18%; animation-delay: 4s; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-26px); }
}

.login-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 44px 36px 34px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 24px 60px rgba(0, 40, 30, .35);
    text-align: center;
    animation: cardIn .5s ease;
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-brand { margin-bottom: 22px; }
.login-logo {
    width: 78px;
    height: 78px;
    margin: 0 auto;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    box-shadow: 0 12px 26px rgba(59, 130, 246, .35);
}
.login-title { font-size: 24px; margin-top: 16px; font-weight: 800; color: var(--text); }
.login-sub { color: var(--muted); margin-top: 6px; font-size: 13px; }

.login-form { display: flex; flex-direction: column; gap: 14px; text-align: right; }

.lfield { position: relative; display: flex; align-items: center; }
.lfield-icon { position: absolute; right: 14px; font-size: 16px; opacity: .45; pointer-events: none; }
.lfield input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 42px 14px 40px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    transition: .15s;
}
.lfield input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .12);
}
.pw-toggle {
    position: absolute;
    left: 8px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    opacity: .45;
    padding: 6px;
}
.pw-toggle:hover { opacity: 1; }

.btn-lg { padding: 15px; font-size: 16px; border-radius: var(--radius); }

.login-hint {
    margin-top: 20px;
    font-size: 12px;
    color: var(--muted);
    background: #F1F5F9;
    padding: 10px 14px;
    border-radius: 10px;
}

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
    .two-col { grid-template-columns: 1fr; }
    .three-col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
    .quick-actions { grid-template-columns: repeat(2, 1fr); }
}
/* ---------- Dashboard قوشۇمچە — welcome banner ---------- */
.welcome-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(120deg, #EAF3FF 0%, #F5FAFF 55%, #FFFFFF 100%);
    border: 1px solid #DBEAFE;
    border-radius: var(--radius-lg);
    padding: 18px 26px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.welcome-banner .wb-text { display: flex; flex-direction: column; gap: 6px; }
.welcome-banner .wb-title { font-size: 22px; font-weight: 800; color: var(--text); }
.welcome-banner .wb-sub { font-size: 13px; color: var(--text-secondary); }
.welcome-banner .wb-img {
    height: 92px;
    width: auto;
    max-width: 320px;
    object-fit: contain;
    border-radius: var(--radius);
}

/* ئۆگىنىش ئەسكەرتىشلىرى */
.reminder-list { list-style: none; }
.reminder-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}
.reminder-list li:last-child { border-bottom: none; }
.reminder-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #EAF2FF;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.reminder-meta { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.reminder-meta .rt { font-size: 13.5px; font-weight: 700; color: var(--text); }
.reminder-meta .rd { font-size: 12px; color: var(--muted); }
.reminder-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}
.reminder-link:hover { text-decoration: underline; }

/* TOP5 progress */
.top5-bar {
    flex: 1;
    height: 8px;
    background: #EEF2F7;
    border-radius: 999px;
    overflow: hidden;
    min-width: 60px;
}
.top5-bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #3B82F6, #60A5FA);
}
.top5-bar i.c1 { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.top5-bar i.c2 { background: linear-gradient(90deg, #10B981, #34D399); }
.top5-bar i.c3 { background: linear-gradient(90deg, #EF4444, #F87171); }
.top5-bar i.c4 { background: linear-gradient(90deg, #8B5CF6, #A78BFA); }
.top5-bar i.c5 { background: linear-gradient(90deg, #0EA5E9, #38BDF8); }
.top5-count { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* Donut legend with percent */
.donut-legend {
    list-style: none;
    margin-top: 16px;
}
.donut-legend li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-secondary);
}
.donut-legend i { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.donut-legend .dl-name { flex: 1; font-weight: 600; color: var(--text); }
.donut-legend .dl-pct { font-weight: 800; color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
    .two-col { grid-template-columns: 1fr; }
    .three-col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
    .quick-actions { grid-template-columns: repeat(2, 1fr); }
    .dashboard-quick { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
        width: 250px;
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar.collapsed { width: 250px; }
    .sidebar.collapsed + .main { margin-right: 0; }
    .sidebar.collapsed .brand-text,
    .sidebar.collapsed .nav-label,
    .sidebar.collapsed .nav-chevron,
    .sidebar.collapsed .nav-badge,
    .sidebar.collapsed .sidebar-promo { display: flex; }
    .sidebar.collapsed .sidebar-promo { display: block; }
    .sidebar.collapsed .nav-group-items { display: block; }
    .main { margin-right: 0; }
    .menu-toggle { display: inline-flex; }
    .content { padding: 18px 20px 28px; }
    .topbar { padding: 12px 20px; }
    .search-bar { display: none; }
    .admin-footer { flex-direction: column; gap: 4px; text-align: center; }
    .welcome-banner .wb-img { display: none; }
}
@media (max-width: 720px) {
    .topbar { padding: 12px 16px; }
    .page-breadcrumb { display: none; }
    .content { padding: 16px; }
    .form-grid { grid-template-columns: 1fr; }
    .field-full { grid-column: 1; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .three-col { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: 1fr; }
    .card { padding: 18px; }
    .table { font-size: 12px; }
    .table th, .table td { padding: 10px 8px; }
    .row-actions { flex-direction: column; align-items: stretch; gap: 6px; }
    .btn-sm { width: 100%; }
}
