/* ========================================================
   DMCNEX — Luxury B2B Travel Representation & DMC Network
   World-Class Modern Developer-Grade Stylesheet
   ======================================================== */

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

:root {
  --primary-obsidian: #030712;
  --primary-dark: #071224;
  --primary-navy: #0b1a30;
  --navy-surface: #0f1f38;
  --navy-card: #15294b;
  --accent-gold: #f59e0b;
  --accent-amber: #d97706;
  --accent-gold-glow: rgba(245, 158, 11, 0.25);
  --accent-blue: #2563eb;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --surface-white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: #f8fafc;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Glassmorphism effects */
.glass-nav {
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.glass-card-dark {
  background: rgba(11, 26, 48, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

/* Custom Gradients */
.gradient-navy {
  background: linear-gradient(135deg, #030712 0%, #0b1a30 50%, #11264c 100%);
}

.gradient-hero {
  background: radial-gradient(circle at 50% 20%, #0f274a 0%, #061124 55%, #020610 100%);
}

.gradient-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
}

.gradient-ocean {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
}

.gradient-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Text Gradients */
.text-gradient-gold {
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #93c5fd 0%, #3b82f6 50%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Smooth Card Hover Elevation */
.card-elevate {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
}
.card-elevate:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Gold Glow Accent */
.gold-glow {
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.22);
}

/* Subtle Shimmer for High-Priority Elements */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-badge {
  background: linear-gradient(90deg, rgba(245,158,11,0.15) 0%, rgba(245,158,11,0.35) 50%, rgba(245,158,11,0.15) 100%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* Badges & Tags */
.badge-gold {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-blue {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.badge-green {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

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

.toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 440px;
  padding: 14px 20px;
  border-radius: 14px;
  background: #030712;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 25px 35px -5px rgba(0, 0, 0, 0.4), 0 10px 15px -5px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 5px solid var(--accent-gold);
  animation: slideInToast 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s ease;
}

.toast.toast-success {
  border-left-color: var(--accent-emerald);
}

.toast.toast-error {
  border-left-color: #ef4444;
}

.toast.toast-info {
  border-left-color: var(--accent-blue);
}

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

/* Print Styles for Reports */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  header, footer, #role-switcher-banner, .no-print {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
  .card-elevate, .glass-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}

/* Responsive Mobile Drawer & Touch Enhancements */
@media (max-width: 767px) {
  #app-sidebar {
    max-width: 82vw;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  }
  
  .content-view {
    width: 100% !important;
    min-width: 0 !important;
  }

  /* Smooth momentum scrolling for responsive tables */
  .overflow-x-auto {
    -webkit-overflow-scrolling: touch;
  }
}

