@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark-base: #090d16;
    --bg-dark-card: #111827;
    --bg-dark-card-hover: #131b2e;
    --color-cyan: #00f0ff;
    --color-purple: #8b5cf6;
    --color-blue: #3b82f6;
}

body {
    font-family: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-dark-base) !important;
    color: #e2e8f0;
    overflow-x: hidden;
    overflow-y: auto !important;
    height: auto !important;
    min-h-screen: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #090d16;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
    border-bottom: 2px solid var(--color-cyan);
}

/* Glassmorphism Styles */
.torus-glass {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.torus-glass-hover:hover {
    background: rgba(19, 27, 46, 0.85);
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 10px 30px -10px rgba(0, 240, 255, 0.15);
    transform: translateY(-2px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glowing Neon Elements */
.torus-glow-cyan {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.torus-glow-purple {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

/* Text Gradient */
.torus-text-gradient {
    background: linear-gradient(135deg, #00f0ff 0%, #3b82f6 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Border Gradient */
.torus-gradient-border {
    position: relative;
    border: 1px solid transparent;
    background-clip: padding-box;
}
.torus-gradient-border::after {
    position: absolute;
    top: -1px; bottom: -1px;
    left: -1px; right: -1px;
    background: linear-gradient(135deg, rgba(0,240,255,0.4) 0%, rgba(139,92,246,0.4) 100%);
    content: '';
    z-index: -1;
    border-radius: inherit;
}

/* Dynamic Radial Background Glows */
.radial-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 100%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}

/* Custom Configurator Slider styling */
input[type="range"].torus-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #1e293b;
    border-radius: 9999px;
    outline: none;
}

input[type="range"].torus-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-purple));
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
    transition: transform 0.1s ease;
}

input[type="range"].torus-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.9; }
}

.animate-pulse-glow {
    animation: pulse-glow 3s infinite ease-in-out;
}

/* Client Area Collapsible Sidebar Transition */
.sidebar-transition {
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* WHMCS Standard Cart & Order Form Overrides */
.view-cart-container, #order-standard_cart, .row.custom-shopping-cart-row {
    background: transparent !important;
    color: #cbd5e1 !important;
}
#order-standard_cart .cart-sidebar, .cart-sidebar, .view-cart-sidebar {
    background: rgba(17, 24, 39, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 1rem !important;
}
#order-standard_cart .cart-body, .cart-body, .view-cart-items {
    background: transparent !important;
}
#order-standard_cart .table-striped tbody tr:nth-of-type(odd), .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.02) !important;
}
#order-standard_cart .table, #order-standard_cart th, #order-standard_cart td, .table, .table th, .table td {
    border-color: rgba(255, 255, 255, 0.05) !important;
    color: #cbd5e1 !important;
    background: transparent !important;
}
#order-standard_cart .header-lined, .header-lined {
    border-bottom: 2px solid rgba(0, 240, 255, 0.2) !important;
    color: #ffffff !important;
}
#order-standard_cart .panel-default, .panel-default, .panel {
    background: rgba(17, 24, 39, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 1rem !important;
}
#order-standard_cart .panel-body, .panel-body {
    background: transparent !important;
    color: #cbd5e1 !important;
}
#order-standard_cart .form-control, .form-control, select, input[type="text"], input[type="password"], input[type="email"], textarea {
    background-color: rgba(2, 6, 23, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-radius: 0.75rem !important;
}
#order-standard_cart .btn-default, .btn-default {
    background: rgba(30, 41, 59, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}
#order-standard_cart .btn-primary, .btn-primary, .btn-checkout {
    background: linear-gradient(135deg, #00f0ff, #3b82f6) !important;
    border: none !important;
    color: #000000 !important;
    font-weight: 700 !important;
}
#order-standard_cart .secondary-cart-sidebar, .secondary-cart-sidebar {
    background: rgba(17, 24, 39, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 1rem !important;
    color: #cbd5e1 !important;
}
#order-standard_cart .secondary-cart-sidebar .list-group-item, .list-group-item {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    color: #cbd5e1 !important;
}
#order-standard_cart .secondary-cart-sidebar .list-group-item.active, .list-group-item.active {
    background: rgba(0, 240, 255, 0.1) !important;
    color: #00f0ff !important;
    border-color: rgba(0, 240, 255, 0.2) !important;
}
/* Left side Categories sidebar background fix */
.categories-sidebar, #categories, .pull-left.sidebar {
    background: rgba(17, 24, 39, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 1rem !important;
    color: #cbd5e1 !important;
}
.categories-sidebar a, #categories a {
    color: #cbd5e1 !important;
}
.categories-sidebar a:hover, #categories a:hover {
    color: #00f0ff !important;
    background: rgba(0, 240, 255, 0.05) !important;
}

/* Force dark theme compatibility across WHMCS native bootstrap modules */
.main-content, #main-body, .view-cart-container, #order-standard_cart {
    background-color: transparent !important;
    color: #cbd5e1 !important;
}

.main-content h1, .main-content h2, .main-content h3, #main-body h1, #main-body h2, #main-body h3 {
    color: #ffffff !important;
}

/* Fix cart view text alignment and white boxes */
.view-cart-items, .cart-sidebar, .sidebar, .panel, .well, .badge, .label {
    background: rgba(17, 24, 39, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    color: #cbd5e1 !important;
}

.promo-code-container, .order-summary, .order-summary-content, .order-summary-container {
    background: rgba(17, 24, 39, 0.8) !important;
    border: 1px solid rgba(0, 240, 255, 0.1) !important;
    color: #ffffff !important;
}

/* Fix specific order form table fields and items listing */
#order-standard_cart .cart-body table.table th,
#order-standard_cart .cart-body table.table td,
#order-standard_cart .cart-sidebar .order-summary,
.cart-sidebar .order-summary,
.order-summary-container,
.order-summary-content,
.view-cart-items td,
.view-cart-items th,
.sub-table td {
    background-color: rgba(17, 24, 39, 0.85) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.view-cart-empty {
    background: rgba(17, 24, 39, 0.5) !important;
    color: #94a3b8 !important;
}

/* Apply global background reset on cart forms */
form#frmCheckout, form[action="cart.php?a=view"], .cart-items {
    background: transparent !important;
}
.white-box, .bg-white, .well.white-box {
    background-color: rgba(17, 24, 39, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

/* Specific Cart page table structures layout fix */
#order-standard_cart, .main-container, .view-cart-container {
    background: #090d16 !important;
    color: #e2e8f0 !important;
    padding: 20px !important;
}

#order-standard_cart a, .view-cart-container a {
    color: #00f0ff !important;
}

.item, .cart-item, .view-cart-items tr {
    background-color: rgba(17, 24, 39, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Force dark color on WHMCS core tables in shopping cart */
table, tr, td, th {
    background-color: transparent !important;
    color: #e2e8f0 !important;
}
input, select, textarea {
    background-color: rgba(2, 6, 23, 0.7) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}





