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

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

/* Fail-safe to hide system menu items for guests in the custom header */
body:not(.logged-in) .glass-nav [menuitemname] {
    display: none !important;
}

/* Breadcrumb refinement */
.breadcrumb-item + .breadcrumb-item::before {
    display: none;
}

/* ============================================
   GLASS-NAV RESET - Prevent Bootstrap/browser
   defaults from breaking custom Tailwind nav
   ============================================ */
.glass-nav ul,
.glass-nav ol {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 0 !important;
}

.glass-nav ul li::before,
.glass-nav ul li::marker {
    display: none !important;
    content: none !important;
}

.glass-nav .nav-item > a,
.glass-nav li > a {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Reset breadcrumb nav bar to be minimal */
nav.master-breadcrumb {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    background: transparent;
    border: none;
}

nav.master-breadcrumb .breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

/* ============================================
   HOMEPAGE SECTIONS - Background colors
   without full-bleed (compatible with WHMCS container)
   ============================================ */

/* Hero section - dark blue gradient background */
section.f4web-hero {
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Gray-background sections */
section.f4web-section-gray {
    background-color: #f8fafc;
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Footer - stretch full width within its container */
#footer {
    margin-left: -15px;
    margin-right: -15px;
}

/* ============================================
   PREMIUM UI ELEMENTS - Animations & Buttons
   ============================================ */

/* Global Typography */
body {
    font-family: 'Inter', sans-serif !important;
}

h1, h2, h3, h4, .text-display {
    font-family: 'Outfit', sans-serif !important;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* CTA Buttons */
.btn-cta {
    background: linear-gradient(135deg, hsl(22 95% 55%), hsl(15 90% 50%));
    box-shadow: 0 4px 14px 0 hsl(22 95% 55% / 30%);
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 hsl(22 95% 55% / 40%);
    filter: brightness(1.1);
}

/* Plan Highlight */
.plan-highlight {
    border: 2px solid hsl(22 95% 55%);
    box-shadow: 0 10px 40px -10px hsl(22 95% 55% / 20%);
    transform: scale(1.02);
    z-index: 10;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px -10px rgba(0,0,0,0.1);
    border-color: hsl(var(--primary) / 0.2);
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, #fff 30%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================
   LUXURY DESIGN SYSTEM - WHMCS Overrides
   (Targeting ALL system screens)
   ============================================ */

:root {
    --luxury-glass-bg: rgba(255, 255, 255, 0.85);
    --luxury-glass-border: rgba(255, 255, 255, 0.4);
    --luxury-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    --luxury-radius: 20px;
}

body {
    background-color: #f8fafc !important; /* Premium off-white */
    color: #1e293b !important;
}

/* Luxury Cards - Glassmorphism fallback if blur not supported */
.card {
    background: var(--luxury-glass-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--luxury-glass-border) !important;
    border-radius: var(--luxury-radius) !important;
    box-shadow: var(--luxury-shadow) !important;
    overflow: hidden;
    margin-bottom: 2rem !important;
}

.card-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    padding: 1.5rem 2rem !important;
}

.card-header h3, .card-header h5, .card-title {
    font-weight: 700 !important;
    letter-spacing: -0.01em;
}

.card-body {
    padding: 2rem !important;
}

.card-footer {
    background: rgba(0,0,0,0.02) !important;
    border-top: 1px solid rgba(0,0,0,0.05) !important;
    padding: 1.25rem 2rem !important;
}

/* Dashboard Tiles - Luxury upgrade */
.tiles .tile {
    background: white !important;
    border-radius: 16px !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 1.5rem !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.tiles .tile:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1) !important;
}

.tiles .tile i {
    font-size: 2rem !important;
    margin-bottom: 1rem !important;
    opacity: 0.9;
}

.tiles .tile .stat {
    font-size: 2.25rem !important;
    font-weight: 800 !important;
    font-family: 'Outfit', sans-serif !important;
    line-height: 1 !important;
    margin-bottom: 0.5rem !important;
}

.tiles .tile .title {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #64748b !important;
}

/* Remove original WHMCS highlight bars from tiles */
.tiles .tile .highlight {
    display: none !important;
}

/* Global Buttons - Premium consistency */
.btn-primary {
    background: linear-gradient(135deg, hsl(22 95% 55%), hsl(15 90% 50%)) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px 0 hsl(22 95% 55% / 30%) !important;
    transition: all 0.2s ease !important;
}

.btn-primary:hover {
    filter: brightness(1.1) !important;
    box-shadow: 0 6px 20px 0 hsl(22 95% 55% / 40%) !important;
    transform: translateY(-1px) !important;
}

/* Form Controls - High-end feel */
.form-control,
.field {
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 0.75rem 1rem !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    height: auto !important;
}

/* Fix for overlapping icons in form fields */
.prepend-icon .form-control,
.prepend-icon .field {
    padding-left: 48px !important;
}

/* Fix for ID specific phone input overlap (International Telephone Input) */
#inputPhone, 
.iti input {
    padding-left: 85px !important; /* Increased padding specifically for the phone flag area */
}

.form-control:focus, 
.field:focus {
    border-color: #fca311 !important;
    box-shadow: 0 0 0 3px rgba(252, 163, 17, 0.1) !important;
}

.input-group-text {
    border-radius: 10px 0 0 10px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
}

/* List Groups - Clean aesthetics */
.list-group-item {
    padding: 1rem 1.5rem !important;
    border-color: rgba(0,0,0,0.05) !important;
}

.list-group-item:first-child {
    border-top-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
}

.list-group-item:last-child {
    border-bottom-left-radius: 16px !important;
    border-bottom-right-radius: 16px !important;
}

/* Breadcrumbs (Secondary Nav) */
.breadcrumb-container {
    background: transparent !important;
    border: none !important;
    padding: 1rem 0 !important;
}

/* ============================================
   LOVABLE MENU ADJUSTMENT - Premium Nav
   ============================================ */

.glass-nav {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s ease;
}

/* Luxury Nav Links with Underline Animation */
.nav-link-luxury {
    position: relative;
    padding: 0.5rem 1rem !important;
    color: #1e293b !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    transition: color 0.3s ease;
}

.nav-link-luxury::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 1rem;
    background: linear-gradient(135deg, hsl(22 95% 55%), hsl(15 90% 50%));
    transition: width 0.3s ease;
}

.nav-link-luxury:hover {
    color: #000 !important;
}

.nav-link-luxury:hover::after {
    width: calc(100% - 2rem);
}

/* Login/Client Ghost Button */
.btn-ghost-luxury {
    background: transparent !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    color: #1e293b !important;
    transition: all 0.3s ease !important;
}

.btn-ghost-luxury:hover {
    border-color: #fca311 !important;
    color: #fca311 !important;
    background: rgba(252, 163, 17, 0.05) !important;
}

/* Mobile Glass Overlays */
#mainNavbar.collapse.show, 
#mainNavbar.collapsing {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 0 0 24px 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.mobile-nav-link {
    padding: 1rem 1.5rem !important;
    border-radius: 12px;
    margin: 0.25rem 1rem;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    background: rgba(252, 163, 17, 0.1);
    color: #fca311 !important;
}

/* ============================================
   LUXURY DROPDOWN SYSTEM
   ============================================ */


/* ============================================
   RICH LUXURY DROPDOWN SYSTEM
   ============================================ */

/* Desktop Hover Trigger */
@media (min-width: 992px) {
    .dropdown:hover > .dropdown-menu-rich {
        display: block;
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }
}

.dropdown-menu-rich {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 320px;
    padding: 1.25rem;
    margin-top: 0.75rem;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 24px !important;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 20px 40px -4px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.02) !important;
    
    /* Animation pieces */
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-item-rich {
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem;
    padding: 1rem !important;
    margin-bottom: 0.25rem;
    text-decoration: none;
    border-radius: 16px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-item-rich:hover {
    background: linear-gradient(90deg, rgba(252, 163, 17, 0.08), transparent) !important;
    border-left-color: #fca311;
    transform: translateX(6px);
}

.dropdown-item-rich .icon-box {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 12px;
    color: #64748b;
    transition: all 0.3s ease;
}

.dropdown-item-rich:hover .icon-box {
    background: #fff;
    color: #fca311;
    box-shadow: 0 4px 12px rgba(252, 163, 17, 0.2);
}

.dropdown-item-rich .content-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-item-rich .title {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.dropdown-item-rich:hover .title {
    color: #fca311;
}

.dropdown-item-rich .desc {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

/* Header UI Refinements */
.dropdown-toggle::after { display: none !important; }

.dropdown-toggle i {
    font-size: 0.6rem;
    opacity: 0.4;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
    opacity: 1;
    color: #fca311;
}

.glass-nav ul.flex {
    gap: 2rem !important;
}

@media (max-width: 991px) {
    .dropdown-menu-rich {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        padding-left: 1.5rem;
        min-width: 0;
    }
    .dropdown.show .dropdown-menu-rich { display: block; }
    .dropdown-item-rich { padding: 0.75rem !important; }
}
