* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    background-image: var(--bg-gradient);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    padding: 0px;
    padding-top: 64px;
    /* Matches top-bar height */
}

/* ============================================
   SCROLLBAR STYLING - Minimalist Black & White
   ============================================ */

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) rgba(0, 0, 0, 0.3);
}

html.light-mode * {
    scrollbar-color: rgba(15, 23, 42, 0.4) rgba(15, 23, 42, 0.1);
}

/* WebKit Browsers (Chrome, Safari, Edge) */
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    margin: 2px;
}

html.light-mode *::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.08);
}

*::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.05);
    transition: all var(--transition-fast);
}

html.light-mode *::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(15, 23, 42, 0.2);
    box-shadow: 0 0 4px rgba(15, 23, 42, 0.08);
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

html.light-mode *::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.45);
    border-color: rgba(15, 23, 42, 0.3);
    box-shadow: 0 0 8px rgba(15, 23, 42, 0.12);
}

*::-webkit-scrollbar-thumb:active {
    background: rgba(255, 255, 255, 0.32);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

html.light-mode *::-webkit-scrollbar-thumb:active {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(15, 23, 42, 0.35);
    box-shadow: 0 0 10px rgba(15, 23, 42, 0.15);
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.loading {
    background: linear-gradient(90deg,
            var(--bg-card) 0%,
            var(--bg-card-hover) 50%,
            var(--bg-card) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}