/* =============================================================
   HORIZON CUMULUS — custom.css
   Bridge between Bootstrap 3 / WHMCS Six theme and the
   Horizon design system (tokens, base, components, layout).
   Loaded AFTER horizon-tokens / base / components / layout.
   ============================================================= */


/* =============================================================
   1. BODY & GLOBAL
   ============================================================= */

html {
  font-size: 15px;
}

body {
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Override Bootstrap default font stack everywhere */
body,
input,
button,
select,
textarea,
.form-control,
.btn {
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Headings: Poppins */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Poppins', 'Work Sans', sans-serif;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}

h1, .h1 { font-weight: 700; }
h2, .h2 { font-weight: 700; }
h3, .h3 { font-weight: 600; }
h4, .h4 { font-weight: 600; }
h5, .h5 { font-weight: 600; }
h6, .h6 { font-weight: 600; }

/* Links */
a {
  color: var(--accent);
  transition: color var(--transition);
}

a:hover,
a:focus {
  color: var(--green);
  text-decoration: none;
}

a:focus {
  outline: 2px solid rgba(30, 115, 190, 0.3);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: rgba(30, 115, 190, 0.15);
  color: var(--text);
}

/* Horizontal rules */
hr {
  border-top-color: var(--border);
}


/* =============================================================
   2. HIDE ORIGINAL SIX ELEMENTS
   These are replaced by Horizon custom components:
   .top-bar, .nav, .hero, .footer
   ============================================================= */

#header {
  display: none !important;
}

#main-menu {
  display: none !important;
}

#home-banner {
  display: none !important;
}

.home-shortcuts {
  display: none !important;
}

section#footer {
  display: none !important;
}


/* =============================================================
   3. MAIN BODY ADJUSTMENTS
   Fixed nav offset: topbar ~34px + nav ~72px + 1px = 107px
   ============================================================= */

section#main-body {
  padding-top: 160px; /* topbar(34) + nav(72) + client-subnav(~50) + spacing */
  min-height: calc(100vh - 400px);
}

/* On homepage the hero already handles spacing */
body.homepage section#main-body {
  padding-top: 0;
}

/* When not logged in (no client-subnav) */
body:not(.logged-in) section#main-body {
  padding-top: 107px;
}

.container {
  max-width: 1200px;
}

/* Tighten up Bootstrap row gutters where needed */
.main-content {
  padding-bottom: 40px;
}


/* =============================================================
   4. BOOTSTRAP PANEL OVERRIDES
   ============================================================= */

.panel {
  border-radius: 0;
  border: 1px solid var(--border);
  box-shadow: none;
  background: var(--card);
  margin-bottom: 20px;
  transition: box-shadow var(--transition);
}

/* Mixed-radius signature — alternating panels get rounded */
.panel:nth-child(even) {
  border-radius: 12px;
}

.panel-default {
  border-color: var(--border);
}

.panel-default > .panel-heading {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  padding: 14px 22px;
}

.panel-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  line-height: 1.4;
}

.panel-title a {
  color: var(--dark);
}

.panel-title a:hover {
  color: var(--accent);
}

.panel-body {
  padding: 20px 22px;
}

.panel-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 12px 22px;
}


/* =============================================================
   5. PANEL ACCENT COLORS (Client area home panels)
   ============================================================= */

.panel-accent-blue {
  border-top: 8px solid var(--accent);
}

.panel-accent-green {
  border-top: 8px solid var(--green);
}

.panel-accent-red {
  border-top: 8px solid var(--red);
}

.panel-accent-gold {
  border-top: 8px solid var(--orange);
}

.bg-color-blue {
  background: var(--accent) !important;
  color: #fff;
}

.bg-color-green {
  background: var(--green) !important;
  color: #fff;
}

.bg-color-red {
  background: var(--red) !important;
  color: #fff;
}

.bg-color-gold {
  background: var(--orange) !important;
  color: #fff;
}


/* =============================================================
   6. TILES (Homepage dashboard)
   ============================================================= */

.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.tiles .tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 8px solid var(--accent);
  padding: 22px 20px;
  position: relative;
  flex: 1 1 200px;
  min-width: 180px;
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.tiles .tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 46, 63, 0.10);
}

.tiles .tile .icon {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 8px;
  display: block;
}

.tiles .tile .stat {
  font-family: 'Archivo Black', 'Poppins', sans-serif;
  font-size: 1.6rem;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.tiles .tile .title {
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.tiles .tile .highlight {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  opacity: 0;
  transition: opacity var(--transition);
}

.tiles .tile:hover .highlight {
  opacity: 1;
}


/* =============================================================
   7. LIST GROUP OVERRIDES
   ============================================================= */

.list-group-item {
  border-color: var(--border);
  font-family: 'Work Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--text);
  transition: background var(--transition);
}

.list-group-item:first-child {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.list-group-item:last-child {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.list-group-item:hover {
  background: var(--bg);
}

.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.badge {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}


/* =============================================================
   8. BUTTON OVERRIDES
   ============================================================= */

.btn {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all var(--transition);
  outline: none;
  letter-spacing: 0.01em;
}

.btn:focus {
  outline: 2px solid rgba(30, 115, 190, 0.3);
  outline-offset: 2px;
}

/* Primary — green pill */
.btn-primary {
  background: var(--green);
  border-color: var(--green);
  border-radius: 60px;
  color: #fff;
  padding: 8px 24px;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
  background: var(--green-hover);
  border-color: var(--green-hover);
  color: #fff;
  box-shadow: 0 4px 14px rgba(3, 168, 78, 0.3);
}

.btn-primary:active:focus,
.btn-primary.active:focus {
  background: var(--green-hover);
  border-color: var(--green-hover);
}

/* Default */
.btn-default {
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 4px;
  color: var(--text);
}

.btn-default:hover,
.btn-default:focus,
.btn-default:active {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text);
}

/* Success */
.btn-success {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  border-radius: 4px;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
  background: var(--green-hover);
  border-color: var(--green-hover);
  color: #fff;
}

/* Danger */
.btn-danger {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  border-radius: 4px;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

/* Warning */
.btn-warning {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  border-radius: 4px;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
  background: #d97706;
  border-color: #d97706;
  color: #fff;
}

/* Info */
.btn-info {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  border-radius: 4px;
}

.btn-info:hover,
.btn-info:focus,
.btn-info:active {
  background: #1a65a8;
  border-color: #1a65a8;
  color: #fff;
}

/* Large buttons */
.btn-lg {
  padding: 12px 30px;
  font-size: 0.95rem;
  border-radius: 60px;
}

/* Small / extra-small */
.btn-sm {
  padding: 5px 14px;
  font-size: 0.78rem;
}

.btn-xs {
  padding: 2px 10px;
  font-size: 0.72rem;
}


/* =============================================================
   9. FORM CONTROLS
   ============================================================= */

.form-control {
  border: 1px solid var(--border);
  font-family: 'Work Sans', sans-serif;
  border-radius: 0;
  box-shadow: none;
  color: var(--text);
  font-size: 0.92rem;
  padding: 8px 14px;
  height: auto;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.1);
  outline: none;
}

.form-control::-webkit-input-placeholder { color: var(--muted); opacity: 0.6; }
.form-control::-moz-placeholder          { color: var(--muted); opacity: 0.6; }
.form-control:-ms-input-placeholder       { color: var(--muted); opacity: 0.6; }
.form-control::placeholder                { color: var(--muted); opacity: 0.6; }

.input-lg,
.form-control.input-lg {
  padding: 14px 20px;
  font-size: 1rem;
}

.input-group-addon {
  background: var(--bg);
  border-color: var(--border);
  color: var(--muted);
  font-family: 'Work Sans', sans-serif;
  border-radius: 0;
}

/* Checkbox / radio labels */
.checkbox label,
.radio label {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.88rem;
}

/* Control labels */
label,
.control-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--dark);
  margin-bottom: 6px;
}

.help-block {
  color: var(--muted);
  font-size: 0.8rem;
}


/* =============================================================
   10. ALERTS
   ============================================================= */

.alert {
  border-radius: 0;
  border: none;
  border-left: 4px solid;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.9rem;
  padding: 14px 20px;
}

.alert-danger,
.alert-error {
  border-left-color: var(--red);
  background: rgba(239, 68, 68, 0.06);
  color: #991b1b;
}

.alert-success {
  border-left-color: var(--green);
  background: rgba(3, 168, 78, 0.06);
  color: #065f24;
}

.alert-warning {
  border-left-color: var(--orange);
  background: rgba(245, 158, 11, 0.06);
  color: #7c4a03;
}

.alert-info {
  border-left-color: var(--accent);
  background: rgba(30, 115, 190, 0.06);
  color: #0e4d7a;
}

.alert a {
  font-weight: 600;
  text-decoration: underline;
}


/* =============================================================
   11. TABLES
   ============================================================= */

.table {
  font-family: 'Work Sans', sans-serif;
}

.table > thead > tr > th {
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 2px solid var(--border);
  font-weight: 600;
  padding: 10px 12px;
  white-space: nowrap;
}

.table > tbody > tr > td {
  vertical-align: middle;
  border-color: var(--border);
  font-size: 0.9rem;
  padding: 10px 12px;
  color: var(--text);
}

.table > tbody > tr > td a {
  font-weight: 500;
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background: var(--bg);
}

.table-striped > tbody > tr:nth-of-type(even) {
  background: var(--card);
}

.table-hover > tbody > tr:hover {
  background: rgba(30, 115, 190, 0.04);
}

.table-bordered {
  border-color: var(--border);
}

.table-bordered > thead > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > tbody > tr > th,
.table-bordered > tbody > tr > td {
  border-color: var(--border);
}

/* Responsive table wrapper */
.table-responsive {
  border-color: var(--border);
}


/* =============================================================
   12. SIDEBAR OVERRIDES
   ============================================================= */

.panel-sidebar,
.sidebar .panel {
  border: 1px solid var(--border);
  border-radius: 0;
}

.panel-sidebar .panel-heading,
.sidebar .panel .panel-heading {
  background: var(--dark);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  border-bottom: none;
  padding: 14px 18px;
}

.panel-sidebar .panel-title,
.sidebar .panel .panel-title {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Poppins', sans-serif;
}

.sidebar .list-group-item {
  padding: 10px 16px;
  font-size: 0.85rem;
  border-color: var(--border);
}

.sidebar .list-group-item:hover {
  background: var(--bg);
  color: var(--accent);
}

.sidebar .list-group-item.active,
.sidebar .list-group-item.active:hover,
.sidebar .list-group-item.active:focus {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.sidebar .list-group-item .badge {
  background: var(--accent);
}

.sidebar .list-group-item.active .badge {
  background: #fff;
  color: var(--accent);
}


/* =============================================================
   13. BREADCRUMB
   ============================================================= */

.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  border-radius: 0;
}

.breadcrumb > li {
  color: var(--text);
}

.breadcrumb > li a {
  color: var(--accent);
}

.breadcrumb > li a:hover {
  color: var(--green);
}

.breadcrumb > li + li::before {
  color: var(--muted);
  padding: 0 6px;
}

.breadcrumb > .active {
  color: var(--muted);
}


/* =============================================================
   14. PAGE HEADER
   ============================================================= */

.header-lined {
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  padding-bottom: 16px;
}

.header-lined h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--dark);
  margin: 0;
}

.header-lined h1 small {
  font-family: 'Work Sans', sans-serif;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.55em;
  display: block;
  margin-top: 4px;
}

.page-header {
  border-bottom-color: var(--border);
}


/* =============================================================
   15. MODAL OVERRIDES
   ============================================================= */

.modal-content {
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(37, 46, 63, 0.25);
  overflow: hidden;
}

.modal-header {
  background: var(--dark);
  color: #fff;
  border-bottom: none;
  padding: 18px 24px;
}

.modal-header .close {
  color: #fff;
  opacity: 0.6;
  text-shadow: none;
  font-size: 1.4rem;
}

.modal-header .close:hover {
  opacity: 1;
}

.modal-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
}

.modal-body {
  font-family: 'Work Sans', sans-serif;
  padding: 24px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.modal-footer {
  border-top: 1px solid var(--border);
  padding: 14px 24px;
  background: var(--bg);
}

.modal-backdrop.in {
  opacity: 0.5;
}


/* =============================================================
   16. KNOWLEDGE BASE SEARCH (Homepage)
   ============================================================= */

.home-kb-search {
  margin: 24px 0;
}

.home-kb-search .form-control {
  border: 1px solid var(--border);
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
  padding: 12px 18px;
}

.home-kb-search .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.1);
}

.home-kb-search .btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  border-radius: 0;
}

.home-kb-search .btn:hover {
  background: #1a65a8;
}


/* =============================================================
   17. PAGINATION
   ============================================================= */

.pagination > li > a,
.pagination > li > span {
  color: var(--accent);
  border-color: var(--border);
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  padding: 6px 14px;
  transition: all var(--transition);
}

.pagination > li > a:hover,
.pagination > li > a:focus {
  background: var(--bg);
  color: var(--accent);
  border-color: var(--border);
}

.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > a:focus,
.pagination > .active > span,
.pagination > .active > span:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pagination > .disabled > a,
.pagination > .disabled > span {
  color: var(--muted);
  border-color: var(--border);
  background: var(--card);
}


/* =============================================================
   18. LABELS
   ============================================================= */

.label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.label-default {
  background: var(--muted);
}

.label-primary {
  background: var(--accent);
}

.label-success {
  background: var(--green);
}

.label-danger {
  background: var(--red);
}

.label-warning {
  background: var(--orange);
  color: #fff;
}

.label-info {
  background: var(--accent-light);
  color: #fff;
}


/* =============================================================
   19. LOGIN PAGE
   ============================================================= */

.login-container {
  max-width: 440px;
  margin: 0 auto;
  padding: 40px 0;
}

.login-container .panel {
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
}

.login-container .panel-heading {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 20px 22px;
  border-bottom: none;
}

.login-container .panel-heading .panel-title {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.login-container .panel-body {
  padding: 28px 30px;
}

.login-container .btn-primary {
  width: 100%;
  padding: 12px;
  font-size: 0.95rem;
}

.login-container .form-group {
  margin-bottom: 18px;
}

.login-container .panel-footer {
  text-align: center;
  font-size: 0.85rem;
}


/* =============================================================
   20. STORE / CART PAGES
   ============================================================= */

/* Product group headings */
.product-group h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

/* Product listing */
.products .product {
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}

.products .product:hover {
  box-shadow: 0 6px 20px rgba(37, 46, 63, 0.08);
  transform: translateY(-1px);
}

/* Order summary */
.order-summary {
  border: 1px solid var(--border);
  background: var(--card);
}

.order-summary th {
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

/* Cart total */
.cart-total {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--dark);
}

/* View cart buttons */
.order-btn,
.btn-order {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  border-radius: 60px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.order-btn:hover,
.btn-order:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
  color: #fff;
}

/* Pricing table adjustments */
.pricing .panel {
  transition: transform var(--transition), box-shadow var(--transition);
}

.pricing .panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(37, 46, 63, 0.10);
}

.pricing .panel .panel-heading {
  font-family: 'Poppins', sans-serif;
}

.pricing .panel .panel-body .price {
  font-family: 'Archivo Black', 'Poppins', sans-serif;
  color: var(--dark);
}


/* =============================================================
   21. RESPONSIVE
   ============================================================= */

/* Stats row — grid layout for stat cards */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

@media (max-width: 900px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .tiles {
    gap: 12px;
  }

  .tiles .tile {
    flex: 1 1 45%;
    min-width: 140px;
  }
}

@media (max-width: 768px) {
  section#main-body {
    padding-top: 80px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .panel-body {
    padding: 16px;
  }

  .sidebar {
    margin-top: 24px;
  }

  .header-lined h1 {
    font-size: 1.3rem;
  }

  .modal-body {
    padding: 18px;
  }

  .modal-header {
    padding: 14px 18px;
  }

  .login-container {
    padding: 20px 16px;
    max-width: 100%;
  }

  .table-responsive {
    border: 1px solid var(--border);
  }
}

@media (max-width: 500px) {
  .stats-row {
    grid-template-columns: 1fr;
  }

  .tiles {
    flex-direction: column;
  }

  .tiles .tile {
    flex: 1 1 100%;
    min-width: 0;
  }

  .btn-primary {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  h1, .h1 {
    font-size: 1.5rem;
  }

  h2, .h2 {
    font-size: 1.25rem;
  }

  .breadcrumb {
    font-size: 0.72rem;
  }

  .panel-default > .panel-heading {
    padding: 12px 16px;
  }
}


/* =============================================================
   22. ANNOUNCEMENT STYLING
   ============================================================= */

.announcement-single h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--dark);
}

.announcement-single .date {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.announcement-single blockquote {
  border-left: 4px solid var(--accent);
  background: rgba(30, 115, 190, 0.04);
  padding: 14px 20px;
  margin: 16px 0;
  font-style: italic;
  color: var(--text);
}

.announcement-single blockquote p {
  margin: 0;
}

/* Announcement list */
.announcements-list .list-group-item {
  border-color: var(--border);
}

.announcements-list .list-group-item .title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.announcements-list .list-group-item .date {
  font-size: 0.75rem;
  color: var(--muted);
}


/* =============================================================
   ADDITIONAL: Dropdown menus
   ============================================================= */

.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: 0 6px 20px rgba(37, 46, 63, 0.10);
  font-family: 'Work Sans', sans-serif;
  font-size: 0.88rem;
  padding: 6px 0;
}

.dropdown-menu > li > a {
  padding: 8px 18px;
  color: var(--text);
  transition: background var(--transition);
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  background: var(--bg);
  color: var(--accent);
}

.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover {
  background: var(--accent);
  color: #fff;
}

.dropdown-menu .divider {
  background-color: var(--border);
}


/* =============================================================
   ADDITIONAL: Nav-tabs & Nav-pills (WHMCS tabbed interfaces)
   ============================================================= */

.nav-tabs {
  border-bottom-color: var(--border);
}

.nav-tabs > li > a {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: 0;
  transition: color var(--transition);
}

.nav-tabs > li > a:hover {
  border-color: transparent;
  color: var(--accent);
  background: transparent;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  color: var(--dark);
  border-color: var(--border) var(--border) #fff;
  background: var(--card);
}

.nav-pills > li > a {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
  color: var(--text);
}

.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
  background: var(--accent);
  color: #fff;
}

.tab-content {
  padding: 20px 0;
}


/* =============================================================
   ADDITIONAL: Well, Jumbotron, Progress bars
   ============================================================= */

.well {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}

.jumbotron {
  background: var(--card);
  border-radius: 0;
}

.jumbotron h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

.progress {
  border-radius: 0;
  background: var(--bg);
  box-shadow: none;
  height: 8px;
  overflow: hidden;
}

.progress-bar {
  background: var(--accent);
  box-shadow: none;
}

.progress-bar-success { background: var(--green); }
.progress-bar-danger  { background: var(--red); }
.progress-bar-warning { background: var(--orange); }
.progress-bar-info    { background: var(--accent-light); }


/* =============================================================
   ADDITIONAL: Tooltip & Popover
   ============================================================= */

.tooltip-inner {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.78rem;
  background: var(--dark);
  border-radius: 4px;
  padding: 6px 12px;
}

.tooltip.top .tooltip-arrow    { border-top-color: var(--dark); }
.tooltip.bottom .tooltip-arrow { border-bottom-color: var(--dark); }
.tooltip.left .tooltip-arrow   { border-left-color: var(--dark); }
.tooltip.right .tooltip-arrow  { border-right-color: var(--dark); }

.popover {
  font-family: 'Work Sans', sans-serif;
  border-color: var(--border);
  border-radius: 0;
  box-shadow: 0 6px 20px rgba(37, 46, 63, 0.10);
}

.popover-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  background: var(--bg);
  border-bottom-color: var(--border);
}


/* =============================================================
   ADDITIONAL: Status indicators (WHMCS service statuses)
   ============================================================= */

.status-active,
.label-active {
  background: var(--green);
  color: #fff;
}

.status-pending,
.label-pending {
  background: var(--orange);
  color: #fff;
}

.status-suspended,
.label-suspended {
  background: var(--red);
  color: #fff;
}

.status-terminated,
.label-terminated {
  background: var(--muted);
  color: #fff;
}

.status-cancelled,
.label-cancelled {
  background: var(--muted);
  color: #fff;
}


/* =============================================================
   ADDITIONAL: Utility overrides
   ============================================================= */

.text-primary { color: var(--accent) !important; }
.text-success { color: var(--green) !important; }
.text-danger  { color: var(--red) !important; }
.text-warning { color: var(--orange) !important; }
.text-info    { color: var(--accent-light) !important; }
.text-muted   { color: var(--muted) !important; }

.bg-primary { background-color: var(--accent) !important; }
.bg-success { background-color: rgba(3, 168, 78, 0.08) !important; }
.bg-danger  { background-color: rgba(239, 68, 68, 0.08) !important; }
.bg-warning { background-color: rgba(245, 158, 11, 0.08) !important; }
.bg-info    { background-color: rgba(30, 115, 190, 0.08) !important; }


/* =============================================================
   ADDITIONAL: Print styles
   ============================================================= */

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .top-bar,
  .nav,
  .footer,
  .sidebar,
  .breadcrumb,
  .btn {
    display: none !important;
  }

  section#main-body {
    padding-top: 0;
  }

  .panel {
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
