/* *****************************************************

    ** Custom Stylesheet **

***************************************************** */

:root {
    --white: #fff;

    /* Neutral shades */
    --neutral-50: #fbf9fa;
    --neutral-100: #f4f5f7;
    --neutral-200: #e4e4e7;
    --neutral-300: #d0d5dd;
    --neutral-400: #9ca3af;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: #111827;
    --neutral-950: #030712;

    /* Brand Primary Palette (Red/Orange) */
    --primary-50: #fef2f2;
    --primary-100: #fee2e2;
    --primary-200: #fecaca;
    --primary-300: #fca5a5;
    --primary-400: #f87171;
    --primary-500: #ef4444;
    --primary-600: #c8372d;
    --primary-700: #a82b22;
    --primary-800: #8a211a;
    --primary-900: #7f1d1d;
    --primary-950: #450a0a;

    /* Primary colors */
    --primary: var(--primary-600);
    --primary-lifted: var(--primary-700);
    --primary-accented: var(--primary-800);

    /* Secondary colors */
    --secondary: var(--neutral-500);
    --secondary-lifted: var(--neutral-600);
    --secondary-accented: var(--neutral-700);

    /* Semantic colors (used for dashboard icons & badges) */
    --success: #00a63e;
    --success-lifted: #008236;
    --success-accented: #016630;

    --info: #155dfc;
    --info-lifted: #1447e6;
    --info-accented: #193cb8;

    --notice: #7f22fe;
    --notice-lifted: #7008e7;
    --notice-accented: #5d0ec0;

    --warning: #f54a00;
    --warning-lifted: #ca3500;
    --warning-accented: #9f2d00;

    --error: #e7000b;
    --error-lifted: #c10007;
    --error-accented: #9f0712;

    /* Grayscale & Neutral */
    --grayscale: var(--neutral-900);
    --grayscale-lifted: var(--neutral-800);
    --grayscale-accented: var(--neutral-700);

    --neutral: var(--neutral-500);
    --neutral-lifted: var(--neutral-600);
    --neutral-accented: var(--neutral-700);

    /* Text colors */
    --text-inverted: var(--white);
    --text-muted: var(--neutral-400);
    --text-lifted: var(--neutral-500);
    --text-accented: var(--neutral-600);
    --text: var(--neutral-900);

    /* Border colors */
    --border-muted: var(--neutral-200);
    --border: var(--neutral-300);
    --border-lifted: var(--neutral-400);
    --border-accented: var(--neutral-600);

    /* Background colors */
    --bg: var(--white);
    --bg-muted: var(--neutral-50);
    --bg-lifted: var(--neutral-100);
    --bg-accented: var(--neutral-200);
    --bg-inverted: var(--neutral-900);

    /* Additional colors */
    --yellow-200: #fff085;
    --yellow-300: #ffdf20;
    --teal-300: #46edd5;
    --teal-400: #00d5be;
    --emerald-300: #5ee9b5;
    --pink-400: #fb64b6;

    /* Typography & Spacing */
    --text-xs: 0.625rem;
    --text-sm: 0.75rem;
    --text-md: 0.875rem;
    --text-lg: 1rem;

    --outline-sm: 1px;
    --outline-md: 2px;
    --outline-lg: 3px;

    --rounding-sm: 0.25rem;
    --rounding-md: 0.5rem;
    --rounding-lg: 0.75rem;

    --letter-spacing: 0em;
    --disabled-opacity: 25%;
}

/* Ensure Login & Primary Buttons are clearly visible */
.btn-primary,
#login {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--white) !important;
}

.btn-primary:hover,
#login:hover {
    background-color: var(--primary-lifted) !important;
    border-color: var(--primary-lifted) !important;
    color: var(--white) !important;
}


/* =====================================================
   Potential Empire Technologies - Nexus Theme Overrides
   Brand Red/Crimson: #c8372d | Brand Orange: #e67e22
   ===================================================== */

/* 1. Top Utility Bar ("2 Notifications" / "Logged in as") */
header .bg-neutral-900,
.topbar,
nav.navbar-top {
    background-color: #c8372d !important;
    color: #ffffff !important;
}

/* 2. Four Dashboard Summary Cards (Services, Domains, Tickets, Invoices)
      Targets both FontAwesome <i> and <svg> icons inside the 4 summary cards */
.tiles-wrapper > div:nth-child(1) i,
.tiles-wrapper > div:nth-child(1) svg,
.client-home-cards > div:nth-child(1) i,
.client-home-cards > div:nth-child(1) svg,
[class*="tile"]:nth-child(1) i,
[class*="tile"]:nth-child(1) svg {
    color: #c8372d !important;
    fill: #c8372d !important;
    opacity: 0.35 !important;
}

.tiles-wrapper > div:nth-child(2) i,
.tiles-wrapper > div:nth-child(2) svg,
.client-home-cards > div:nth-child(2) i,
.client-home-cards > div:nth-child(2) svg,
[class*="tile"]:nth-child(2) i,
[class*="tile"]:nth-child(2) svg {
    color: #e67e22 !important;
    fill: #e67e22 !important;
    opacity: 0.35 !important;
}

.tiles-wrapper > div:nth-child(3) i,
.tiles-wrapper > div:nth-child(3) svg,
.client-home-cards > div:nth-child(3) i,
.client-home-cards > div:nth-child(3) svg,
[class*="tile"]:nth-child(3) i,
[class*="tile"]:nth-child(3) svg {
    color: #c8372d !important;
    fill: #c8372d !important;
    opacity: 0.35 !important;
}

.tiles-wrapper > div:nth-child(4) i,
.tiles-wrapper > div:nth-child(4) svg,
.client-home-cards > div:nth-child(4) i,
.client-home-cards > div:nth-child(4) svg,
[class*="tile"]:nth-child(4) i,
[class*="tile"]:nth-child(4) svg {
    color: #e67e22 !important;
    fill: #e67e22 !important;
    opacity: 0.35 !important;
}

/* 3. Bottom Accent Lines Under the 4 Summary Cards */
[class*="tile"]:nth-child(1) .highlight,
[class*="tile"]:nth-child(1) [class*="border-"],
[class*="tile"]:nth-child(1) hr {
    background-color: #c8372d !important;
    border-color: #c8372d !important;
}

[class*="tile"]:nth-child(2) .highlight,
[class*="tile"]:nth-child(2) [class*="border-"],
[class*="tile"]:nth-child(2) hr {
    background-color: #e67e22 !important;
    border-color: #e67e22 !important;
}

[class*="tile"]:nth-child(3) .highlight,
[class*="tile"]:nth-child(3) [class*="border-"],
[class*="tile"]:nth-child(3) hr {
    background-color: #c8372d !important;
    border-color: #c8372d !important;
}

[class*="tile"]:nth-child(4) .highlight,
[class*="tile"]:nth-child(4) [class*="border-"],
[class*="tile"]:nth-child(4) hr {
    background-color: #e67e22 !important;
    border-color: #e67e22 !important;
}

/* 4. Sidebar "Update" Button & Primary Action Buttons */
.btn-primary,
.btn-secondary,
aside .btn,
.sidebar .btn-block {
    background-color: #c8372d !important;
    border-color: #c8372d !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-secondary:hover,
aside .btn:hover,
.sidebar .btn-block:hover {
    background-color: #a82b22 !important;
    border-color: #a82b22 !important;
    color: #ffffff !important;
}

/* 5. Main Navigation Hover & Breadcrumb Links */
nav a:hover,
.breadcrumb a {
    color: #c8372d !important;
}


/* =====================================================
   Potential Empire Technologies - Nexus Footer Override
   Brand Red: #c8372d | Brand Orange: #e67e22 | White: #ffffff
   ===================================================== */

/* Target Nexus's dark inverted footer wrapper */
footer,
footer > div,
div[class*="footer"],
.bg-neutral-900:last-of-type,
body > div:last-of-type > div.bg-neutral-900 {
    background-color: #c8372d !important;
    border-top: 4px solid #e67e22 !important;
    color: #ffffff !important;
}

/* Force all footer text, copyright notice, and links to pure white */
footer *,
div[class*="footer"] *,
.bg-neutral-900:last-of-type *,
body > div:last-of-type > div.bg-neutral-900 * {
    color: #ffffff !important;
}

/* Style the "English / BWP BWP" selector button in the footer */
footer button,
div[class*="footer"] button,
.bg-neutral-900:last-of-type button {
    background-color: #a82b22 !important;
    border-color: #e67e22 !important;
    color: #ffffff !important;
}

footer button:hover,
div[class*="footer"] button:hover,
.bg-neutral-900:last-of-type button:hover {
    background-color: #e67e22 !important;
    color: #ffffff !important;
}

/* Optional: Also match the dark "Register" domain button in the dashboard to your brand color */
.btn-dark,
button.bg-neutral-900 {
    background-color: #c8372d !important;
    border-color: #c8372d !important;
    color: #ffffff !important;
}

/* =====================================================
   Potential Empire Technologies - Nexus Footer Override
   ===================================================== */

/* Apply red background and single top orange border ONLY to the outer footer */
footer {
    background-color: #c8372d !important;
    border-top: 4px solid #e67e22 !important;
    color: #ffffff !important;
}

/* Remove any extra orange lines inside inner footer containers */
footer > div,
footer div,
div[class*="footer"] {
    background-color: #c8372d !important;
    border-top: none !important;
    color: #ffffff !important;
}

/* Force all footer text, copyright notice, and links to pure white */
footer *,
div[class*="footer"] * {
    color: #ffffff !important;
}

/* Style the "English / BWP BWP" selector button cleanly */
footer button,
div[class*="footer"] button {
    background-color: #a82b22 !important;
    border: 1px solid #e67e22 !important;
    color: #ffffff !important;
}

footer button:hover,
div[class*="footer"] button:hover {
    background-color: #e67e22 !important;
    color: #ffffff !important;
}


/* =====================================================
   Fix DataTables (My Invoices / Services / Tickets) Text Colors
   ===================================================== */

/* 1. Make all invoice/service table rows readable with dark charcoal text */
table.dataTable tbody td,
table.dataTable tbody td a,
table.dataTable tbody tr td,
.table tbody td,
.table tbody td a {
    color: #111827 !important;
}

/* 2. Style the Invoice Number / Service links in brand red */
table.dataTable tbody td a,
.table tbody td a {
    color: #c8372d !important;
    font-weight: 600;
}

table.dataTable tbody td a:hover,
.table tbody td a:hover {
    color: #e67e22 !important;
    text-decoration: underline;
}

/* 3. Make table column headers ("Invoice #", "Due Date", "Total", etc.) dark & bold */
table.dataTable thead th,
.table thead th {
    color: #111827 !important;
    background-color: #f4f5f7 !important;
    font-weight: 700 !important;
}

/* 4. Keep the top/bottom red DataTables bars ("Showing 1 to 4 of 4 entries") white */
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length label {
    color: #ffffff !important;
}

/* 5. Ensure search box & "Show entries" dropdown text stay dark inside their white inputs */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    color: #111827 !important;
    background-color: #ffffff !important;
}


/* =====================================================
   Header Currency Switcher (BWP / USD)
   ===================================================== */
.header-currency-switcher .currency-pill {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    border: 1px solid #d0d5dd;
    background-color: #f4f5f7;
    color: #111827 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.header-currency-switcher .currency-pill:hover {
    border-color: #e67e22;
    color: #c8372d !important;
}

.header-currency-switcher .currency-pill.active {
    background-color: #c8372d !important;
    border-color: #c8372d !important;
    color: #ffffff !important;
}

/* =====================================================
   Portal Home Cards ("How can we help today" & "Your Account")
   Brand Red: #c8372d | Brand Orange: #e67e22
   ===================================================== */

/* 1. Default Brand Red for all Portal Home card icons (SVGs & FontAwesome) */
.action-icon-btns a i,
.action-icon-btns a svg,
.action-icon-btns a svg path,
.home-shortcuts a i,
.home-shortcuts a svg,
.home-shortcuts a svg path,
.card-body a svg,
.card-body a svg path {
    color: #c8372d !important;
    stroke: #c8372d !important;
    transition: all 0.2s ease;
}

/* 2. Alternate every second card icon to Brand Orange (#e67e22) */
.action-icon-btns > div:nth-child(even) a i,
.action-icon-btns > div:nth-child(even) a svg,
.action-icon-btns > div:nth-child(even) a svg path,
.home-shortcuts > div:nth-child(even) a i,
.home-shortcuts > div:nth-child(even) a svg,
.home-shortcuts > div:nth-child(even) a svg path {
    color: #e67e22 !important;
    stroke: #e67e22 !important;
}

/* 3. Hover Effect: Highlight card border and swap icon color */
.action-icon-btns a:hover,
.home-shortcuts a:hover {
    border-color: #c8372d !important;
}

.action-icon-btns a:hover svg,
.action-icon-btns a:hover svg path,
.home-shortcuts a:hover svg,
.home-shortcuts a:hover svg path {
    color: #e67e22 !important;
    stroke: #e67e22 !important;
}


/* =====================================================
   "Browse our Products/Services" Button Hover Styling
   Brand Red: #c8372d | Brand Orange: #e67e22
   ===================================================== */

/* 1. Default button outline & text */
.btn-outline-dark,
.btn-outline-primary,
.card-body a.btn {
    border-color: #c8372d !important;
    color: #c8372d !important;
    background-color: transparent !important;
    transition: all 0.2s ease;
}

/* 2. Hover state: Fill with Brand Red and Orange border */
.btn-outline-dark:hover,
.btn-outline-dark:focus,
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.card-body a.btn:hover,
.card-body a.btn:focus {
    background-color: #c8372d !important;
    border-color: #e67e22 !important;
    color: #ffffff !important;
}

/* 3. Highlight the surrounding product card border on hover */
.card:hover {
    border-color: #e67e22 !important;
}


/* =====================================================
   Navigation Dropdown Submenus ("Store" & "Account")
   Brand Red: #c8372d | Brand Orange: #e67e22
   ===================================================== */

/* 1. Submenu links ("Browse All", "Email Hosting Plans", "Web Hosting Plans", etc.) */
.dropdown-menu .dropdown-item,
.navbar-nav .dropdown-menu a {
    color: #c8372d !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* 2. Submenu hover & active states */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.navbar-nav .dropdown-menu a:hover,
.navbar-nav .dropdown-menu a:focus {
    background-color: #fef2f2 !important;
    color: #e67e22 !important;
}

/* 3. Optional: Add a clean brand orange top border on the dropdown box */
.dropdown-menu {
    border-top: 3px solid #e67e22 !important;
}

/* =====================================================
   Universal WHMCS Pricing Tables Override
   Covers: Pure Comparison, Standard Cart, Modern, Slider
   Brand Red: #c8372d | Brand Orange: #e67e22
   ===================================================== */

/* 1. Pricing Card Top Header Block (Teal/Blue background) */
#order-pure_comparison .price-table-container .header-lined,
#order-pure_comparison .price-table .top-head,
#order-pure_comparison .header-bg,
#order-standard_cart .products .product header,
#order-modern .products .product header,
.price-table-container .top-head,
.price-table .header-bg,
.pricing-table .header,
.product-pricing-header,
div[id^="order-"] .price-table > div:first-child,
div[id^="order-"] .product > header {
    background: linear-gradient(135deg, #c8372d 0%, #a82b22 100%) !important;
    background-color: #c8372d !important;
    border-bottom: 4px solid #e67e22 !important;
    color: #ffffff !important;
}

/* Keep all titles & prices inside the card header white */
div[id^="order-"] .price-table > div:first-child *,
div[id^="order-"] .product > header *,
.price-table-container .top-head * {
    color: #ffffff !important;
}

/* 2. "Order Now" Buttons Inside Pricing Cards */
#order-pure_comparison .btn-buy,
#order-pure_comparison a.btn,
#order-standard_cart .btn-order-now,
.price-table-container a.btn,
.price-table a.btn,
div[id^="order-"] .price-table a.btn,
div[id^="order-"] .product a.btn {
    background-color: #e67e22 !important;
    border-color: #e67e22 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

#order-pure_comparison .btn-buy:hover,
#order-pure_comparison a.btn:hover,
#order-standard_cart .btn-order-now:hover,
.price-table-container a.btn:hover,
.price-table a.btn:hover,
div[id^="order-"] .price-table a.btn:hover,
div[id^="order-"] .product a.btn:hover {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #c8372d !important;
}


/* =====================================================
   Order Now Button Hover: Keep Default Blue -> Hover Black + White Text
   ===================================================== */
html body #order-pure_comparison .price-table .order-button:hover,
html body #order-pure_comparison .price-table .order-button:focus,
html body #order-pure_comparison .price-table a.btn:hover,
html body #order-pure_comparison .price-table a.btn:focus,
html body .price-table-container .price-table .order-button:hover,
html body .price-table-container .price-table a.btn:hover,
html body div[id^="order-"] .price-table a:hover,
html body div[id^="order-"] .product a.btn:hover {
    background-image: none !important;
    background: #000000 !important;
    background-color: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
    text-shadow: none !important;
    box-shadow: none !important;
}


/* =====================================================
   Navigation Dropdown Submenus ("Store" & "Account")
   ===================================================== */

/* 1. Default submenu links in brand red */
.dropdown-menu .dropdown-item,
.navbar-nav .dropdown-menu a {
    color: #c8372d !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* 2. Make "Browse All" (first link) black by default */
.dropdown-menu li:first-child .dropdown-item,
.dropdown-menu li:first-child a,
.dropdown-menu > a:first-of-type {
    color: #000000 !important;
    font-weight: 600;
}

/* 3. Hover & active states: Black background with crisp white font */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.navbar-nav .dropdown-menu a:hover,
.navbar-nav .dropdown-menu a:focus,
.dropdown-menu li:first-child .dropdown-item:hover,
.dropdown-menu li:first-child a:hover,
.dropdown-menu > a:first-of-type:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* 4. Brand orange top border on the dropdown box */
.dropdown-menu {
    border-top: 3px solid #e67e22 !important;
}


/* =====================================================
   Main Navigation Menu Active & Hover Colors
   Brand Red: #c8372d | Brand Orange: #e67e22
   ===================================================== */

/* 1. Active Main Menu Link & Underline ("Knowledgebase", "Home", etc.) */
.navbar-main .navbar-nav .nav-item.active > .nav-link,
.navbar-main .navbar-nav .nav-link.active,
header .navbar-nav > li.active > a,
nav .navbar-nav > li.active > a {
    color: #c8372d !important;
    border-bottom-color: #c8372d !important;
    font-weight: 600 !important;
}

/* Override the bottom active indicator bar if rendered via ::after or border */
.navbar-main .navbar-nav .nav-item.active > .nav-link::after,
.navbar-main .navbar-nav .nav-link.active::after,
header .navbar-nav > li.active > a::after {
    background-color: #c8372d !important;
    border-color: #c8372d !important;
}

/* 2. Hover & Open State on Main Menu Links ("Home", "Store", "Account", etc.) */
.navbar-main .navbar-nav .nav-link:hover,
.navbar-main .navbar-nav .nav-link:focus,
.navbar-main .navbar-nav .nav-item.show > .nav-link,
header .navbar-nav > li > a:hover,
header .navbar-nav > li > a:focus,
header .navbar-nav > li.show > a,
nav .navbar-nav > li > a:hover {
    color: #e67e22 !important;
    border-bottom-color: #e67e22 !important;
}

.navbar-main .navbar-nav .nav-link:hover::after,
header .navbar-nav > li > a:hover::after {
    background-color: #e67e22 !important;
}


/* =====================================================
   Nexus Main Header Menu: Active Page & Open Dropdown
   Brand Red: #c8372d | Brand Orange: #e67e22
   ===================================================== */

/* 1. Active Main Menu Item ("Announcements", "Knowledgebase", "Home", etc.) */
header nav a.active,
header nav li.active > a,
header nav a[aria-current="page"],
header nav li[class*="active"] > a,
header ul li.active > a,
header ul li a.active {
    color: #c8372d !important;
    border-bottom: 2px solid #c8372d !important;
    font-weight: 600 !important;
}

/* 2. Hover & Open Dropdown State ("Store", "Account", etc.) */
header nav a:hover,
header nav a:focus,
header nav li:hover > a,
header nav li.show > a,
header nav a[aria-expanded="true"],
header ul li > a:hover,
header ul li.show > a,
header ul li a[aria-expanded="true"] {
    color: #e67e22 !important;
    border-bottom: 2px solid #e67e22 !important;
}
