/* JeeDrive Executive Design System - Warm Cream, Royal Blue, Subtle Orange & Dark Navy */

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

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Executive Color Palette */
  --brand-navy: #0A1329;
  --brand-navy-dark: #050A17;
  --brand-navy-card: #0F1A36;

  --brand-blue: #0556F3;
  --brand-blue-dark: #0042B3;
  --brand-blue-light: #EBF2FF;
  --brand-blue-glow: rgba(5, 86, 243, 0.28);

  --brand-orange: #F58220;
  --brand-orange-hover: #E07010;
  --brand-orange-light: #FFF5EC;
  --brand-orange-glow: rgba(245, 130, 32, 0.3);

  /* Very Light Orange / Warm Cream Background System */
  --brand-bg-cream: #FFF9F5;
  --brand-cream-soft: #FFF2E8;
  --brand-cream-card: #FFFFFF;

  --border-radius-sm: 10px;
  --border-radius-md: 14px;
  --border-radius-lg: 20px;
  --border-radius-xl: 26px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--brand-bg-cream);
  color: #1E293B;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
}

code,
pre,
.font-mono {
  font-family: var(--font-mono);
}

/* Premium Warm Glassmorphism & Card Elevation */
.glass-panel {
  background: var(--brand-cream-card);
  border: 1px solid #FDE3D0;
  box-shadow: 0 12px 35px -8px rgba(245, 130, 32, 0.07), 0 4px 14px rgba(5, 86, 243, 0.03);
  border-radius: var(--border-radius-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.glass-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px -10px rgba(245, 130, 32, 0.12), 0 6px 20px rgba(5, 86, 243, 0.06);
  border-color: #FCD0B1;
}

/* ── Admin Panel: Light Blue Cards (on dark navy backgrounds) ── */
.admin-dark-theme .glass-panel {
  background: linear-gradient(145deg, #0E1E3D 0%, #0F2240 50%, #0D1B35 100%);
  border: 1px solid rgba(56, 130, 246, 0.25);
  box-shadow: 0 4px 20px rgba(5, 86, 243, 0.08), 0 1px 4px rgba(0, 0, 0, 0.3);
}

.admin-dark-theme .glass-panel:hover {
  background: linear-gradient(145deg, #10244A 0%, #122A50 50%, #0F2040 100%);
  border-color: rgba(56, 180, 255, 0.4);
  box-shadow: 0 8px 30px rgba(5, 86, 243, 0.15), 0 2px 8px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
}

.glass-nav {
  background: rgba(255, 249, 245, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #FDE3D0;
  box-shadow: 0 4px 25px rgba(10, 19, 41, 0.05);
}

/* Gradient Text - Royal Blue to Subtle Orange */
.gradient-text {
  background: linear-gradient(135deg, #0556F3 0%, #F58220 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blue-text {
  color: #0556F3;
}

.orange-text {
  color: #F58220;
}

/* Buttons - Royal Blue & Vibrant Orange */
.btn-primary {
  background: linear-gradient(135deg, #0556F3 0%, #0042B3 100%);
  color: #FFFFFF;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: var(--border-radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 18px var(--brand-blue-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(5, 86, 243, 0.45);
}

.btn-orange {
  background: linear-gradient(135deg, #F58220 0%, #E07010 100%);
  color: #FFFFFF;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: var(--border-radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 18px var(--brand-orange-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(245, 130, 32, 0.5);
}

.btn-secondary {
  background: #FFF5EC;
  color: #0556F3;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--border-radius-md);
  border: 1.5px solid #FCD0B1;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13.5px;
}

.btn-secondary:hover {
  background: #FFEFE3;
  border-color: #F58220;
  color: #E07010;
  transform: translateY(-1px);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(239, 68, 68, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.btn-danger:hover {
  background: #DC2626;
  color: #FFFFFF;
}

/* Call Support Icon Button */
.support-call-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F58220 0%, #E07010 100%);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(245, 130, 32, 0.35);
  transition: all 0.25s ease;
}

.support-call-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(245, 130, 32, 0.55);
}

.support-call-btn::after {
  content: attr(aria-label);
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  background: #0A1329;
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 50;
}

.support-call-btn:hover::after {
  opacity: 1;
}

/* Toggle Switch */
.switch-container {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.switch-input {
  display: none;
}

.switch-track {
  width: 46px;
  height: 24px;
  background-color: #CBD5E1;
  border-radius: 12px;
  position: relative;
  transition: background-color 0.25s ease;
}

.switch-thumb {
  width: 18px;
  height: 18px;
  background-color: #FFFFFF;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 3px;
  transition: transform 0.25s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.switch-input:checked+.switch-track {
  background-color: #F58220;
}

.switch-input:checked+.switch-track .switch-thumb {
  transform: translateX(21px);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 10, 23, 0.85);
  backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  background: #0A1329;
  border: 1px solid rgba(253, 227, 208, 0.2);
  border-radius: var(--border-radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.85);
  color: #F8FAFC;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Badges */
.badge {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.02em;
}

.badge-true,
.badge-active,
.badge-approved,
.badge-completed,
.badge-verified,
.badge-resolved {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-false,
.badge-pending,
.badge-open {
  background: rgba(245, 130, 32, 0.15);
  color: #D97706;
  border: 1px solid rgba(245, 130, 32, 0.3);
}

.badge-rejected,
.badge-cancelled,
.badge-closed,
.badge-blocked,
.badge-suspended {
  background: rgba(239, 68, 68, 0.15);
  color: #DC2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Sidebar Active Item */
.sidebar-item-active {
  background: linear-gradient(90deg, rgba(245, 130, 32, 0.18) 0%, rgba(5, 86, 243, 0.05) 100%);
  color: #F58220 !important;
  font-weight: 700;
  border-left: 3.5px solid #F58220;
  box-shadow: inset 0 0 15px rgba(245, 130, 32, 0.08);
}

/* Inputs & Form Controls */
input,
select,
textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #0556F3 !important;
  box-shadow: 0 0 0 3px rgba(5, 86, 243, 0.2) !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #FFF5EC;
}

::-webkit-scrollbar-thumb {
  background: #FCD0B1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #F58220;
}