/* ============================================================
   SPARKWAVE — GLOBAL CLIENT AREA STYLES
   Clean, modern, consistent styling across WHMCS
   ============================================================ */
/* Move domain search box to bottom of Products/Services page */
.client-home-panels {
    display: flex !important;
    flex-direction: column !important;
}

#domainchecker,
.domain-search-box,
.domain-search-container,
.domain-container {
    order: 99 !important;
    margin-top: 2rem !important;
}

/* ------------------------------
   Typography
------------------------------ */
body {
    font-family: "Inter", "Segoe UI", Roboto, sans-serif;
    color: #1a1a1a;
    line-height: 1.55;
}

a {
    color: #1a4f8b;
    text-decoration: none;
}
a:hover {
    color: #163f6e;
    text-decoration: underline;
}

/* ------------------------------
   Buttons
------------------------------ */
.btn {
    border-radius: 6px;
}
.btn-primary {
    background: #1a4f8b;
    border-color: #1a4f8b;
}
.btn-primary:hover {
    background: #163f6e;
    border-color: #163f6e;
}

/* ------------------------------
   Badges
------------------------------ */
.badge-info {
    background: #1a4f8b;
}

/* ============================================================
   HEADER — ROW 1 (LOGO + SEARCH + CART + MENU)
   ============================================================ */

/* Force row 1 to behave as a single horizontal bar */
.navbar.navbar-light > .container.header-row-1 {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Keep logo left */
.navbar-brand {
    flex: 0 0 auto !important;
    display: flex;
    align-items: center;
}
.logo-img {
    max-height: 48px;
    width: auto;
}

/* Keep search + cart + menu right */
.navbar-nav.toolbar,
.form-inline.ml-auto {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
}

/* Remove any leftover vertical spacing that pushes items down */
.navbar.navbar-light {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ============================================================
   HEADER — ROW 2 (WIIFM line)
   ============================================================ */
/* Force WIIFM to be a fully centered independent row */
.wiifm-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center !important;
    width: 100%;
}

/* Prevent navbar flex rules from influencing WIIFM */
.navbar + .wiifm-wrapper {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.wiifm-wrapper {
    width: fit-content;   /* shrink to the width of the text */
    max-width: 100%;
    margin: 0 auto;       /* center the entire block */
    text-align: center;   /* center the text inside the block */
    font-size: 1rem;
    font-weight: 600;
    color: #1a4f8b;
    line-height: 1.35;
    padding: 6px 20px 12px;
    margin-top: -4px;
}


/* Ensure the WIIFM line always wraps cleanly */
.wiifm-wrapper br {
    display: block;
}

/* Mobile WIIFM */
@media (max-width: 768px) {
    .wiifm-wrapper {
        font-size: 0.9rem;
        line-height: 1.3;
        padding: 4px 10px 10px;
    }
}

/* ============================================================
   NAVBAR — MAIN MENU (ROW 3)
   ============================================================ */

.main-navbar-wrapper {
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #f0f0f0;
    background: #ffffff;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e5e5;
}

/* ============================================================
   CARDS / PANELS
   ============================================================ */

.panel,
.card {
    border-radius: 10px !important;
    border: 1px solid #e5e5e5 !important;
}
.card-header {
    background: #f8f9fb !important;
    border-bottom: 1px solid #e5e5e5 !important;
}

/* ============================================================
   FORMS
   ============================================================ */

.form-control {
    border-radius: 6px !important;
    border-color: #d0d0d0;
}
.form-control:focus {
    border-color: #1a4f8b;
    box-shadow: 0 0 0 0.2rem rgba(26, 79, 139, 0.15);
}

/* ============================================================
   TABLES (foundation for comparison tables)
   ============================================================ */

.table {
    border-collapse: separate;
    border-spacing: 0;
}
.table th {
    background: #f8f9fb;
    font-weight: 600;
}
.table td,
.table th {
    border: 1px solid #e5e5e5 !important;
    padding: 12px 16px;
}
.table tr:first-child th:first-child {
    border-top-left-radius: 8px;
}
.table tr:first-child th:last-child {
    border-top-right-radius: 8px;
}
.table tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}
.table tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

/* ============================================================
   STORE PRODUCT GRID (until replaced by comparison tables)
   ============================================================ */

.product {
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    padding: 1.25rem;
    background: #ffffff;
}
.product:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    background: #f8f9fb;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #e5e5e5;
}
