/* ============================================================
   LaunchPad by Sprint19 — WHMCS Design System Override
   Style: Glassmorphism | Colors: Indigo #6366F1 + Emerald #10B981
   Font: Plus Jakarta Sans | Applied over twenty-one template
   ============================================================ */

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

/* 2. CSS VARIABLES */
:root {
  --primary:       #6366F1;
  --secondary:     #818CF8;
  --success:       #10B981;
  --info:          #6366F1;
  --warning:       #F59E0B;
  --danger:        #EF4444;
  --light:         #F5F3FF;
  --dark:          #1E1B4B;
  --brand-primary: #6366F1;
  --brand-cta:     #10B981;
  --brand-bg:      #F5F3FF;
  --brand-text:    #1E1B4B;
  --brand-muted:   #6B7280;
}

/* 3. TYPOGRAPHY */
body,
.navbar, .btn,
h1, h2, h3, h4, h5, h6,
.card-title, input, select, textarea,
p, li, td, th, label, a {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

body {
  color: #374151 !important;
  line-height: 1.65 !important;
}

h1, h2, h3, h4, h5, h6 {
  color: #1E1B4B !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

/* 4. PAGE BACKGROUND */
.primary-bg-color {
  background: linear-gradient(135deg, #F5F3FF 0%, #EEF2FF 55%, #F0FDF4 100%) !important;
  min-height: 100vh !important;
}

/* 5. HEADER */
header.header {
  background: #fff !important;
  box-shadow: 0 1px 0 rgba(99,102,241,0.08), 0 4px 20px rgba(99,102,241,0.05) !important;
  border-bottom: 1px solid rgba(99,102,241,0.09) !important;
}

header.header .topbar {
  background: linear-gradient(90deg, #6366F1 0%, #818CF8 100%) !important;
  color: rgba(255,255,255,0.92) !important;
}

header.header .topbar .btn,
header.header .topbar .active-client .btn,
header.header .topbar .active-client .input-group-text {
  color: rgba(255,255,255,0.92) !important;
}

header.header .topbar .active-client .btn.btn-active-client span {
  border-bottom: 1px dashed rgba(255,255,255,0.55) !important;
}

header.header .navbar a {
  color: #374151 !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  transition: color 0.15s ease !important;
}

header.header .navbar a:hover { color: #6366F1 !important; }

header.header .search {
  border: 1.5px solid #E0E7FF !important;
  border-radius: 8px !important;
  background: #FAFAFF !important;
}

header.header .search:focus-within {
  border-color: #6366F1 !important;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12) !important;
}

/* 6. BREADCRUMB */
.master-breadcrumb {
  background: linear-gradient(90deg, #EEF2FF 0%, #F5F3FF 100%) !important;
  border-bottom: 1px solid rgba(99,102,241,0.07) !important;
}

.master-breadcrumb .breadcrumb-item.active { color: #6366F1 !important; font-weight: 600 !important; }
.master-breadcrumb .breadcrumb-item a     { color: #818CF8 !important; }
.master-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: #A5B4FC !important; }

/* 7. CARDS — Glassmorphism */
.card {
  border: 1px solid rgba(99,102,241,0.1) !important;
  border-radius: 14px !important;
  box-shadow: 0 1px 3px rgba(99,102,241,0.05), 0 8px 24px rgba(99,102,241,0.08) !important;
  background: rgba(255,255,255,0.88) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease !important;
  overflow: hidden !important;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(99,102,241,0.1), 0 16px 40px rgba(99,102,241,0.12) !important;
  transform: translateY(-1px) !important;
}

.card-header {
  background: linear-gradient(90deg, rgba(99,102,241,0.05) 0%, rgba(129,140,248,0.02) 100%) !important;
  border-bottom: 1px solid rgba(99,102,241,0.09) !important;
  font-weight: 600 !important;
  color: #1E1B4B !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.01em !important;
}

.card-title { color: #1E1B4B !important; font-weight: 700 !important; }

/* Bootstrap 3 panels (used in some WHMCS pages) */
.panel {
  border: 1px solid rgba(99,102,241,0.11) !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 12px rgba(99,102,241,0.07) !important;
  overflow: hidden !important;
}

.panel-heading {
  background: linear-gradient(90deg, rgba(99,102,241,0.06) 0%, rgba(129,140,248,0.03) 100%) !important;
  border-bottom: 1px solid rgba(99,102,241,0.1) !important;
  font-weight: 600 !important;
  color: #1E1B4B !important;
  border-radius: 13px 13px 0 0 !important;
}

.panel-default > .panel-heading { color: #1E1B4B !important; }

/* 8. BUTTONS */
.btn {
  border-radius: 8px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  transition: all 0.18s ease !important;
}

.btn-primary {
  background: linear-gradient(135deg, #6366F1 0%, #818CF8 100%) !important;
  border-color: #6366F1 !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(99,102,241,0.28) !important;
}

.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%) !important;
  border-color: #4F46E5 !important;
  box-shadow: 0 4px 16px rgba(99,102,241,0.38) !important;
  transform: translateY(-1px) !important;
  color: #fff !important;
}

.btn-success {
  background: linear-gradient(135deg, #10B981 0%, #34D399 100%) !important;
  border-color: #10B981 !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(16,185,129,0.28) !important;
}

.btn-success:hover, .btn-success:focus {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%) !important;
  box-shadow: 0 4px 16px rgba(16,185,129,0.38) !important;
  transform: translateY(-1px) !important;
  color: #fff !important;
}

.btn-default, .btn-secondary {
  background: #fff !important;
  border: 1.5px solid #E0E7FF !important;
  color: #6366F1 !important;
  font-weight: 500 !important;
}

.btn-default:hover, .btn-secondary:hover {
  background: #F5F3FF !important;
  border-color: #6366F1 !important;
  color: #4F46E5 !important;
}

.btn-info {
  background: linear-gradient(135deg, #6366F1 0%, #818CF8 100%) !important;
  border-color: #6366F1 !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(99,102,241,0.25) !important;
}

/* 9. FORM INPUTS */
.form-control {
  border: 1.5px solid #E0E7FF !important;
  border-radius: 8px !important;
  color: #1E1B4B !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.form-control:focus {
  border-color: #6366F1 !important;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.13) !important;
  outline: none !important;
}

.form-control::placeholder { color: #9CA3AF !important; }

.input-group-text {
  border: 1.5px solid #E0E7FF !important;
  background: #F5F3FF !important;
  color: #6366F1 !important;
  font-weight: 500 !important;
}

/* 10. LINKS */
a { color: #6366F1 !important; transition: color 0.14s ease !important; }
a:hover { color: #4F46E5 !important; text-decoration: none !important; }

/* Nav links — don't override navbar-brand or active */
.navbar-brand { color: #1E1B4B !important; font-weight: 700 !important; }

/* 11. BADGES */
.badge-primary { background: #6366F1 !important; }
.badge-success { background: #10B981 !important; }
.badge-info    { background: #818CF8 !important; }
.badge-warning { background: #F59E0B !important; }
.badge-danger  { background: #EF4444 !important; }

/* 12. STATUS LABELS */
.product-status-active { color: #10B981 !important; font-weight: 600 !important; }

/* 13. TABLES */
.table thead th {
  background: linear-gradient(90deg, #F5F3FF 0%, #EEF2FF 100%) !important;
  color: #1E1B4B !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  border-bottom: 2px solid rgba(99,102,241,0.12) !important;
}

.table-striped tbody tr:nth-of-type(odd) { background: rgba(99,102,241,0.018) !important; }
.table tbody tr:hover { background: rgba(99,102,241,0.035) !important; }

/* 14. LIST GROUP */
.list-group-item {
  border: none !important;
  border-bottom: 1px solid rgba(99,102,241,0.07) !important;
  padding: 11px 16px !important;
  transition: background 0.14s ease !important;
  font-weight: 500 !important;
  color: #374151 !important;
}

.list-group-item:first-child { border-radius: 0 !important; }
.list-group-item:last-child  { border-bottom: none !important; }

.list-group-item:hover {
  background: rgba(99,102,241,0.045) !important;
  color: #6366F1 !important;
  cursor: pointer !important;
}

/* 15. ALERTS */
.alert { border-radius: 10px !important; }

.alert-info {
  background: rgba(99,102,241,0.06) !important;
  border: 1px solid rgba(99,102,241,0.18) !important;
  color: #1E1B4B !important;
}

.alert-success {
  background: rgba(16,185,129,0.06) !important;
  border: 1px solid rgba(16,185,129,0.2) !important;
  color: #064E3B !important;
}

.alert-warning {
  background: rgba(245,158,11,0.07) !important;
  border: 1px solid rgba(245,158,11,0.22) !important;
}

.alert-danger {
  background: rgba(239,68,68,0.06) !important;
  border: 1px solid rgba(239,68,68,0.2) !important;
}

/* 16. FOOTER */
footer {
  background: #fff !important;
  border-top: 1px solid rgba(99,102,241,0.09) !important;
  color: #6B7280 !important;
  font-size: 0.875rem !important;
}

footer a { color: #818CF8 !important; }

/* 17. DROPDOWN MENUS */
.dropdown-menu {
  border: 1px solid rgba(99,102,241,0.1) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(99,102,241,0.12) !important;
  padding: 6px !important;
}

.dropdown-item:hover, .dropdown-item:focus {
  background: rgba(99,102,241,0.06) !important;
  color: #6366F1 !important;
  border-radius: 7px !important;
}

.dropdown-item.active, .dropdown-item:active {
  background: #6366F1 !important;
  color: #fff !important;
  border-radius: 7px !important;
}

/* 18. PAGINATION */
.pagination > li > a,
.pagination > li > span {
  color: #6366F1 !important;
  border-color: #E0E7FF !important;
  border-radius: 7px !important;
  margin: 0 2px !important;
  transition: all 0.14s ease !important;
}

.pagination > .active > a,
.pagination > .active > span {
  background: #6366F1 !important;
  border-color: #6366F1 !important;
  color: #fff !important;
}

.pagination > li > a:hover {
  background: #F5F3FF !important;
  color: #4F46E5 !important;
  border-color: #C7D2FE !important;
}

/* 19. MODAL */
.modal-content {
  border: none !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(30,27,75,0.18) !important;
}

.modal-header {
  background: linear-gradient(90deg, #6366F1 0%, #818CF8 100%) !important;
  color: #fff !important;
  border-radius: 16px 16px 0 0 !important;
  border-bottom: none !important;
}

.modal-title { color: #fff !important; font-weight: 700 !important; }
.modal-header .close { color: #fff !important; opacity: 0.8 !important; }

/* 20. HOMEPAGE DOMAIN SEARCH */
.homepage-domain-search-wrap .input-group .form-control,
.domain-search-form .form-control,
#domain-search .form-control {
  height: 50px !important;
  font-size: 1rem !important;
  border-right: none !important;
  border-radius: 10px 0 0 10px !important;
}

.homepage-domain-search-wrap .input-group .btn,
.domain-search-form .btn,
#domain-search .btn {
  height: 50px !important;
  padding: 0 24px !important;
  border-radius: 0 10px 10px 0 !important;
  font-size: 1rem !important;
}

/* 21. LABEL */
label {
  font-weight: 600 !important;
  color: #374151 !important;
  font-size: 0.9rem !important;
  margin-bottom: 4px !important;
}

/* 22. PRICE / AMOUNTS */
.price, .pricing-price, .currency-text { color: #10B981 !important; font-weight: 700 !important; }

/* 23. NAV TABS */
.nav-tabs .nav-link.active {
  border-bottom: 2px solid #6366F1 !important;
  color: #6366F1 !important;
  font-weight: 600 !important;
}

.nav-tabs .nav-link:hover { color: #6366F1 !important; }

/* 24. CHECKBOX / RADIO Polish */
.custom-control-input:checked ~ .custom-control-label::before {
  background: #6366F1 !important;
  border-color: #6366F1 !important;
}

/* 25. ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

*:focus-visible {
  outline: 2px solid #6366F1 !important;
  outline-offset: 2px !important;
  border-radius: 4px !important;
}
