:root {
    --primary: #00f2fe;
    --secondary: #00f26e;
    --accent: #2c4a8a;
    --warning: #ff8c00;
    --danger: #e74c3c;
    --bg-dark: #0f172a;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-heavy: rgba(15, 23, 42, 0.9);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --glow: rgba(0, 242, 254, 0.4);
    --shadow-3d: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 254, 0.1);
}

body {
    background: var(--bg-dark) !important;
    font-family: 'Outfit', sans-serif !important;
    color: var(--text-main) !important;
    margin: 0;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* 3D Background Shapes (Floating Gradients) */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.15), transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: float 20s infinite ease-in-out;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(0, 242, 110, 0.1), transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(40px, 30px);
    }
}

.shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 20s infinite alternate;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -300px;
    left: -300px;
    opacity: 0.15;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    bottom: -250px;
    right: -250px;
    opacity: 0.1;
    animation-delay: -5s;
}

.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

header,
.top-nav {
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.sidebar {
    background: rgba(15, 23, 42, 0.7) !important;
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border) !important;
    box-shadow: 15px 0 40px rgba(0, 0, 0, 0.4) !important;
}

.sidebar-menu li a {
    color: #cbd5e1 !important;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: linear-gradient(90deg, rgba(0, 242, 254, 0.1), transparent) !important;
    color: #fff !important;
    border-left: 3px solid var(--primary) !important;
}

.stat-card-new {
    background: var(--glass) !important;
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--shadow-3d) !important;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card-new:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: var(--shadow-premium) !important;
}

.stat-card-footer {
    background: rgba(255, 255, 255, 0.02) !important;
    border-top: 1px solid var(--glass-border) !important;
    color: var(--text-muted) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #ffffff !important;
}

p,
small {
    color: var(--text-muted) !important;
}

/* 3D Modern Buttons */
.btn-3d-primary {
    background: linear-gradient(135deg, var(--primary), #00d2ff);
    color: #000 !important;
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    transition: all 0.2s;
    cursor: pointer;
}

.btn-3d-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
}

.btn-3d-primary:active {
    transform: translateY(1px);
}

.btn-3d-orange {
    background: linear-gradient(135deg, var(--warning), #ff6a00);
    color: #fff !important;
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    transition: all 0.2s;
    cursor: pointer;
}

.btn-3d-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 20px;
}

.grid-row {
    display: grid;
    gap: 20px;
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-4,
    .grid-2 {
        grid-template-columns: 1fr !important;
    }
}

/* Responsive Utilities */
.mobile-only {
    display: none !important;
}

@media (max-width: 992px) {
    .hide-on-tablet {
        display: none !important;
    }

    .stack-on-tablet {
        flex-direction: column !important;
        display: flex !important;
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 992px) {
    .mobile-only {
        display: block !important;
    }

    .hide-on-mobile {
        display: none !important;
    }

    .stack-on-mobile {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .stack-on-mobile>div,
    .stack-on-mobile>section,
    .stack-on-mobile>aside,
    .stack-on-mobile>table,
    .stack-on-mobile>form,
    .stack-on-mobile>canvas,
    .stack-on-mobile>.glass-panel,
    .stack-on-mobile>.settings-card,
    .stack-on-mobile>.stat-card-new {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px !important;
        box-sizing: border-box !important;
    }

    body {
        display: block !important;
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .hero-content h1 {
        font-size: 40px !important;
    }

    .hero-content p {
        font-size: 16px !important;
    }

    .section-dark {
        padding: 60px 5% !important;
    }

    h1 {
        font-size: 32px !important;
    }

    h2 {
        font-size: 24px !important;
    }

    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .benefits-grid {
        grid-template-columns: 1fr !important;
    }

    .check-list {
        grid-template-columns: 1fr !important;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        padding: 30px 5% !important;
    }

    .top-nav {
        padding: 0 15px !important;
    }

    .top-nav-right {
        gap: 10px !important;
    }

    .nav-btn {
        padding: 5px 10px !important;
        font-size: 11px !important;
    }

    .user-profile-nav span {
        display: none;
    }
}

/* Animation for Sidebar */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}