/* static/css/site.css */

:root {
    --bg-deep: #050511;       /* Very dark blue/black base */
    --bg-gradient: linear-gradient(135deg, #050511 0%, #0a0a2e 100%);
    --accent-primary: #3b82f6; /* Bright Blue */
    --accent-glow: #6366f1;    /* Purple/Indigo Glow */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #d1d5db;
}

body {
    background: var(--bg-deep);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(99, 102, 241, 0.08), transparent 25%);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ✅ NEW: Force Bootstrap to use our readable grey */
.text-muted {
    color: var(--text-muted) !important;
}

/* ─── GLASSMORPHISM UTILITIES ─── */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

/* ─── TYPOGRAPHY & GRADIENTS ─── */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; }

.text-gradient {
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── BUTTONS ─── */
.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    color: white;
}

.btn-primary-glow {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-glow));
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    transition: all 0.3s;
}
.btn-primary-glow:hover {
    box-shadow: 0 0 35px rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
    color: white;
}

/* ─── NAVBAR ─── */
.navbar-glass {
    background: rgba(5, 5, 17, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Global Form Styles for Glass Theme */
.form-control, .form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white !important;
    font-family: 'Inter', sans-serif;
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    color: white !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

/* Placeholder Visibility */
.form-control::placeholder { color: rgba(255, 255, 255, 0.6) !important; opacity: 1; }
.form-control::-webkit-input-placeholder { color: rgba(255, 255, 255, 0.6) !important; }
.form-control::-moz-placeholder { color: rgba(255, 255, 255, 0.6) !important; opacity: 1; }

/* Autofill Fix */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0b0b26 inset !important;
    -webkit-text-fill-color: white !important;
    caret-color: white !important;
    font-family: 'Inter', sans-serif !important;
    transition: background-color 5000s ease-in-out 0s;
}