/* assets/css/custom.css */

/* Custom Typography & Scrollbar */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #070a13;
    --bg-gradient-start: #040710;
    --bg-gradient-end: #0c111e;
    --bg-glass: rgba(255, 255, 255, 0.03); /* Highly transparent white for glass look */
    --bg-glass-active: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.08); /* Frosted glass white border */
    --border-glass-hover: rgba(255, 255, 255, 0.18);
    --accent-cyan: #0090ff; /* Electric blue accent */
    --accent-blue: #0070e0;
    --accent-purple: #7928ca;
    --accent-emerald: #00e676; /* Active green status */
    --accent-yellow: #ffb300;
    --text-primary: #ffffff;
    --text-secondary: #8b98b5;
}

body {
    font-family: 'Outfit', sans-serif;
    background: radial-gradient(circle at 50% 50%, var(--bg-gradient-end), var(--bg-gradient-start));
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-gradient-start);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Background Glowing Orbs (Clearly visible behind the frosted glass panels) */
.background-glow-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb-yellow {
    position: absolute;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.08) 0%, rgba(250, 204, 21, 0) 70%);
    border-radius: 50%;
    bottom: -100px;
    right: -50px;
    filter: blur(90px);
}

.orb-white {
    position: absolute;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.04) 0%, rgba(0, 230, 118, 0) 70%);
    border-radius: 50%;
    top: -200px;
    left: -100px;
    filter: blur(100px);
}

.orb-cyan {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 144, 255, 0.08) 0%, rgba(0, 144, 255, 0) 70%);
    border-radius: 50%;
    top: 25%;
    right: 20%;
    filter: blur(90px);
}

/* Thin circular wireframe lines */
.wireframe-circle-1 {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.025);
    border-radius: 50%;
    width: 700px;
    height: 700px;
    top: -150px;
    right: -150px;
    pointer-events: none;
}

.wireframe-circle-2 {
    position: absolute;
    border: 1px solid rgba(0, 144, 255, 0.015);
    border-radius: 50%;
    width: 900px;
    height: 900px;
    bottom: -250px;
    left: -250px;
    pointer-events: none;
}

/* Frosted Glassmorphism Panels */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(25px) saturate(170%);
    -webkit-backdrop-filter: blur(25px) saturate(170%);
    border: 1px solid var(--border-glass);
    border-radius: 0.75rem; /* Clean modern corner rounding */
    box-shadow: 0 15px 35px 0 rgba(0, 0, 0, 0.35);
}

.glass-panel-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel-hover:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-glass-hover);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

/* Frosted Glass Inputs */
.glass-input {
    background: rgba(255, 255, 255, 0.015) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    color: var(--text-primary) !important;
    backdrop-filter: blur(8px);
    border-radius: 0.5rem !important;
    transition: all 0.2s ease;
}

.glass-input:focus {
    border-color: var(--accent-cyan) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    box-shadow: 0 0 10px rgba(0, 144, 255, 0.2) !important;
    outline: none;
}

/* Glowing text and buttons */
.text-glow-cyan {
    text-shadow: 0 0 10px rgba(0, 144, 255, 0.45);
}

.glow-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glow-btn:hover {
    box-shadow: 0 0 15px rgba(0, 144, 255, 0.4);
}

/* Active status badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.status-instock {
    background: rgba(16, 185, 129, 0.08);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.status-lowstock {
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.status-outstock {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

/* Dynamic Rotations and Gear Animations */
@keyframes spin-gear {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin-gear-cw {
    animation: spin-gear 12s linear infinite;
}

.animate-spin-gear-ccw {
    animation: spin-gear 12s linear infinite reverse;
}

/* 3D Canvas Box */
#canvas3d-container {
    width: 100%;
    height: 200px;
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
}

@media (min-width: 640px) {
    #canvas3d-container {
        height: 300px;
    }
}

/* Selected navigation tab (Solid electric blue as per reference image) */
.nav-link-active {
    background: var(--accent-cyan) !important;
    color: #ffffff !important;
    border-left: none !important;
    border-radius: 0.5rem !important;
    font-weight: 600;
}

/* Style select dropdowns and option elements to ensure solid dark backgrounds */
select.glass-input,
select option {
    background-color: #0d131e !important;
    color: #ffffff !important;
}


