/* ========================================
   MODERN THEME - ServiceRep Design System
   Aligned with website: www.servicesrep.com
   ======================================== */

/* ======================
   CSS CUSTOM PROPERTIES
   ====================== */

:root {
  /* Primary Colors - Website Aligned (Bright Blue) */
  --primary-blue: #3B82F6;        /* Main bright blue from website */
  --primary-blue-dark: #2563EB;   /* Darker shade for hover states */
  --primary-blue-light: #60A5FA;  /* Lighter shade for backgrounds */
  --primary-blue-lighter: #DBEAFE; /* Very light for selected states */

  /* Dark Navy - Keep for sidebar and specific uses */
  --navy-dark: #0F172A;           /* Website FAQ/footer background */
  --navy-medium: #1E293B;         /* Darker sections */
  --legacy-primary: #1F2260;      /* Original color - phase out gradually */

  /* Semantic Colors (Modern Palette) */
  --color-success: #10B981;       /* Green */
  --color-info: #06B6D4;          /* Cyan */
  --color-warning: #F59E0B;       /* Amber */
  --color-danger: #EF4444;        /* Red */

  /* Neutral Grays (Tailwind-inspired) */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Border Radius System */
  --radius-sm: 0.375rem;    /* 6px - buttons, inputs */
  --radius: 0.5rem;         /* 8px - default */
  --radius-md: 0.75rem;     /* 12px - cards */
  --radius-lg: 1rem;        /* 16px - images, feature cards */
  --radius-xl: 1.5rem;      /* 24px - hero elements */
  --radius-full: 9999px;    /* Full circle */

  /* Shadow System (Soft, Modern) */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Spacing System */
  --spacing-xs: 0.5rem;     /* 8px */
  --spacing-sm: 0.75rem;    /* 12px */
  --spacing-md: 1rem;       /* 16px */
  --spacing-lg: 1.5rem;     /* 24px */
  --spacing-xl: 2rem;       /* 32px */
  --spacing-2xl: 3rem;      /* 48px */
  --spacing-3xl: 4rem;      /* 64px */

  /* Typography Scale */
  --text-xs: 0.75rem;       /* 12px */
  --text-sm: 0.875rem;      /* 14px */
  --text-base: 1rem;        /* 16px */
  --text-lg: 1.125rem;      /* 18px */
  --text-xl: 1.25rem;       /* 20px */
  --text-2xl: 1.5rem;       /* 24px */
  --text-3xl: 1.875rem;     /* 30px */
  --text-4xl: 2.25rem;      /* 36px */

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ======================
   MODERN UTILITY CLASSES
   ====================== */

/* Border Radius Utilities */
.rounded-modern {
  border-radius: var(--radius) !important;
}

.rounded-modern-sm {
  border-radius: var(--radius-sm) !important;
}

.rounded-modern-md {
  border-radius: var(--radius-md) !important;
}

.rounded-modern-lg {
  border-radius: var(--radius-lg) !important;
}

.rounded-modern-xl {
  border-radius: var(--radius-xl) !important;
}

.rounded-modern-full {
  border-radius: var(--radius-full) !important;
}

/* Shadow Utilities */
.shadow-modern-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow-modern {
  box-shadow: var(--shadow) !important;
}

.shadow-modern-md {
  box-shadow: var(--shadow-md) !important;
}

.shadow-modern-lg {
  box-shadow: var(--shadow-lg) !important;
}

.shadow-modern-xl {
  box-shadow: var(--shadow-xl) !important;
}

.shadow-modern-none {
  box-shadow: none !important;
}

/* Hover Shadow Effect (Website Style) */
.shadow-hover {
  transition: var(--transition);
}

.shadow-hover:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Text Color Utilities */
.text-primary-blue {
  color: var(--primary-blue) !important;
}

.text-gray-600 {
  color: var(--gray-600) !important;
}

.text-gray-700 {
  color: var(--gray-700) !important;
}

.text-gray-900 {
  color: var(--gray-900) !important;
}

/* Background Color Utilities */
.bg-primary-blue {
  background-color: var(--primary-blue) !important;
}

.bg-primary-blue-light {
  background-color: var(--primary-blue-lighter) !important;
}

.bg-gray-50 {
  background-color: var(--gray-50) !important;
}

.bg-gray-100 {
  background-color: var(--gray-100) !important;
}


/* ======================
   GLOBAL ENHANCEMENTS
   ====================== */

/* Smooth Transitions for Interactive Elements */
a, button, input, select, textarea {
  transition: var(--transition);
}

/* Focus States (Accessibility) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}


/* ======================
   CARD MODERNIZATION
   ====================== */

.card-modern,
.card.modern {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card-modern:hover,
.card.modern:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-modern .card-header,
.card.modern .card-header {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--spacing-lg);
}

.card-modern .card-body,
.card.modern .card-body {
  padding: var(--spacing-xl);
}

.card-modern .card-footer,
.card.modern .card-footer {
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
  padding: var(--spacing-lg);
}

/* Override AdminLTE card defaults for modern look */
.card {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.card-outline {
  border-width: 1px;
}

.card-primary.card-outline {
  border-color: var(--primary-blue);
}

.card-header {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}


/* ======================
   SPACING ENHANCEMENTS
   ====================== */

/* Section Spacing (Website-like) */
.section-spacing {
  padding-top: var(--spacing-3xl);
  padding-bottom: var(--spacing-3xl);
}

.section-spacing-sm {
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

/* Component Gap */
.component-gap {
  gap: var(--spacing-lg);
}

.component-gap-sm {
  gap: var(--spacing-md);
}


/* ======================
   TYPOGRAPHY ENHANCEMENTS
   ====================== */

/* Headings (Website Style) */
h1, .h1 {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: var(--spacing-lg);
}

h2, .h2 {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  line-height: 1.3;
  color: var(--gray-900);
  margin-bottom: var(--spacing-md);
}

h3, .h3 {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  line-height: 1.4;
  color: var(--gray-900);
  margin-bottom: var(--spacing-md);
}

h4, .h4 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--gray-900);
}

h5, .h5 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--gray-900);
}

h6, .h6 {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--gray-900);
}

/* Body Text */
p, .body-text {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--gray-600);
}

/* Lead Text (Large Body) */
.text-lead {
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--gray-600);
}

/* Small Text */
.text-small {
  font-size: var(--text-sm);
  color: var(--gray-600);
}


/* ======================
   CONTAINER ENHANCEMENTS
   ====================== */

.container-modern {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}


/* ======================
   BADGE MODERNIZATION
   ====================== */

.badge-modern {
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  display: inline-flex;
  align-items: center;
}

.badge-modern-primary {
  background: var(--primary-blue-lighter);
  color: var(--primary-blue-dark);
}

.badge-modern-success {
  background: #DCFCE7;
  color: #16A34A;
}

.badge-modern-warning {
  background: #FEF3C7;
  color: #D97706;
}

.badge-modern-danger {
  background: #FEE2E2;
  color: #DC2626;
}


/* ======================
   ICON BADGE (Website Style)
   ====================== */

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-blue-lighter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

.icon-badge i {
  color: var(--primary-blue);
  font-size: 20px;
}

.icon-badge-lg {
  width: 56px;
  height: 56px;
}

.icon-badge-lg i {
  font-size: 24px;
}


/* ======================
   RESPONSIVE HELPERS
   ====================== */

@media (max-width: 768px) {
  :root {
    --text-4xl: 2rem;      /* Smaller on mobile */
    --text-3xl: 1.5rem;
    --spacing-3xl: 2.5rem;
  }

  .section-spacing {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
  }
}


/* ======================
   ADMIN LTE OVERRIDES
   ====================== */

/* Update AdminLTE elevation system to use modern shadows */
.elevation-1 {
  box-shadow: var(--shadow-sm) !important;
}

.elevation-2 {
  box-shadow: var(--shadow) !important;
}

.elevation-3 {
  box-shadow: var(--shadow-md) !important;
}

.elevation-4 {
  box-shadow: var(--shadow-lg) !important;
}

.elevation-5 {
  box-shadow: var(--shadow-xl) !important;
}