/* Global Variables & Reset */
:root {
    /* Background Image Override */
    --bg-gradient: url('/bg_dash.webp');
    --bg-color-fallback: #1a1a1a;
    
    --text-color: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --primary-color: #007bff;
    --primary-hover: #0056b3;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color-fallback);
    background-image: var(--bg-gradient);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Scrollbars - Glassmorphism */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Frosted Glass Effect */
.frosted {
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.frosted::before {
    content: "";
    border-radius: inherit;
    position: absolute;
    inset: 0;
    z-index: -1;
    backdrop-filter: blur(1rem);
    -webkit-backdrop-filter: blur(1rem);
    background-color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

/* Alternative Frosted (SVG Filter) - requires SVG in HTML */
.frosted-svg {
    position: relative;
    overflow: hidden;
}
.frosted-svg::before {
    content: "";
    border-radius: inherit;
    position: absolute;
    inset: 0;
    z-index: -1;
    filter: url(#ice);
    background-color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

/* Common Components */
.btn {
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
}

a {
    text-decoration: none;
    color: inherit;
}

