/* ============================================================
   DUA TRADERS WHOLESALE RICE ERP — PURE WHITE THEME DESIGN SYSTEM
   Clean, Professional, High Performance Corporate Aesthetic
   ============================================================ */

:root {
  /* Brand Primary Colors (Infinity Soft Tech Green Palette) */
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #34d399;
  --primary-glow: rgba(16, 185, 129, 0.15);

  --accent: #f59e0b;
  --accent-dark: #d97706;
  --success: #10b981;
  --success-dark: #059669;
  --danger: #ef4444;
  --danger-dark: #dc2626;
  --warning: #f59e0b;
  --info: #3b82f6;

  /* White & Light Background Layers */
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-border: #e2e8f0;
  --bg-input: #ffffff;

  /* Crisp Typography Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-accent: #059669;

  /* White Sidebar Tokens */
  --sidebar-width: 255px;
  --sidebar-collapsed: 70px;
  --sidebar-bg: #ffffff;
  --sidebar-border: #e2e8f0;

  /* Radius System */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  /* Modern Subtle Shadows */
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 4px 12px rgba(15,23,42,0.08), 0 2px 4px rgba(15,23,42,0.04);
  --shadow-lg: 0 12px 28px rgba(15,23,42,0.12), 0 4px 8px rgba(15,23,42,0.06);
  --shadow-glow: 0 0 20px rgba(79,70,229,0.15);

  --transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  --transition-fast: all 0.12s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ══════════════════════════════════════
   LOGIN PAGE (LIGHT MODERN CLEAN)
══════════════════════════════════════ */
/* ══════════════════════════════════════
   INFINITY SOFT SPLIT-SCREEN EXECUTIVE LOGIN (PURE WHITE THEME)
   ══════════════════════════════════════ */
.login-page {
  position: fixed; inset: 0;
  display: flex; width: 100vw; height: 100vh;
  background: #ffffff !important;
  z-index: 9999;
  overflow: hidden;
}

/* LEFT SHOWCASE PANEL (PURE SEAMLESS TRANSPARENT INFINITY SOFT ORIGINAL LOGO) */
.login-showcase-panel {
  flex: 1;
  background: #ffffff !important;
  padding: 24px 30px !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-right: 1px solid #e2e8f0;
}

/* TOP MULTI-INDUSTRY TICKER CAROUSEL SLIDER (CONTINUOUS LIVE SLIDING) */
.showcase-ticker-container {
  position: relative; z-index: 3;
  width: 100%;
  padding-bottom: 6px;
  overflow: hidden;
}

.ticker-header {
  font-size: 11px;
  font-weight: 900;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ticker-track-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  animation: slideLeftTicker 32s linear infinite;
}

.ticker-track-wrapper:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes slideLeftTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.top-ind-badge {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 22px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(15,23,42,0.05);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.top-ind-badge i {
  color: #10b981;
  font-size: 14px;
}

.top-ind-badge:hover {
  border-color: #10b981;
  color: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16,185,129,0.18);
}

.top-ind-badge.custom-badge {
  background: rgba(16,185,129,0.12);
  border-color: #10b981;
  color: #059669;
  font-weight: 900;
}

.showcase-transparent-logo-wrapper {
  position: relative; z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.showcase-logo-ambient-glow {
  position: absolute;
  width: 70%; height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.12) 0%, rgba(16,185,129,0.02) 60%, transparent 80%);
  filter: blur(60px);
  pointer-events: none;
}

.showcase-pure-fullscreen-img {
  max-width: 80%;
  max-height: 52vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 15px 35px rgba(16,185,129,0.18));
  transition: transform 0.35s ease;
}

.showcase-pure-fullscreen-img:hover {
  transform: scale(1.02);
}

/* IMPRESSIVE EXECUTIVE FEATURE BADGES */
.showcase-impressive-grid {
  position: relative; z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 680px;
  margin: 10px 0 20px;
}

.impressive-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-left: 4px solid #10b981;
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 18px rgba(15,23,42,0.04);
  transition: all 0.25s ease;
}

.impressive-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(16,185,129,0.18);
  border-color: #10b981;
}

.imp-icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: rgba(16,185,129,0.12);
  color: #059669;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}

.imp-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.imp-sub {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.showcase-footer-light {
  position: relative; z-index: 3;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

/* ══════════════════════════════════════
   INDUSTRIAL PENDANT LAMP & VOLUMETRIC LIGHT RAYS
   ══════════════════════════════════════ */
.login-form-panel-light {
  width: 460px;
  background: #0b0f19;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 135px 40px 40px;
  position: relative; z-index: 2;
  box-shadow: -15px 0 50px rgba(0,0,0,0.6);
  border-left: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}

/* Woven Cord & Industrial Metal Dome Shade Assembly */
.pendant-lamp-assembly {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 20;
  transition: transform 0.25s ease;
}

.pendant-lamp-assembly:hover {
  transform: translateX(-50%) scale(1.06);
}

.lamp-woven-cord {
  width: 4px;
  height: 48px;
  background: #1e293b;
  box-shadow: 1px 0 3px rgba(0,0,0,0.6);
}

.lamp-cap {
  width: 20px;
  height: 12px;
  background: linear-gradient(to bottom, #334155, #1e293b);
  border-radius: 4px 4px 0 0;
  border: 1px solid #475569;
}

.lamp-metal-shade {
  width: 140px;
  height: 45px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 70%, #020617 100%);
  border-radius: 70px 70px 0 0;
  border: 2px solid #334155;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.9), inset 0 2px 4px rgba(255,255,255,0.15);
}

.lamp-inner-glow {
  position: absolute;
  bottom: -3px;
  width: 110px;
  height: 14px;
  border-radius: 50%;
  background: #10b981;
  filter: blur(6px);
  opacity: 0.95;
  transition: all 0.4s ease;
}

.lamp-edison-bulb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 25px #10b981, 0 0 55px rgba(16,185,129,0.95);
  position: relative;
  bottom: -20px;
  z-index: 2;
  transition: all 0.4s ease;
  animation: bulbGlowPulse 2.5s ease-in-out infinite alternate;
}

@keyframes bulbGlowPulse {
  0% { transform: scale(0.96); }
  100% { transform: scale(1.04); }
}

.lamp-downward-light-glow {
  position: absolute;
  top: 65px;
  left: 50%;
  transform: translateX(-50%);
  width: 440px;
  height: 100%;
  background: radial-gradient(ellipse at 50% 0%, rgba(16,185,129,0.45) 0%, rgba(16,185,129,0.2) 40%, rgba(16,185,129,0.05) 75%, transparent 100%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 1;
  transition: all 0.4s ease;
  animation: downwardLightPulse 3s ease-in-out infinite alternate;
}

@keyframes downwardLightPulse {
  0% { opacity: 0.88; transform: translateX(-50%) scale(0.97); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.03); }
}

/* FLOATING LOGIN CARD WITH ZERO WHITE BOX! */
.login-card-transparent {
  width: 100%;
  max-width: 360px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  position: relative; z-index: 5;
}

.login-input-glass {
  background: rgba(15,23,42,0.7) !important;
  border: 1.5px solid rgba(255,255,255,0.22) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 13px 16px !important;
  border-radius: 14px !important;
  backdrop-filter: blur(12px) !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
}

.login-input-glass:focus {
  border-color: #fbbf24 !important;
  box-shadow: 0 0 0 3.5px rgba(251,191,36,0.3), 0 4px 20px rgba(0,0,0,0.4) !important;
  background: rgba(15,23,42,0.85) !important;
}

.pwd-toggle-glass {
  position: absolute; right: 14px; bottom: 13px;
  background: transparent; border: none;
  color: #94a3b8; cursor: pointer; font-size: 16px;
}
.pwd-toggle-glass:hover { color: #ffffff; }

.btn-login-glow-large {
  width: 100%;
  padding: 15px;
  border-radius: 14px;
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
}

.btn-login-glow-large:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.login-header-right { text-align: center; margin-bottom: 24px; }

.login-input-white {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  transition: all 0.25s ease !important;
}

.login-input-white:focus {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3.5px rgba(16,185,129,0.2) !important;
  background: #ffffff !important;
}

.pwd-toggle-white {
  position: absolute; right: 14px; bottom: 12px;
  background: transparent; border: none;
  color: #94a3b8; cursor: pointer; font-size: 15px;
}
.pwd-toggle-white:hover { color: #059669; }

.btn-login-green {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 8px 22px rgba(16,185,129,0.35);
  transition: all 0.25s ease;
}

.btn-login-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16,185,129,0.5);
}

.login-right-footer-light {
  text-align: center;
  margin-top: 24px;
  font-size: 11px;
  color: #64748b;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

@media (max-width: 900px) {
  .login-page { flex-direction: column; overflow-y: auto; }
  .login-showcase-panel { display: none; }
  .login-form-panel-light { width: 100%; min-height: 100vh; }
}

/* ══════════════════════════════════════
   WHITE SIDEBAR STYLES (WITH SMOOTH SCROLL)
══════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  max-height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 1000;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.sidebar.collapsed { width: var(--sidebar-collapsed); }

.sidebar-header {
  padding: 16px 14px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--sidebar-border);
  min-height: 68px;
  flex-shrink: 0;
}

.logo { display: flex; align-items: center; gap: 10px; overflow: hidden; }
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: white; flex-shrink: 0;
  box-shadow: 0 4px 15px var(--primary-glow);
}
.logo-text { display: flex; flex-direction: column; white-space: nowrap; }
.company-name { font-size: 14px; font-weight: 800; color: var(--text-primary); }
.company-sub { font-size: 10px; color: var(--text-secondary); }

.sidebar-toggle {
  background: transparent; border: none;
  color: var(--text-muted); cursor: pointer;
  padding: 6px; border-radius: var(--radius-sm);
  transition: var(--transition-fast); flex-shrink: 0;
}
.sidebar-toggle:hover { background: #f1f5f9; color: var(--text-primary); }

.sidebar-nav {
  flex: 1;
  min-height: 0;
  padding: 12px 8px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 5px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
.sidebar-nav::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.nav-group { margin-bottom: 8px; }
.nav-label {
  display: block; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--text-muted); padding: 8px 12px 4px;
  white-space: nowrap; overflow: hidden; transition: var(--transition);
}
.sidebar.collapsed .nav-label { opacity: 0; height: 0; padding: 0; }
.sidebar.collapsed .logo-text { display: none; }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-md);
  color: var(--text-secondary); text-decoration: none;
  font-size: 13px; font-weight: 600;
  transition: var(--transition); margin-bottom: 3px;
  white-space: nowrap; position: relative; overflow: hidden;
}
.nav-item i { font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }
.nav-item:hover { color: var(--text-primary); background: #f1f5f9; }
.nav-item.active {
  color: white; background: var(--primary);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35); font-weight: 700;
}
.sidebar.collapsed .nav-item span { display: none; }
.sidebar.collapsed .nav-item { justify-content: center; }

.sidebar-footer {
  padding: 12px 12px;
  border-top: 1px solid var(--sidebar-border);
  background: #ffffff;
  flex-shrink: 0;
}
.date-time { font-size: 11px; color: var(--text-muted); text-align: center; font-weight: 500; }

/* ══════════════════════════════════════
   MAIN WRAPPER & HEADER
══════════════════════════════════════ */
.main-wrapper {
  flex: 1; margin-left: var(--sidebar-width);
  display: flex; flex-direction: column;
  min-height: 100vh; transition: var(--transition);
}
.main-wrapper.expanded { margin-left: var(--sidebar-collapsed); }

.top-header {
  height: 52px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--bg-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-left { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  background: transparent; border: none;
  color: var(--text-secondary); cursor: pointer;
  padding: 6px; border-radius: var(--radius-sm);
  font-size: 14px; transition: var(--transition-fast);
}
.menu-btn:hover { background: var(--bg-base); color: var(--text-primary); }
.breadcrumb { font-size: 13px; font-weight: 700; color: var(--text-primary); }

.header-right { display: flex; align-items: center; gap: 10px; }

.header-search {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-base); border: 1px solid var(--bg-border);
  border-radius: var(--radius-full); padding: 4px 10px;
  transition: var(--transition);
}
.header-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-glow); background: white; }
.header-search i { color: var(--text-muted); font-size: 11px; }
.header-search input {
  background: transparent; border: none; outline: none;
  color: var(--text-primary); font-size: 12px; width: 160px;
  font-family: 'Inter', sans-serif;
}
.header-search input::placeholder { color: var(--text-muted); }

.header-user {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px; border-radius: var(--radius-md);
  background: var(--bg-base); border: 1px solid var(--bg-border);
  cursor: pointer; transition: var(--transition-fast);
}
.header-user:hover { border-color: var(--primary); background: white; }
.user-avatar {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: white;
}
.user-info { display: flex; flex-direction: column; }
.user-name { font-size: 11px; font-weight: 700; color: var(--text-primary); }
.user-role { font-size: 9px; color: var(--text-secondary); }

/* ══════════════════════════════════════
   PAGE CONTENT
══════════════════════════════════════ */
.page-content { flex: 1; padding: 24px; overflow-y: auto; }

/* ══════════════════════════════════════
   MODAL (LIGHT CLEAN)
══════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.4);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: var(--transition);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box {
  background: #ffffff;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-xl);
  width: 92%; max-width: 780px; max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(15px);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}
.modal-box.modal-wide {
  width: 96%;
  max-width: 1320px;
  max-height: 94vh;
}
.modal-overlay.active .modal-box { transform: scale(1) translateY(0); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--bg-border);
  position: sticky; top: 0; background: #ffffff; z-index: 1;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.modal-header h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.modal-close {
  background: transparent; border: none;
  color: var(--text-muted); cursor: pointer;
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  font-size: 14px; transition: var(--transition-fast);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: #fee2e2; color: var(--danger); }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 14px 24px; border-top: 1px solid var(--bg-border);
  display: flex; gap: 10px; justify-content: flex-end;
  position: sticky; bottom: 0; background: #ffffff;
}

/* ══════════════════════════════════════
   CUSTOM PROFESSIONAL LIVE SEARCH DROPDOWN POPUP
══════════════════════════════════════ */
.custom-search-wrapper {
  position: relative;
  width: 100%;
}
.custom-dropdown-popup {
  position: absolute;
  top: 100%; left: 0; right: 0;
  margin-top: 4px;
  background: #ffffff;
  border: 1px solid var(--primary-light);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15,23,42,0.18);
  max-height: 240px;
  overflow-y: auto;
  z-index: 10050;
  animation: fadeIn 0.15s ease-in-out;
}
.custom-dropdown-item {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  transition: all 0.15s ease;
}
.custom-dropdown-item:last-child {
  border-bottom: none;
}
.custom-dropdown-item:hover, .custom-dropdown-item.active {
  background: rgba(99,102,241,0.08);
  color: var(--primary);
  padding-left: 18px;
}
.custom-dropdown-empty {
  padding: 12px 14px;
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
  font-style: italic;
}

/* ══════════════════════════════════════
   TOAST
══════════════════════════════════════ */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 99999; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: #ffffff; border: 1px solid var(--bg-border);
  border-radius: var(--radius-md); padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 500; color: var(--text-primary);
  box-shadow: var(--shadow-md); animation: slideInToast 0.25s ease;
  min-width: 280px; max-width: 380px;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }
.toast.info { border-left: 4px solid var(--info); }
.toast i { font-size: 16px; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast.warning i { color: var(--warning); }
.toast.info i { color: var(--info); }

@keyframes slideInToast {
  from { transform: translateX(110%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ══════════════════════════════════════
   ANIMATIONS & RESPONSIVE
══════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-fadeInUp { animation: fadeInUp 0.3s ease both; }
.animate-fadeIn { animation: fadeIn 0.2s ease both; }

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.mobile-open { transform: translateX(0); }
  .main-wrapper { margin-left: 0 !important; }
  .header-search { display: none; }
  .page-content { padding: 16px; }
}

/* ══════════════════════════════════════
   PROJECT SPECIFICATION MODAL STYLES
══════════════════════════════════════ */
.spec-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.65);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

.spec-modal-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 25px 60px rgba(15,23,42,0.22);
  width: 100%; max-width: 820px;
  max-height: 90vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.spec-modal-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #e2e8f0;
  display: flex; align-items: center; justify-content: space-between;
}

.spec-modal-icon-badge {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: rgba(16,185,129,0.14);
  color: #059669;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
  border: 1px solid rgba(16,185,129,0.3);
}

.spec-modal-title {
  font-size: 20px; font-weight: 900;
  color: #0f172a; margin: 0 0 2px;
  letter-spacing: -0.3px;
}

.spec-modal-sub {
  font-size: 12px; font-weight: 700;
  color: #059669; text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-modal-close-btn {
  background: #f1f5f9; border: none;
  width: 36px; height: 36px; border-radius: 10px;
  color: #64748b; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.spec-modal-close-btn:hover {
  background: #fee2e2; color: #ef4444;
}

.spec-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.spec-modal-desc {
  font-size: 14px; color: #475569;
  line-height: 1.6; margin-bottom: 20px;
  background: #f8fafc; padding: 14px 18px;
  border-radius: 14px; border: 1px solid #e2e8f0;
  font-weight: 500;
}

.spec-section-heading {
  font-size: 14px; font-weight: 900;
  color: #0f172a; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: 0.5px;
}

.spec-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.spec-module-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 3.5px solid #10b981;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 4px 12px rgba(15,23,42,0.03);
}

.spec-mod-name {
  font-size: 13px; font-weight: 800;
  color: #0f172a; margin-bottom: 4px;
  display: flex; align-items: center; gap: 6px;
}

.spec-mod-desc {
  font-size: 11.5px; color: #64748b;
  line-height: 1.45; font-weight: 500;
}

.spec-tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.spec-tech-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex; justify-content: space-between; align-items: center;
}

.spec-tech-label {
  font-size: 12px; font-weight: 700; color: #64748b;
}

.spec-tech-val {
  font-size: 12px; font-weight: 800; color: #059669;
}

.spec-modal-footer {
  padding: 16px 24px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex; justify-content: space-between; align-items: center;
}

@media (max-width: 640px) {
  .spec-modules-grid, .spec-tech-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   EXECUTIVE WELCOME OVERLAY SCREEN
══════════════════════════════════════ */
.welcome-overlay-backdrop {
  position: fixed; inset: 0;
  background: rgba(9,13,22,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999999;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn 0.35s ease;
}

.welcome-modal-card {
  background: linear-gradient(145deg, rgba(30,41,59,0.96) 0%, rgba(15,23,42,0.98) 100%);
  border-radius: 32px;
  border: 2px solid rgba(16,185,129,0.5);
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 50px rgba(16,185,129,0.3);
  padding: 45px 40px;
  width: 100%; max-width: 520px;
  text-align: center;
  position: relative; overflow: hidden;
  animation: welcomePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes welcomePop {
  from { opacity: 0; transform: scale(0.88) translateY(25px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.welcome-sparkle-badge {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  font-size: 38px;
  margin: 0 auto 20px;
  position: relative;
  box-shadow: 0 10px 30px rgba(16,185,129,0.6);
  animation: badgeBounce 0.6s ease;
}

@keyframes badgeBounce {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.welcome-icon-glow {
  position: absolute; inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.6) 0%, transparent 70%);
  filter: blur(10px);
  animation: bulbPulse 2s ease-in-out infinite alternate;
}

.welcome-greeting-label {
  font-size: 12px; font-weight: 800;
  color: #10b981; text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 6px;
}

.welcome-user-title {
  font-size: 30px; font-weight: 900;
  color: #ffffff; margin: 0 0 6px;
  letter-spacing: 0.5px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.welcome-sub-brand {
  font-size: 15px; font-weight: 700;
  color: #94a3b8; margin-bottom: 20px;
}

.welcome-client-pill {
  font-size: 13px; font-weight: 700;
  color: #ffffff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 10px 20px; border-radius: 16px;
  display: inline-block; margin-bottom: 28px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.welcome-progress-wrapper {
  width: 100%; height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden; margin-bottom: 12px;
}

.welcome-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #10b981, #06b6d4, #a855f7);
  border-radius: 10px;
  transition: width 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.welcome-status-text {
  font-size: 12px; font-weight: 600; color: #94a3b8;
}

/* ============================================================
   UNIVERSAL A4 PRINTING OPTIMIZATIONS
   ============================================================ */
@page {
  size: A4 portrait;
  margin: 10mm 10mm 10mm 10mm;
}

@media print {
  html, body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 12px !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .sidebar, .top-header, .page-actions, .modal-footer, .btn, .no-print, #dt_license_lock_overlay {
    display: none !important;
  }

  .main-content {
    margin-left: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

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

  tr {
    page-break-inside: avoid !important;
  }

  th, td {
    border-color: #cbd5e1 !important;
  }
}

/* ════════════════════════════════════════════════════════════════
   HOLY QURAN PORTAL & SPIRITUAL RECITATIONS STYLES
════════════════════════════════════════════════════════════════ */
.quran-nav-highlight {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(4, 120, 87, 0.08)) !important;
  border: 1.5px solid rgba(16, 185, 129, 0.35) !important;
  border-radius: 10px !important;
  margin-bottom: 8px !important;
  font-weight: 800 !important;
  transition: all 0.25s ease !important;
}

.quran-nav-highlight:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(4, 120, 87, 0.15)) !important;
  border-color: #10b981 !important;
  transform: translateX(3px);
}

.surah-card-active {
  border-color: #10b981 !important;
  background: rgba(16, 185, 129, 0.05) !important;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.18) !important;
  transform: translateY(-2px);
}

.header-quran-pill {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #047857;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 12px;
}

.header-quran-pill:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
}

.quran-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  animation: quranPulse 1.4s infinite ease-in-out;
}

@keyframes quranPulse {
  0% { transform: scale(0.8); opacity: 0.6; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.8); opacity: 0.6; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ── LIVE EQUALIZER VISUALIZER ── */
.quran-visualizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.quran-visualizer span {
  width: 3.5px;
  background: #10b981;
  border-radius: 3px;
  display: inline-block;
  animation: quranEq 0.9s infinite ease-in-out;
}

.quran-visualizer span:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.quran-visualizer span:nth-child(2) { height: 16px; animation-delay: 0.3s; }
.quran-visualizer span:nth-child(3) { height: 18px; animation-delay: 0.15s; }
.quran-visualizer span:nth-child(4) { height: 10px; animation-delay: 0.4s; }

@keyframes quranEq {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1.0); }
}

/* ── ACTIVE RECITING AYAH CARD HIGHLIGHT & SMOOTH GLOW ── */
.active-ayah-card {
  border: 2.5px solid #10b981 !important;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(251, 191, 36, 0.06)) !important;
  box-shadow: 0 10px 32px rgba(16, 185, 129, 0.22) !important;
  transform: scale(1.01);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ── GLOBAL FLOATING DOCK BAR (ACROSS ENTIRE ERP) ── */
.global-quran-dock {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-width);
  right: 0;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  border-top: 2.5px solid #10b981;
  padding: 10px 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4);
  color: #fff;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .global-quran-dock {
    left: 0;
    padding: 8px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }
}


