/* Glassmorphism 2026 - Premium UI */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-dark: #050505;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --neon-accent: #d31515;
    --neon-secondary: #7000ff;
    --neon-success: #00ff9d;
    --neon-danger: #ff0055;
    --blur-val: 20px;
}

body {
    background: radial-gradient(circle at top left, #0f172a, #000000);
    font-family: 'Outfit', sans-serif;
    color: #e2e8f0;
    min-height: 100vh;
    overflow-x: hidden;
    background-attachment: fixed;
}

/* --- Animated Background Mesh --- */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 50% 50%, rgba(112, 0, 255, 0.15), transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(0, 242, 255, 0.1), transparent 40%);
    animation: bg-spin 20s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes bg-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* --- Glassmorphism Utils --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-val));
    -webkit-backdrop-filter: blur(var(--blur-val));
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    position: relative;
    --hover-neon: #00f2ff;
    /* Default fallback */
}

/* Dynamic Border Glow (Spotlight Effect) */
.glass-panel::before {
    content: "";
    position: absolute;
    inset: -1px;
    /* Slightly larger to cover existing border */
    border-radius: inherit;
    padding: 2px;
    /* Border thickness */
    background: radial-gradient(350px circle at var(--x, 50%) var(--y, 50%),
            var(--hover-neon),
            transparent 40%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.glass-panel:hover::before {
    opacity: 1;
}

.glass-panel:hover {
    transform: translateY(-5px);
    /* Removed static box-shadow to prefer the moving border */
}

/* --- Typography & Elements --- */
h1,
h2,
h3 {
    letter-spacing: -0.02em;
}

/* Neon Text */
.text-neon {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px var(--neon-accent);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-accent);
}

/* --- UI Components --- */

/* Buttons */
.btn-premium {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-premium:hover::after {
    left: 100%;
}

.btn-premium:hover {
    border-color: var(--neon-accent);
    box-shadow: 0 0 15px var(--neon-accent);
    text-shadow: 0 0 5px white;
}

/* Stats Cards */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-accent), var(--neon-secondary));
    opacity: 0.5;
}

/* Inputs */
.input-glass {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: white;
    transition: 0.3s;
}

.input-glass:focus {
    border-color: var(--neon-accent);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
    outline: none;
}

/* Animations table */
.animate-enter {
    animation: slideUp 0.6s ease forwards;
    opacity: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness for Table */
@media (max-width: 768px) {
    .table-responsive thead {
        display: none;
    }

    .table-responsive tr {
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1rem 0;
    }

    .table-responsive td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
    }

    .table-responsive td::before {
        content: attr(data-label);
        font-weight: bold;
        color: rgba(255, 255, 255, 0.5);
    }
}