/* =========================================================
   GLOBAL APP LAYOUT (Safe Base)
   - This file intentionally avoids layout for sidebar/main-wrap/navToggle.
   - All structural layout is handled by static/css/theme.css + hotfix.css.
   ========================================================= */

/* Reset + Base */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--color-bg, #f6f8fb);
  color: var(--color-text, #1f2937);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  overflow-x: hidden;
}

/* Components */
#bell-container { position: relative; }
#bell-dropdown {
  right: 0;
  width: 300px;
  max-height: 380px;
  overflow-y: auto;
  background: var(--color-bg-card, #fff);
  border-radius: 10px;
  border: 1px solid var(--color-border, #e5e7eb);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.bi-bell { cursor: pointer; }

.app-card {
  background: var(--color-bg-card, #fff);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }

/* Utilities */
.text-muted { color: #6b7280 !important; }
.hidden { display: none !important; }
main, .main-wrap > * { opacity: 1; visibility: visible; }

/* ⚠️ IMPORTANT:
   No layout overrides for:
   - .sidebar
   - .main-wrap
   - #navToggle
   They are fully controlled by theme.css + hotfix.css.
*/

/* Responsive tweaks */
@media (max-width: 767.98px) {
  .app-card { padding: 14px; }
}
@media (min-width: 768px) {
  .app-card { padding: 16px; }
}
