/* ─── Local Material Symbols Outlined Font (Self-Hosted & Zero-Flicker) ─── */
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 100 700;
  font-display: block;
  src: url('/static/fonts/material-symbols-outlined.woff2') format('woff2');
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

:root, html {
    color-scheme: dark !important;
}

body {
    font-family: "Vazirmatn", sans-serif;
    background-color: #050505;
    color: #dfe4de;
    overflow-x: hidden;
}

/* ─── Ultra-Sleek Modern Dark Scrollbars ─── */
html, body, #sidebar, #sidebar nav, main, div, * {
    scrollbar-width: thin !important;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent !important;
}

/* Webkit (Chrome, Edge, Safari, Opera, Brave) */
::-webkit-scrollbar {
    width: 6px !important;
    height: 6px !important;
}

::-webkit-scrollbar-track {
    background: transparent !important;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18) !important;
    border-radius: 9999px !important;
    transition: background 0.2s ease, box-shadow 0.2s ease !important;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(96, 212, 159, 0.65) !important; /* Nexo emerald glow */
    box-shadow: 0 0 8px rgba(96, 212, 159, 0.35) !important;
}

::-webkit-scrollbar-thumb:active {
    background: rgba(96, 212, 159, 0.9) !important;
}

::-webkit-scrollbar-corner {
    background: transparent !important;
}

/* ─── Sidebar Navigation: Sleek Floating Auto-Hide Scrollbar ─── */
#sidebar nav {
    scrollbar-width: thin !important;
    scrollbar-color: transparent transparent !important;
    transition: scrollbar-color 0.2s ease !important;
}

#sidebar nav:hover {
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent !important;
}

#sidebar nav::-webkit-scrollbar {
    width: 4px !important;
}

#sidebar nav::-webkit-scrollbar-track {
    background: transparent !important;
}

#sidebar nav::-webkit-scrollbar-thumb {
    background: transparent !important;
    border-radius: 9999px !important;
    transition: background 0.2s ease !important;
}

#sidebar nav:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22) !important;
}

#sidebar nav::-webkit-scrollbar-thumb:hover {
    background: #60d49f !important;
    box-shadow: 0 0 6px rgba(96, 212, 159, 0.5) !important;
}

.no-scrollbar::-webkit-scrollbar { display: none !important; }
.no-scrollbar { -ms-overflow-style: none !important; scrollbar-width: none !important; }
.row-actions { opacity: 0.45; transition: opacity 0.2s ease-in-out; }
.group:hover .row-actions { opacity: 1; }
@media (max-width: 1024px) {
    .row-actions { opacity: 1 !important; }
}
.glass-panel { background: rgba(15, 15, 15, 0.8); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(16px); }
.glow-btn { box-shadow: 0px 0px 12px rgba(96, 212, 159, 0.3); }
.glow-primary { box-shadow: 0px 0px 12px rgba(96, 212, 159, 0.3); }
.table-row { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.table-row:hover { background-color: rgba(96, 212, 159, 0.05); }

/* Sidebar transition */
#sidebar { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

/* Hide mobile overlay by default */
#sidebar-overlay { display: none; }
