/* SpectraHost WHMCS Custom Theme */
/* Updated to match new SpectraDigital-inspired design */

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

:root {
  /* Primary Brand Colors - Matching New Design */
  --brand-primary: 243 75% 59%;        /* #6366f1 - Indigo */
  --brand-secondary: 178 100% 38%;     /* #00C2A8 - Teal */
  --brand-accent: 34 100% 61%;         /* #FFB03A - Amber */
  
  /* Neutral Scale (Slate) */
  --neutral-50: 210 40% 98%;
  --neutral-100: 210 40% 96%;
  --neutral-200: 214 32% 91%;
  --neutral-300: 213 27% 84%;
  --neutral-400: 215 20% 65%;
  --neutral-500: 215 16% 47%;
  --neutral-600: 215 19% 35%;
  --neutral-700: 215 25% 27%;
  --neutral-800: 217 33% 17%;
  --neutral-900: 222 47% 11%;          /* Dark navy #1a1f2e */
  
  /* Shadows */
  --shadow-soft: 0 2px 8px -2px hsl(222 47% 11% / 0.06);
  --shadow-card: 0 4px 20px -4px hsl(222 47% 11% / 0.08);
  --shadow-elegant: 0 20px 60px -10px hsl(222 47% 11% / 0.1);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: hsl(var(--neutral-50));
  color: hsl(var(--neutral-700));
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: hsl(var(--neutral-900));
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

/* Section Label - SpectraDigital Style */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--brand-primary));
  margin-bottom: 0.75rem;
}

/* Header Styling */
.navbar-brand img {
  height: 40px;
  width: auto;
}

.navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--neutral-200));
  box-shadow: var(--shadow-soft);
  padding: 1rem 0;
}

.navbar-nav .nav-link {
  color: hsl(var(--neutral-600));
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: var(--transition-smooth);
}

.navbar-nav .nav-link:hover {
  color: hsl(var(--neutral-900));
}

/* Dropdown Styling */
.dropdown-menu {
  border: 1px solid hsl(var(--neutral-200));
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 0.5rem;
}

.dropdown-item {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: hsl(var(--neutral-600));
  transition: var(--transition-smooth);
}

.dropdown-item:hover {
  background: hsl(var(--neutral-100));
  color: hsl(var(--neutral-900));
}

.dropdown-item i {
  color: hsl(var(--brand-primary));
}

/* Buttons - Dark Primary Style */
.btn-primary {
  background: hsl(var(--neutral-900));
  border: none;
  color: white;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background: hsl(var(--neutral-800));
  transform: translateY(-1px);
}

.btn-primary:focus {
  box-shadow: 0 0 0 3px hsl(var(--neutral-900) / 0.2);
}

.btn-outline-primary {
  border: 2px solid hsl(var(--neutral-300));
  color: hsl(var(--neutral-700));
  background: transparent;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.btn-outline-primary:hover {
  background: hsl(var(--neutral-100));
  border-color: hsl(var(--neutral-400));
  color: hsl(var(--neutral-900));
}

.btn-secondary {
  background: hsl(var(--brand-primary));
  border: none;
  color: white;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: hsl(243 75% 50%);
}

/* Cards */
.card {
  border: 1px solid hsl(var(--neutral-200));
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  background: white;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.card:hover {
  box-shadow: var(--shadow-card);
}

.card-header {
  background: white;
  border-bottom: 1px solid hsl(var(--neutral-200));
  font-weight: 600;
  color: hsl(var(--neutral-900));
  padding: 1.25rem 1.5rem;
}

.card-body {
  padding: 1.5rem;
}

/* Stats Bar */
.stats-bar {
  background: hsl(var(--neutral-900));
  padding: 3rem 0;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--neutral-400));
}

/* Hero Section */
.hero-section {
  background: white;
  padding: 5rem 0;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: hsl(var(--neutral-900));
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-section .lead {
  font-size: 1.25rem;
  color: hsl(var(--neutral-500));
  max-width: 600px;
}

/* Forms */
.form-control {
  border: 2px solid hsl(var(--neutral-200));
  border-radius: 8px;
  padding: 12px 16px;
  transition: var(--transition-smooth);
  background: white;
  font-size: 1rem;
}

.form-control:focus {
  border-color: hsl(var(--brand-primary));
  box-shadow: 0 0 0 3px hsl(var(--brand-primary) / 0.1);
  outline: none;
}

.form-label {
  font-weight: 500;
  color: hsl(var(--neutral-700));
  margin-bottom: 8px;
}

/* Tables */
.table {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.table thead th {
  background: hsl(var(--neutral-50));
  border: none;
  font-weight: 600;
  color: hsl(var(--neutral-700));
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table tbody td {
  border-color: hsl(var(--neutral-200));
  padding: 1rem 1.5rem;
  vertical-align: middle;
}

.table tbody tr:hover {
  background: hsl(var(--neutral-50));
}

/* Sidebar */
.sidebar .card {
  border: 1px solid hsl(var(--neutral-200));
}

.sidebar .nav-link {
  color: hsl(var(--neutral-600));
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  margin: 0.25rem 0.75rem;
  transition: var(--transition-smooth);
  font-weight: 500;
}

.sidebar .nav-link:hover {
  background: hsl(var(--neutral-100));
  color: hsl(var(--neutral-900));
}

.sidebar .nav-link.active {
  background: hsl(var(--neutral-900));
  color: white;
}

.sidebar .nav-link.active i {
  color: white;
}

.sidebar .nav-link i {
  color: hsl(var(--brand-primary));
  width: 1.25rem;
}

/* Alerts */
.alert {
  border: none;
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.alert-success {
  background: hsl(142 76% 96%);
  color: hsl(142 76% 26%);
  border-left: 4px solid hsl(142 76% 46%);
}

.alert-danger {
  background: hsl(0 84% 96%);
  color: hsl(0 84% 26%);
  border-left: 4px solid hsl(0 84% 46%);
}

.alert-warning {
  background: hsl(45 93% 96%);
  color: hsl(45 93% 26%);
  border-left: 4px solid hsl(45 93% 46%);
}

.alert-info {
  background: hsl(204 100% 96%);
  color: hsl(204 100% 26%);
  border-left: 4px solid hsl(204 100% 46%);
}

/* Product/Pricing Cards */
.product-card {
  background: white;
  border-radius: 16px;
  border: 1px solid hsl(var(--neutral-200));
  transition: var(--transition-smooth);
  overflow: hidden;
}

.product-card:hover {
  border-color: hsl(var(--neutral-300));
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.product-card.popular {
  position: relative;
  border-color: hsl(var(--brand-primary));
  box-shadow: var(--shadow-card);
}

.product-card.popular::before {
  content: 'Most Popular';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: hsl(var(--neutral-900));
  color: white;
  text-align: center;
  padding: 0.5rem;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-card.popular .card-body {
  padding-top: 3.5rem;
}

/* Price Display */
.price-display {
  font-size: 2.5rem;
  font-weight: 700;
  color: hsl(var(--neutral-900));
  line-height: 1;
}

.price-period {
  font-size: 1rem;
  color: hsl(var(--neutral-500));
  font-weight: 500;
}

/* Feature Lists */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  color: hsl(var(--neutral-600));
  border-bottom: 1px solid hsl(var(--neutral-100));
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: '✓';
  color: hsl(var(--brand-secondary));
  font-weight: bold;
  margin-right: 12px;
  font-size: 1rem;
}

/* Service/Feature Cards Grid */
.service-card {
  background: white;
  border: 1px solid hsl(var(--neutral-200));
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.service-card:hover {
  border-color: hsl(var(--neutral-300));
  box-shadow: var(--shadow-card);
}

.service-card .icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--neutral-100));
  border-radius: 12px;
  margin: 0 auto 1rem;
  color: hsl(var(--brand-primary));
  font-size: 1.5rem;
}

.service-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: hsl(var(--neutral-500));
  font-size: 0.9375rem;
  margin: 0;
}

/* About/Trust Section */
.about-section {
  padding: 5rem 0;
  background: hsl(var(--neutral-50));
}

.about-section .logo-icon {
  width: 3rem;
  height: 3rem;
  background: hsl(var(--neutral-900));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--neutral-600));
  font-weight: 500;
}

.feature-badge .check {
  color: hsl(var(--brand-secondary));
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: white;
}

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Badges */
.badge {
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
}

.badge.bg-success {
  background: hsl(142 76% 46%) !important;
}

.badge.bg-danger {
  background: hsl(0 84% 60%) !important;
}

.badge.bg-warning {
  background: hsl(45 93% 47%) !important;
  color: hsl(45 93% 15%);
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1.5rem;
}

.breadcrumb-item a {
  color: hsl(var(--brand-primary));
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: hsl(243 75% 50%);
}

.breadcrumb-item.active {
  color: hsl(var(--neutral-500));
}

/* Footer */
.footer {
  background: hsl(var(--neutral-900));
  color: hsl(var(--neutral-400));
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer h5 {
  color: white;
  font-weight: 600;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer a {
  color: hsl(var(--neutral-400));
  text-decoration: none;
  transition: var(--transition-smooth);
  font-size: 0.9375rem;
}

.footer a:hover {
  color: hsl(var(--brand-primary));
}

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer .logo-section {
  margin-bottom: 1rem;
}

.footer .logo-section img {
  height: 40px;
  filter: brightness(0) invert(1);
}

.footer .tagline {
  color: hsl(var(--neutral-500));
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.footer hr {
  border-color: hsl(var(--neutral-800));
  margin: 2rem 0;
}

.footer .bottom-bar {
  font-size: 0.875rem;
}

.footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: hsl(var(--neutral-800));
  color: hsl(var(--neutral-400));
  margin-right: 0.75rem;
  transition: var(--transition-smooth);
}

.footer .social-links a:hover {
  background: hsl(var(--brand-primary));
  color: white;
}

/* Responsive Design */
@media (max-width: 991px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .stat-value {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .stats-bar {
    padding: 2rem 0;
  }
  
  .stat-value {
    font-size: 1.75rem;
  }
  
  .card {
    border-radius: 12px;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.75rem;
  }
  
  .price-display {
    font-size: 2rem;
  }
  
  .feature-badges {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: hsl(var(--neutral-100));
}

::-webkit-scrollbar-thumb {
  background: hsl(var(--neutral-300));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--neutral-400));
}

/* Utility Classes */
.text-primary {
  color: hsl(var(--brand-primary)) !important;
}

.text-secondary {
  color: hsl(var(--brand-secondary)) !important;
}

.text-muted {
  color: hsl(var(--neutral-500)) !important;
}

.bg-primary {
  background: hsl(var(--brand-primary)) !important;
}

.bg-dark {
  background: hsl(var(--neutral-900)) !important;
}

.bg-light {
  background: hsl(var(--neutral-50)) !important;
}
