/* ── SudaTop Platform — Custom Design ── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@300;400;500;600;700;800;900&family=IBM+Plex+Mono:wght@400;600&display=swap');

:root {
    --bg-deep:    #f4f6fa;
    --bg-surface: #ffffff;
    --bg-card:    #ffffff;
    --bg-raised:  #f8fafc;
    --bg-hover:   #f1f5f9;

    --text-bright: #0f172a;
    --text-main:   #334155;
    --text-muted:  #64748b;
    --text-dim:    #94a3b8;

    --accent:       #4f46e5;
    --accent-glow:  rgba(79, 70, 229, 0.2);
    --accent-soft:  rgba(79, 70, 229, 0.08);
    --accent-hover: #4338ca;

    --green:      #10b981;
    --green-soft: rgba(16, 185, 129, 0.12);
    --red:        #ef4444;
    --red-soft:   rgba(239, 68, 68, 0.12);
    --yellow:     #f59e0b;
    --yellow-soft:rgba(245, 158, 11, 0.12);
    --blue:       #3b82f6;
    --blue-soft:  rgba(59, 130, 246, 0.12);

    --border:     rgba(0,0,0,0.06);
    --border-mid: rgba(0,0,0,0.1);

    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius:    12px;
    --radius-lg: 18px;

    --sidebar-w: 240px;
    --transition: 0.18s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Kufi Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-deep);
    color: var(--text-main);
    direction: rtl;
    min-height: 100vh;
    line-height: 1.6;
    font-size: 12.5px;
    -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

/* ══════════════════════════════════════
   SIDEBAR
══════════════════════════════════════ */
.sidebar {
    position: fixed;
    right: 0; top: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
    transition: transform var(--transition);
}

/* Logo area */
.sidebar-brand {
    padding: 20px 18px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.sidebar-brand img {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.05);
}

.sidebar-brand .brand-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-bright);
    letter-spacing: -0.3px;
}

/* Nav */
.sidebar-nav {
    flex: 1;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition);
    position: relative;
    white-space: nowrap;
}

.sidebar-nav a i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    opacity: 0.7;
    transition: opacity var(--transition);
    flex-shrink: 0;
}

.sidebar-nav a:hover {
    color: var(--text-bright);
    background: var(--bg-hover);
}
.sidebar-nav a:hover i { opacity: 1; }

.sidebar-nav a.active {
    color: var(--accent);
    background: var(--accent-soft);
    font-weight: 600;
}
.sidebar-nav a.active i { opacity: 1; color: var(--accent); }

.sidebar-nav a.active::before {
    content: '';
    position: absolute;
    right: 0; top: 20%; bottom: 20%;
    width: 3px;
    background: var(--accent);
    border-radius: 3px 0 0 3px;
}

.sidebar-nav .nav-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 4px;
}

/* Logout link */
.sidebar-nav a.logout-link {
    margin-top: auto;
    color: var(--text-muted);
}
.sidebar-nav a.logout-link:hover {
    color: var(--red);
    background: var(--red-soft);
}

/* Sidebar footer */
.sidebar-footer {
    padding: 12px 18px;
    border-top: 1px solid var(--border);
    font-size: 0.72rem;
    color: var(--text-dim);
    text-align: center;
    flex-shrink: 0;
}

/* ══════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════ */
.main-content {
    margin-right: var(--sidebar-w);
    padding: 0 28px 24px 28px;
    min-height: 100vh;
    max-width: 1400px;
}

/* ── Top Bar ── */
.top-bar {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-mid);
    margin: 0 -28px 24px -28px;
    padding: 12px 28px;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap; /* Prevent wrapping on desktop */
}

.top-bar h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -0.3px;
}

.top-bar h1 small {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
    letter-spacing: 0;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-mid);
    border-radius: 50px;
    padding: 3px 10px 3px 4px;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.8rem;
}
.user-pill:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    color: var(--text-bright);
}

.user-pill .avatar {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #4db8ff);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; color: #fff;
    flex-shrink: 0;
}

.user-pill .u-name { font-size: 0.82rem; font-weight: 600; }

.user-dropdown-container {
    position: relative;
    display: inline-block;
}
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 220px;
    background: var(--bg-surface);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-sm);
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 1000;
}
.user-dropdown-container.active .user-dropdown-menu,
.user-dropdown-container:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 8px 12px;
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.user-dropdown-header strong { font-size: 0.88rem; color: var(--text-bright); }

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: var(--radius-xs);
    text-decoration: none;
    transition: background var(--transition);
}
.user-dropdown-menu a svg { width: 16px; opacity: 0.8; }
.user-dropdown-menu a:hover {
    background: var(--bg-hover);
    color: var(--text-bright);
}
.user-dropdown-menu a.text-red:hover {
    background: var(--red-soft);
    color: var(--red);
}
.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}

.mobile-toggle {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-mid);
    color: var(--text-main);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.mobile-toggle svg { width: 18px; height: 18px; stroke-width: 2; }

/* ── Alerts ── */
.alert {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeSlide 0.3s ease;
}
.alert::before { font-family: 'Font Awesome 6 Free'; font-weight: 900; }
.alert-success { background: var(--green-soft); color: var(--green); border: 1px solid rgba(0,229,160,0.25); }
.alert-success::before { content: '\f00c'; }
.alert-error   { background: var(--red-soft);   color: var(--red);   border: 1px solid rgba(255,77,109,0.25); }
.alert-error::before { content: '\f071'; }

/* ══════════════════════════════════════
   CARDS
══════════════════════════════════════ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 22px;
    transition: border-color var(--transition);
}

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

.card-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-bright);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h2 i { color: var(--accent); font-size: 0.95rem; }

/* ══════════════════════════════════════
   STAT CARDS
══════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition);
    cursor: default;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-mid);
}

.stat-card .sc-icon {
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    margin-bottom: 12px;
}

.stat-card.s-purple .sc-icon { background: var(--accent-soft);  color: var(--accent); }
.stat-card.s-green  .sc-icon { background: var(--green-soft);   color: var(--green);  }
.stat-card.s-blue   .sc-icon { background: var(--blue-soft);    color: var(--blue);   }
.stat-card.s-red    .sc-icon { background: var(--red-soft);     color: var(--red);    }
.stat-card.s-yellow .sc-icon { background: var(--yellow-soft);  color: var(--yellow); }

.stat-card .stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-bright);
    line-height: 1;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.stat-card .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Accent strip */
.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0; left: 0;
    height: 2px;
    border-radius: 0 0 var(--radius) var(--radius);
    opacity: 0.5;
}
.stat-card.s-purple::after { background: var(--accent); }
.stat-card.s-green::after  { background: var(--green);  }
.stat-card.s-blue::after   { background: var(--blue);   }
.stat-card.s-red::after    { background: var(--red);    }
.stat-card.s-yellow::after { background: var(--yellow); }

/* ══════════════════════════════════════
   TABLE
══════════════════════════════════════ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table { width: 100%; border-collapse: collapse; }

th {
    padding: 10px 14px;
    text-align: right;
    color: var(--text-dim);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

td {
    padding: 13px 14px;
    text-align: right;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--text-main);
    vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--transition); }
tbody tr:hover td { background: var(--bg-raised); }

/* ══════════════════════════════════════
   BADGES
══════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.badge::before { font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.6rem; }

.badge-pending    { background: var(--yellow-soft); color: var(--yellow); }
.badge-pending::before { content: '\f017'; }
.badge-processing { background: var(--blue-soft);   color: var(--blue);   }
.badge-processing::before { content: '\f110'; }
.badge-completed  { background: var(--green-soft);  color: var(--green);  }
.badge-completed::before { content: '\f00c'; }
.badge-failed, .badge-rejected { background: var(--red-soft); color: var(--red); }
.badge-failed::before, .badge-rejected::before { content: '\f00d'; }
.badge-approved   { background: var(--green-soft);  color: var(--green);  }
.badge-secondary  { background: var(--bg-raised);   color: var(--text-muted); }

/* SVG icons normalization */
.svg-icon {
    stroke: currentColor;
    stroke-width: 1.8;
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all var(--transition);
    white-space: nowrap;
    letter-spacing: 0;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 20px var(--accent-glow);
    transform: translateY(-1px);
    color: #fff;
}
.btn-primary:active { transform: translateY(0); }

.btn-success { background: var(--green); color: #000; }
.btn-success:hover { opacity: 0.88; transform: translateY(-1px); color: #000; }

.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { opacity: 0.88; transform: translateY(-1px); color: #fff; }

.btn-ghost {
    background: var(--bg-raised);
    color: var(--text-main);
    border: 1px solid var(--border-mid);
}
.btn-ghost:hover { background: var(--bg-hover); border-color: var(--accent); color: var(--text-bright); }

.btn-sm { padding: 5px 12px; font-size: 0.78rem; border-radius: var(--radius-xs); }
.btn-xs { padding: 3px 9px;  font-size: 0.72rem; border-radius: var(--radius-xs); }

/* ══════════════════════════════════════
   FORMS
══════════════════════════════════════ */
.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.form-control {
    width: 100%;
    padding: 10px 13px;
    background: var(--bg-deep);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-sm);
    color: var(--text-bright);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-control::placeholder { color: var(--text-dim); }
.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-surface);
}

select.form-control { cursor: pointer; }
select.form-control option { background: var(--bg-card); color: var(--text-main); }

/* ══════════════════════════════════════
   MODAL
══════════════════════════════════════ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    z-index: 200;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-lg);
    padding: 28px;
    width: 100%;
    max-width: 480px;
    animation: popIn 0.25s cubic-bezier(.34,1.56,.64,1);
}

.modal h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ══════════════════════════════════════
   PRODUCTS GRID
══════════════════════════════════════ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 14px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
}

.product-card:hover {
    border-color: var(--accent);
    background: var(--bg-raised);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.product-card.selected {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 0 2px var(--accent);
}

.product-card .product-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.product-card .product-price {
    color: var(--green);
    font-size: 1.2rem;
    font-weight: 800;
    font-family: 'IBM Plex Mono', monospace;
}

/* ══════════════════════════════════════
   CATEGORIES GRID
══════════════════════════════════════ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 14px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    display: block;
    color: inherit;
}

.category-card:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-3px);
    color: var(--text-bright);
}

.category-card i { font-size: 2.2rem; margin-bottom: 10px; color: var(--accent); display: block; }
.category-card .cat-name { font-weight: 700; font-size: 0.9rem; color: var(--text-bright); }

/* ══════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════ */
.login-wrapper {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg-deep);
    position: relative;
    overflow: hidden;
}

/* Decorative background blobs */
.login-wrapper::before,
.login-wrapper::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    pointer-events: none;
}
.login-wrapper::before {
    width: 500px; height: 500px;
    background: var(--accent);
    top: -150px; left: -100px;
}
.login-wrapper::after {
    width: 400px; height: 400px;
    background: var(--blue);
    bottom: -100px; right: -80px;
}

.login-box {
    background: var(--bg-card);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.login-logo {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo img {
    height: 60px;
    object-fit: contain;
}

.login-logo .login-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.login-box .form-control { background: var(--bg-surface); }

/* ══════════════════════════════════════
   CODE / MONOSPACE
══════════════════════════════════════ */
code, .mono {
    font-family: 'IBM Plex Mono', monospace;
    background: var(--bg-deep);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.82em;
    color: var(--accent);
}

/* ══════════════════════════════════════
   INLINE UTILS
══════════════════════════════════════ */
.text-green  { color: var(--green);  }
.text-red    { color: var(--red);    }
.text-yellow { color: var(--yellow); }
.text-blue   { color: var(--blue);   }
.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-muted); }
.text-bright { color: var(--text-bright); }

.fw-800 { font-weight: 800; }
.fw-700 { font-weight: 700; }

.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center  { display: flex; justify-content: center; align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.94) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
    50%       { box-shadow: 0 0 0 6px rgba(124,109,250,0.0); }
}


/* ══════════════════════════════════════
   NOTIFICATIONS
══════════════════════════════════════ */
.notification-wrapper {
    position: relative;
    display: inline-block;
}

.notif-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-mid);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.notif-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.notif-btn svg {
    width: 18px;
    height: 18px;
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--red);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-surface);
    padding: 0 2px;
}

.notif-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 300px;
    background: var(--bg-surface);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 1001;
    left: auto;
    right: 0;
}

.notification-wrapper:hover .notif-dropdown,
.notification-wrapper.active .notif-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

.notif-header span {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-bright);
}

.notif-header .mark-all {
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 600;
}

.notif-list {
    max-height: 350px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
    cursor: default;
    text-decoration: none;
}

.notif-item:hover {
    background: var(--bg-hover);
}

.notif-item.unread {
    background: var(--accent-soft);
}

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

.notif-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-icon.info { background: var(--blue-soft); color: var(--blue); }
.notif-icon.success { background: var(--green-soft); color: var(--green); }
.notif-icon.error { background: var(--red-soft); color: var(--red); }
.notif-icon.warning { background: var(--yellow-soft); color: var(--yellow); }

.notif-icon svg { width: 16px; height: 16px; }

.notif-content {
    flex: 1;
}

.notif-title {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-bright);
    margin-bottom: 2px;
}

.notif-msg {
    font-size: 0.78rem;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 4px;
}

.notif-time {
    font-size: 0.68rem;
    color: var(--text-dim);
}

.view-all {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    border-top: 1px solid var(--border);
}

.notif-empty {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
    .sidebar { transform: translateX(100%); box-shadow: none; }
    .sidebar.open { transform: translateX(0); box-shadow: -20px 0 60px rgba(0,0,0,0.15); }
    .main-content { margin-right: 0; padding: 0 16px 16px; }
    .top-bar { margin: 0 -16px 20px -16px; padding: 12px 16px; }
    .mobile-toggle { display: flex !important; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 560px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    table { font-size: 0.8rem; }
    th, td { padding: 9px 10px; }
    .top-bar h1 { font-size: 1.15rem; }
    .login-box { padding: 26px 20px; }
    .topbar-logo img { height: 24px !important; }
    .notif-dropdown { width: calc(100vw - 32px); position: fixed; top: 60px; left: 16px; right: 16px; }
}
