/* SmartNexus Enterprise Portal - Master Luxury Light Palette & Unified Design System */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --border-light: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --color-primary: #0066ff;
  --color-primary-hover: #0052cc;
  --color-cyan: #0284c7;
  --color-accent: #00e676;
}

body, h1, h2, h3, h4, h5, h6, p, a, button, input, select, textarea, label, span {
  font-family: 'Tajawal', 'Inter', sans-serif;
}

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

/* Global Light Theme Reset */
body {
  background-color: var(--bg-light) !important;
  color: var(--text-primary) !important;
  overflow-x: hidden;
  scroll-behavior: smooth;
  line-height: 1.6;
}

/* Card & Panel Styling */
.glass-card, .glass-panel {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-light) !important;
  box-shadow: 0 10px 30px -5px rgba(0, 50, 100, 0.05), 0 2px 6px rgba(0, 0, 0, 0.02) !important;
  color: var(--text-primary) !important;
  border-radius: 1.5rem !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover, .glass-panel:hover {
  border-color: rgba(0, 102, 255, 0.3) !important;
  box-shadow: 0 20px 40px -10px rgba(0, 102, 255, 0.12) !important;
  transform: translateY(-4px);
}

/* Navigation Bar */
.glass-nav, header nav, nav.sticky {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

header a, nav a {
  color: #334155 !important;
  font-weight: 600;
}

header a:hover, nav a:hover {
  color: var(--color-primary) !important;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary) !important;
  font-weight: 800;
  line-height: 1.35 !important;
}

p, .font-body-md, .font-body-lg {
  color: var(--text-secondary) !important;
}

/* Buttons */
.btn-glow, button.bg-primary-container, button.bg-primary {
  background: linear-gradient(135deg, #0066ff 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3) !important;
  border: none !important;
  transition: all 0.3s ease;
}

.btn-glow:hover, button.bg-primary-container:hover, button.bg-primary:hover {
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.45) !important;
  transform: translateY(-2px) scale(1.02);
}

.btn-outline-glass {
  background: #ffffff !important;
  border: 1px solid rgba(0, 102, 255, 0.25) !important;
  color: #0066ff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.3s ease;
}

.btn-outline-glass:hover {
  background: #f0f7ff !important;
  border-color: #0066ff !important;
  color: #0052cc !important;
}

.hero-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  border-radius: 9999px;
  background: rgba(0, 102, 255, 0.08);
  border: 1px solid rgba(0, 102, 255, 0.2);
  color: #0066ff;
  font-size: 14px;
  font-weight: 700;
}

/* Footer Accent */
footer {
  background-color: #0f172a !important;
  color: #f1f5f9 !important;
  border-top: 1px solid #1e293b !important;
}

footer h3, footer h4, footer h5, footer h6 {
  color: #ffffff !important;
}

footer p, footer li, footer a, footer div {
  color: #94a3b8 !important;
}

footer a:hover {
  color: #38bdf8 !important;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

[dir="rtl"] #toast-container {
  right: auto;
  left: 24px;
}

.toast {
  pointer-events: auto;
  min-width: 300px;
  max-width: 420px;
  padding: 16px 20px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 102, 255, 0.15);
  box-shadow: 0 15px 35px rgba(0, 50, 150, 0.15);
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[dir="rtl"] .toast {
  transform: translateX(-100%);
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-success {
  border-left: 4px solid #10b981;
}
[dir="rtl"] .toast-success {
  border-left: none;
  border-right: 4px solid #10b981;
}

.toast-error {
  border-left: 4px solid #ef4444;
}
[dir="rtl"] .toast-error {
  border-left: none;
  border-right: 4px solid #ef4444;
}

.toast-info {
  border-left: 4px solid #0066ff;
}
[dir="rtl"] .toast-info {
  border-left: none;
  border-right: 4px solid #0066ff;
}

/* Modal Window */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #ffffff !important;
  border: 1px solid rgba(0, 102, 255, 0.2) !important;
  box-shadow: 0 25px 60px rgba(0, 50, 150, 0.2) !important;
  border-radius: 24px;
  width: 100%;
  max-width: 540px;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: #0f172a !important;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}
