/* *****************************************************

    ** Custom Stylesheet **

    Any custom styling you want to apply should be
    defined here.

***************************************************** */

/* ============================================================
   Neqtor brand — light header + blue accents
   (overrides the HostSite theme; custom.css loads before
   theme/style.css, so brand rules use !important to win)
   ============================================================ */

/* Brand colour → blue. The theme reads these custom properties
   for buttons, links and accents throughout, so flipping them
   recolours most of the UI from purple to Neqtor blue. */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary-accent-color: #2563eb !important;
  --primary-accent-color--darken: #1d4ed8 !important;
}

/* Light header instead of the purple background image */
.crumina-stunning-header.stunning-header-bg2,
.stunning-header-bg2 {
  background-image: none !important;
  background: linear-gradient(180deg, #eef4ff 0%, #ffffff 100%) !important;
}

/* Top bar (logo + language / notifications / logout) → white, dark text */
section#header {
  background-color: #ffffff !important;
  border-bottom: 1px solid #e6ebf5;
}
ul.top-nav > li > a {
  color: #0e1a3a !important;
  opacity: 1 !important;
}
ul.top-nav > li > a:hover,
ul.top-nav > li:hover > a,
ul.top-nav > li:focus > a {
  color: #2563eb !important;
}

/* Main navigation bar → white, dark links, blue hover/active */
#main-menu,
.navbar-main {
  background-color: #ffffff !important;
  border-bottom: 1px solid #e6ebf5 !important;
}
.navbar-main li.account {
  background: transparent !important;
}
.navbar-main .navbar-nav > li > a {
  color: #0e1a3a !important;
  opacity: 1 !important;
}
.navbar-main .navbar-nav > li > a:hover,
.navbar-main .navbar-nav > li > a:focus,
.navbar-main .navbar-nav > .active > a,
.navbar-main .navbar-nav > .active > a:hover,
.navbar-main .navbar-nav > .open > a,
.navbar-main .navbar-nav > .open > a:hover {
  color: #2563eb !important;
  background-color: transparent !important;
}

/* Primary buttons + the top-bar action button (cart / logout) → blue */
.button--primary,
.crumina-button.button--primary,
ul.top-nav > li.primary-action > a.btn,
.btn.search,
.btn-primary {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}
.button--primary:hover,
.crumina-button.button--primary:hover,
ul.top-nav > li.primary-action > a.btn:hover,
.btn.search:hover,
.btn-primary:hover {
  background-color: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
}

/* Logo sizing on the light bar */
section#header .logo img {
  max-height: 42px !important;
}

/* ============================================================
   Footer — match the marketing site (neqtor.com).
   Layout uses the theme's Bootstrap grid (.row/.col); these
   rules only handle the dark styling + spacing.
   ============================================================ */
.site-footer {
  padding: 64px 0 28px;
  background: linear-gradient(180deg, #0a1430, #070f24) !important;
  color: #cdd9f0;
  border-top: 1px solid rgba(37, 99, 235, .35);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}
.site-footer .footer-brand,
.site-footer .footer-col { margin-bottom: 24px; }
.site-footer .footer-brand .brand-logo { height: 30px; margin-bottom: 1rem; }
.site-footer .footer-brand p { color: #9fb0d4; font-size: .9rem; margin: 0; }
.site-footer .footer-col h5 {
  font-size: .85rem; letter-spacing: .06em; text-transform: uppercase;
  margin: 0 0 1rem; color: #fff; font-weight: 700;
}
.site-footer .footer-col a {
  display: block; color: #9fb0d4; font-size: .9rem; padding: .3rem 0;
  transition: color .2s; text-decoration: none;
}
.site-footer .footer-col a:hover { color: #2563eb; }
.site-footer .footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12);
  color: #9fb0d4; font-size: .85rem; flex-wrap: wrap; gap: 1rem;
}
.site-footer .footer-bottom a,
.site-footer .footer-legal a { color: #9fb0d4; text-decoration: none; }
.site-footer .footer-legal { display: flex; gap: 1.4rem; }
.site-footer .footer-legal a:hover,
.site-footer .footer-bottom a:hover { color: #2563eb; }

/* ============================================================
   Client Area home — modern Neqtor look (cards / search / panels)
   ============================================================ */

/* Stat cards (Services / Domains / Tickets / Invoices) — custom .nq-stats markup */
.nq-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.nq-stat {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid #e6ebf5; border-radius: 16px;
  padding: 20px 22px; text-decoration: none !important;
  box-shadow: 0 12px 30px -22px rgba(13, 32, 74, .35);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.nq-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -22px rgba(37, 99, 235, .45);
  border-color: #cfe0ff;
}
.nq-stat-ic {
  flex: none; width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
}
.nq-stat-ic i { color: #fff; }
.nq-ic-blue   { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.nq-ic-cyan   { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.nq-ic-indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.nq-ic-sky    { background: linear-gradient(135deg, #38bdf8, #0ea5e9); }
.nq-stat-meta { display: flex; flex-direction: column; line-height: 1.1; }
.nq-stat-num {
  font-family: 'Sora', 'Raleway', sans-serif; font-size: 30px; font-weight: 800;
  color: #0e1a3a;
}
.nq-stat-label {
  margin-top: 4px; color: #5a6b91; font-size: 12px;
  text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
}
@media (max-width: 991px) { .nq-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .nq-stats { grid-template-columns: 1fr; } }

/* Knowledgebase search → pill */
.home-kb-search { position: relative; margin-bottom: 22px; }
.home-kb-search input.form-control {
  border-radius: 999px !important; border: 1px solid #e6ebf5 !important;
  padding: 14px 20px 14px 48px !important; height: auto !important; font-size: 15px;
  box-shadow: 0 8px 26px -18px rgba(13, 32, 74, .4) !important;
}
.home-kb-search input.form-control:focus { border-color: #2563eb !important; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15) !important; }
.home-kb-search i { left: 20px !important; right: auto !important; color: #9aa7c2 !important; }

/* Home panels (Active services / Tickets / Domain / News) */
.client-home-panels .panel,
.sidebar .panel {
  border: 1px solid #e6ebf5 !important; border-radius: 16px !important; overflow: hidden;
  box-shadow: 0 10px 30px -22px rgba(13, 32, 74, .30) !important; background: #fff;
}
.client-home-panels .panel-heading { background: #f7faff !important; border-bottom: 1px solid #eef2fa !important; padding: 15px 18px !important; }
.client-home-panels .panel-title { color: #0e1a3a !important; font-weight: 700; font-size: 16px; }
.client-home-panels .list-group-item { border-color: #eef2fa !important; }
.client-home-panels .list-group-item:hover { background: #f6f9ff !important; }
.client-home-panels .panel-footer { background: #fff !important; border-top: 1px solid #eef2fa !important; }

/* Left sidebar widgets */
.sidebar .panel-heading { background: #f7faff !important; border-bottom: 1px solid #eef2fa !important; }
.sidebar .panel-title, .sidebar .widget-title { color: #0e1a3a !important; font-weight: 700; }

/* ============================================================
   Global brand polish — fonts, background & accents (whole panel)
   ============================================================ */
body {
  background: #f4f7ff !important;
  color: #0e1a3a;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}
section#main-body { background: transparent !important; }

/* Headings → Sora (marketing site font) */
h1, h2, h3, h4, h5, h6,
.panel-title, .widget-title, .page-header h1 {
  font-family: 'Sora', 'Raleway', sans-serif;
  color: #0e1a3a;
}
#main-body .page-header { border-bottom-color: #e6ebf5; }
#main-body .page-header h1 { font-weight: 800; letter-spacing: -.01em; }

/* Links → brand blue (nav keeps its own higher-specificity rules) */
a { color: #2563eb; }
a:hover { color: #1d4ed8; }
.breadcrumb a { color: #2563eb; }

/* Unify the random panel-header action buttons (gold/cyan/grey) to brand blue */
.client-home-panels .panel-heading .btn,
.client-home-panels .panel-heading .btn.bg-color-gold,
.client-home-panels .panel-heading .btn.bg-color-info,
.client-home-panels .panel-heading .btn.bg-color-grey,
.client-home-panels .panel-heading .btn.bg-color-green,
.client-home-panels .panel-heading .btn.bg-color-red {
  background: #2563eb !important; border-color: #2563eb !important; color: #fff !important;
}
.client-home-panels .panel-heading .btn:hover { background: #1d4ed8 !important; border-color: #1d4ed8 !important; }

/* Generic panels / cards on inner pages */
.panel { border-radius: 14px !important; border-color: #e6ebf5; }
.panel-default > .panel-heading { background: #f7faff; }

/* Inputs */
.form-control:focus { border-color: #2563eb !important; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12) !important; }

/* Tables — soft brand styling */
.table > thead > tr > th { color: #5a6b91; border-bottom-color: #e6ebf5; }
.table > tbody > tr > td { border-top-color: #eef2fa; }

/* Status labels keep their meaning but match rounded look */
.label, .badge { border-radius: 999px; }

/* ---- Client-area home: brand-align the marked elements ---- */

/* Knowledgebase search — clean white pill, blue icon */
.home-kb-search input.form-control { background: #ffffff !important; }
.home-kb-search i { color: #2563eb !important; }

/* "Register a New Domain" + any in-panel action buttons → brand blue
   (replaces the green REGISTER / black transfer defaults) */
.client-home-panels .panel-body .btn,
.client-home-panels .panel-body button,
.client-home-panels .panel-body input[type="submit"],
.client-home-panels .btn.search,
.client-home-panels .btn.transfer {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}
.client-home-panels .panel-body .btn:hover,
.client-home-panels .btn.search:hover,
.client-home-panels .btn.transfer:hover {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}
