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

    ** Custom Stylesheet **

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

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

/* Custom CSS for Nexus Theme
 *
 * This file allows you to customize the theme colors and styles for the entire Nexus template.
 *
 * To customize colors:
 * - Replace the var() references with your own hex colors or other CSS values.
 * - For example, instead of --primary: #4b5563; use --primary: #your-color;
 * - You can also override any CSS properties here.
 */

: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;

    /* Neutral shades */
    /* define own pallet with brand colors */
    --primary-50: var(--neutral-50);
    --primary-100: var(--neutral-100);
    --primary-200: var(--neutral-200);
    --primary-300: var(--neutral-300);
    --primary-400: var(--neutral-400);
    --primary-500: var(--neutral-500);
    --primary-600: var(--neutral-600);
    --primary-700: var(--neutral-700);
    --primary-800: var(--neutral-800);
    --primary-900: var(--neutral-900);
    --primary-950: var(--neutral-900);

    /* Primary colors */
    /* Use shades from comments if `primary` colors use other colors, then neutral */
    --primary: var(--neutral-900);          /* var(--primary-600) */
    --primary-lifted: var(--neutral-800);   /* var(--primary-700) */
    --primary-accented: var(--neutral-700); /* var(--primary-800) */

    /* Secondary colors */
    --secondary: var(--neutral-500);
    --secondary-lifted: var(--neutral-600);
    --secondary-accented: var(--neutral-700);

    /* Success colors */
    --success: #00a63e;
    --success-lifted: #008236;
    --success-accented: #016630;

    /* Info colors */
    --info: #155dfc;
    --info-lifted: #1447e6;
    --info-accented: #193cb8;

    /* Notice colors */
    --notice: #7f22fe;
    --notice-lifted: #7008e7;
    --notice-accented: #5d0ec0;

    /* Warning colors */
    --warning: #f54a00;
    --warning-lifted: #ca3500;
    --warning-accented: #9f2d00;

    /* Error colors */
    --error: #e7000b;
    --error-lifted: #c10007;
    --error-accented: #9f0712;

    /* Grayscale colors */
    --grayscale: var(--neutral-900);
    --grayscale-lifted: var(--neutral-800);
    --grayscale-accented: var(--neutral-700);

    /* Neutral colors */
    --neutral: var(--neutral-500);
    --neutral-lifted: var(--neutral-600);
    --neutral-accented: var(--neutral-700);

    /* Text neutral 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 neutral colors */
    --border-muted: var(--neutral-200);
    --border: var(--neutral-300);
    --border-lifted: var(--neutral-400);
    --border-accented: var(--neutral-600);

    /* Background neutral 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;

    /* Additional custom properties */
    /* Font sizes */
    --text-xs: 0.625rem;
    --text-sm: 0.75rem;
    --text-md: 0.875rem;
    --text-lg: 1rem;

    /* Spacing */
    --outline-sm: 1px;
    --outline-md: 2px;
    --outline-lg: 3px;

    /* Rounding */
    --rounding-sm: 0.25rem;
    --rounding-md: 0.5rem;
    --rounding-lg: 0.75rem;

    /* Other */
    --letter-spacing: 0em;
    --disabled-opacity: 25%;
}

/* ============================================================
   CWS NEXUS — CUSTOM STYLES
   Sections:
   1. Utility bar
   2. Account dropdown
   3. Desktop website header and navigation
   4. Mobile website navigation
   5. Homepage
   ============================================================ */

/* ------------------------------------------------------------
   1. UTILITY BAR
   ------------------------------------------------------------ */
.cws-utility-bar {
    background: linear-gradient(180deg, #333333 0%, #54595F 90%);
    font-family: "Trebuchet MS", sans-serif;
    -webkit-font-smoothing: antialiased;
    position: relative;
    z-index: 1050;
}

.cws-utility-nav {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
}

.cws-utility-right {
    display: flex;
    align-items: center;
    justify-self: center;
}

.cws-utility-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-self: end;
    gap: 5px;
    white-space: nowrap;
}

.cws-notifications #accountNotifications {
    color: #AAAAAA;
    font-family: "Trebuchet MS", sans-serif;
    font-size: 16px;
    font-weight: 400;
    padding: 10px 15px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.cws-notifications #accountNotifications:hover,
.cws-notifications #accountNotifications:focus {
    color: #AFBC36;
}

.cws-notification-count {
    display: inline-block;
    background-color: #AFBC36;
    color: #333333;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    min-width: 18px;
    padding: 0 5px;
    border-radius: 10px;
    text-align: center;
    margin-left: 5px;
}

/* Target only top-level utility links, not links in dropdowns. */
.cws-utility-bar .cws-utility-nav > a,
.cws-utility-bar .cws-utility-actions > a,
.cws-utility-bar .cws-utility-right > a,
.cws-utility-bar .cws-account-dropdown > a {
    display: inline-block;
    padding: 10px 15px;
    font-family: "Trebuchet MS", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #AAAAAA;
    text-decoration: none;
}

.cws-utility-bar .cws-utility-nav > a:hover,
.cws-utility-bar .cws-utility-nav > a:focus,
.cws-utility-bar .cws-utility-actions > a:hover,
.cws-utility-bar .cws-utility-actions > a:focus,
.cws-utility-bar .cws-utility-right > a:hover,
.cws-utility-bar .cws-utility-right > a:focus,
.cws-utility-bar .cws-account-dropdown > a:hover,
.cws-utility-bar .cws-account-dropdown > a:focus {
    color: #AFBC36;
    text-decoration: none;
}

.cws-utility-bar .cws-utility-nav i {
    font-size: 14px;
    margin-right: 5px;
}

@media (min-width: 1200px) {
    .cws-utility-bar .container {
        padding-left: 0;
        padding-right: 0;
    }
}

/* ------------------------------------------------------------
   2. ACCOUNT DROPDOWN
   ------------------------------------------------------------ */
.cws-utility-bar .cws-account-dropdown .dropdown-menu {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* Dropdown items use an isolated class. Default colors are also
   declared on the links in header.tpl to avoid inherited utility colors. */
#header .cws-utility-bar .cws-account-dropdown .dropdown-menu a.cws-account-item {
    display: block;
    font-family: "Trebuchet MS", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 24px;
    padding: 10px 18px;
    text-decoration: none;
}

#header .cws-utility-bar .cws-account-dropdown .dropdown-menu a.cws-account-item:hover,
#header .cws-utility-bar .cws-account-dropdown .dropdown-menu a.cws-account-item:focus {
    color: #333333 !important;
    background-color: #f0f0f0 !important;
    text-decoration: none;
}

/* ------------------------------------------------------------
   3. DESKTOP WEBSITE HEADER AND NAVIGATION
   ------------------------------------------------------------ */
#header .navbar.navbar-light {
    border-bottom: 2px solid #AFBC36;
}

.cws-primary-nav {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-left: auto;
    -webkit-font-smoothing: antialiased;
}

header.header .navbar .cws-primary-nav a {
    font-family: "Trebuchet MS", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #54595F;
    text-decoration: none;
    white-space: nowrap;
}

header.header .navbar .cws-primary-nav a:hover,
header.header .navbar .cws-primary-nav a:focus {
    color: #000000;
    text-decoration: none;
}

@media (min-width: 1200px) {
    #header .navbar.navbar-light {
        min-height: 77px;
    }

    header.header .navbar-brand {
        margin-left: -10px;
    }
}

/* ------------------------------------------------------------
   4. MOBILE / TABLET WEBSITE NAVIGATION
   ------------------------------------------------------------ */
.cws-mobile-toggle,
.cws-mobile-menu {
    display: none;
}

@media (max-width: 1199.98px) {
    header.header {
        position: relative;
    }

    .cws-primary-nav {
        display: none;
    }

    .cws-mobile-toggle {
        display: block;
        margin-left: auto;
        padding: 10px 14px;
        background: transparent;
        border: 1px solid #AFBC36;
        border-radius: 4px;
        color: #54595F;
        font-size: 20px;
        cursor: pointer;
    }

    .cws-mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        z-index: 1000;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    }

    .cws-mobile-menu.show {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
    }

    .cws-mobile-menu a {
        padding: 12px 15px;
        font-family: "Trebuchet MS", sans-serif;
        font-size: 16px;
        color: #54595F;
		text-decoration: none;
        border-bottom: 1px solid #e5e5e5;
    }
    
    .cws-mobile-menu a:last-child {
    	border-bottom: none;
	}

    .cws-mobile-menu a:hover {
        color: #AFBC36;
    }
}

/* ------------------------------------------------------------
   Mobile Utility Bar - Compact Icon Navigation
   ------------------------------------------------------------
   Four equal columns when logged out.
   Five equal columns when logged in (Notifications added).
   Desktop utility navigation remains unchanged.
   ------------------------------------------------------------ */

@media (max-width: 600px) {

    .cws-utility-nav {
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        gap: 0;
    }

    .cws-utility-right {
        display: contents;
    }

    .cws-utility-actions {
        display: contents;
    }

    .cws-utility-nav > a,
    .cws-utility-right > a,
    .cws-utility-actions > a,
    .cws-account-dropdown,
    .cws-notifications {
        flex: 1 1 0;
        min-width: 0;
        text-align: center;
    }

    .cws-utility-bar .cws-utility-nav > a,
    .cws-utility-bar .cws-utility-right > a,
    .cws-utility-bar .cws-utility-actions > a,
    .cws-utility-bar .cws-account-dropdown > a,
    .cws-notifications #accountNotifications {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: 100%;
        padding: 10px 2px;
        font-size: 11px;
        line-height: 16px;
        white-space: nowrap;
    }

    .cws-utility-bar .cws-utility-nav i {
        font-size: 18px;
        margin-right: 0;
        color: #AFBC36;
    }

    .cws-account-dropdown .dropdown-menu {
        right: 0;
        left: auto;
        text-align: left;
    }
    
    /* Keep mobile utility items aligned */
	.cws-cart-link #cartItemCount {
  		display: none;
	}

	.cws-account-dropdown .fa-angle-down {
    	display: none;
	}
}



/* =========================================================
   SECTION 5: CWS HOMEPAGE STYLING
   =========================================================
   Custom styling for the public-facing WHMCS portal homepage.

   - Applies Cortez Web Services brand colors and typography
   - Creates visual separation between homepage sections
   - Styles the welcome area, service cards, and action buttons
   - Keeps changes isolated from the client dashboard and cart
   ========================================================= */

/* ---------------------------------------------------------
   Homepage - Hide Portal Home Breadcrumb
   --------------------------------------------------------- */

body:has(.cws-home-welcome) .master-breadcrumb {
    display: none;
}

/* Welcome section - branded gradient with subtle texture */
.cws-home-welcome {
    background:
        repeating-linear-gradient(
            135deg,
            transparent 0,
            transparent 22px,
            rgba(255, 255, 255, 0.025) 22px,
            rgba(255, 255, 255, 0.025) 23px
        ),
        linear-gradient(180deg, #333333 0%, #54595F 100%);

    color: #ffffff;
    padding: 65px 30px;
    border-radius: 6px;
}

.cws-home-welcome h1 {
    color: #ffffff;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-weight: 600;
}

.cws-home-welcome p {
    color: #ffffff;
    font-size: 17px;
}

.cws-home-welcome .btn {
    background-color: #AFBC36;
    border-color: #AFBC36;
    color: #333333;
    font-weight: 600;
}

.cws-home-welcome .btn:hover {
    background-color: #9EAA30;
    border-color: #9EAA30;
    color: #ffffff;
}

/* Explore Our Services - CWS branding */
.cws-home-services h2 {
    font-family: "Trebuchet MS", Arial, sans-serif;
    color: #333333;
    font-weight: 600;
}

.cws-home-services .card {
    border: 1px solid #e2e2e2;
    border-top: 4px solid #AFBC36;
    border-radius: 6px;
    transition: box-shadow 0.2s ease;
}

.cws-home-services .card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
}

.cws-home-services .card h3 {
    font-family: "Trebuchet MS", Arial, sans-serif;
    color: #168A92;
    font-weight: 600;
}

/* Service card buttons - CWS blue */
body #main-body .cws-home-services .card .btn-outline-primary {
    color: #168A92;
    border-color: #168A92;
    font-weight: 600;
}

body #main-body .cws-home-services .card .btn-outline-primary:hover {
    background-color: #168A92;
    border-color: #168A92;
    color: #ffffff;
}

/* ---------------------------------------------------------
   Domain Search - CWS Branding
   --------------------------------------------------------- */

.cws-home-domains {
    background-color: #edf6f6;
    border-top: 4px solid #168A92;
    border-radius: 6px;
    padding: 30px;
}

.cws-home-domains h2 {
    font-family: "Trebuchet MS", Arial, sans-serif;
    color: #168A92;
    font-weight: 600;
}

/* Domain Search - Search button */
body #main-body .cws-home-domains .btn-primary {
    background-color: #168A92;
    border-color: #168A92;
    color: #ffffff;
}

body #main-body .cws-home-domains .btn-primary:hover {
	background-color: #ffffff;
    border-color: #168A92;
    color: #168A92;
}

/* Domain Search - Transfer button */
body #main-body .cws-home-domains #btnTransfer {
    background: #168A92;
    border-color: #168A92;
    color: #ffffff;
}

body #main-body .cws-home-domains #btnTransfer:hover {
	background-color: #ffffff;
    border-color: #168A92;
    color: #168A92;
}

/* Domain Search - View all pricing link */
body #main-body .cws-home-domains a.btn-link.btn-sm {
    color: #54595F;
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 7px 12px;
    text-decoration: none;
    font-weight: 500;
}

body #main-body .cws-home-domains a.btn-link.btn-sm:hover {
    color: #333333;
    background-color: #e0e0e0;
    border-color: #cccccc;
    text-decoration: none;
}

/* ---------------------------------------------------------
   Customer Support - CWS Branding
   --------------------------------------------------------- */

.cws-home-support h2 {
    font-family: "Trebuchet MS", Arial, sans-serif;
    color: #333333;
    font-weight: 600;
}

body #main-body .cws-home-support .btn-outline-primary {
    color: #168A92;
    border-color: #168A92;
    font-weight: 600;
}

body #main-body .cws-home-support .btn-outline-primary:hover {
    background-color: #168A92;
    border-color: #168A92;
    color: #ffffff;
}

/* CWS footer colors */
#footer {
    background-color: #333333;
}

/* Footer copyright - improve contrast */
#footer .copyright {
    color: #cccccc;
}

/* Hide breadcrumb bar when no breadcrumbs are present. */
.master-breadcrumb:not(:has(.breadcrumb > li)) {
    display: none;
}

/* Domain Search - Mobile Transfer button */
@media (max-width: 600px) {
    body #main-body .cws-home-domains button#btnTransfer2.btn-success {
        background-color: #168A92;
        border-color: #168A92;
        color: #ffffff;
    }

    body #main-body .cws-home-domains button#btnTransfer2.btn-success:hover {
        background-color: #ffffff;
        border-color: #168A92;
        color: #168A92;
    }
}

/* Domain Search - Mobile pricing link layout */
@media (max-width: 600px) {
    body #main-body .cws-home-domains a.btn-link.btn-sm {
        float: none !important;
        display: table;
        margin: 20px auto 0;
    }
}

/* Shopping Cart - Order Now buttons */
body #main-body #order-modern a.btn-success {
    background-color: #168A92;
    border-color: #168A92;
    color: #ffffff;
}

body #main-body #order-modern a.btn-success:hover {
    background-color: #ffffff;
    border-color: #168A92;
    color: #168A92;
}

/* Shopping Cart - Product card hover */
body #main-body #order-modern .product:hover {
    background-color: #F5F8E8;
}