@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&display=swap');

:root { 
    --brand: #60a5fa; 
    --brand-dark: #3b82f6; 
    --bg-glass: rgba(30, 41, 59, 0.5);
    --border-glass: rgba(255, 255, 255, 0.1);
}

body { 
    font-family: 'Outfit', sans-serif; 
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
    margin: 0; 
    color: #f8fafc;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* Base Ambient Orbs */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -10;
    opacity: 0.3;
    animation: drift 12s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.orb-1 { top: -10%; left: 10%; width: 600px; height: 600px; background: #3b82f6; }
.orb-2 { bottom: -20%; right: 10%; width: 800px; height: 800px; background: #8b5cf6; }

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -60px) scale(1.1); }
}

/* Universal Glass Container */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px; 
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); 
    border: 1px solid var(--border-glass); 
    animation: floatUp 0.8s ease forwards;
}

@keyframes floatUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Typography Overrides for legacy */
h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif !important; }

/* Global Form Standardizing */
.form-label {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 8px;
    display: block;
}

.form-control, .form-select { 
    width: 100%;
    background: rgba(15, 23, 42, 0.6) !important; 
    border: 1px solid rgba(255, 255, 255, 0.1) !important; 
    color: #f1f5f9 !important;
    padding: 14px 16px; 
    border-radius: 12px; 
    transition: all 0.3s ease;
    font-size: 0.95rem;
    margin-bottom: 15px;
    box-sizing: border-box;
    font-family: inherit;
}

.form-control:focus, .form-select:focus {
    outline: none !important;
    background: rgba(15, 23, 42, 0.8) !important;
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15) !important;
}

.form-control::placeholder { color: #475569; font-weight: 400; }

.form-select option { background: #0f172a; color: #f1f5f9; }

.btn-premium {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8); 
    color: white; 
    border: none;
    padding: 14px 24px; 
    border-radius: 12px; 
    font-weight: 700; 
    cursor: pointer;
    transition: all 0.3s ease; 
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-premium:hover {
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
    filter: brightness(1.1);
    color: white;
}

/* Re-style legacy Bootstrap components automatically */
.card, .bg-white, .bg-light, .modal-content {
    background: var(--bg-glass) !important;
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid var(--border-glass) !important;
    color: white !important;
}

.text-dark { color: #f8fafc !important; }
.text-muted, .text-secondary { color: #94a3b8 !important; }

/* =======================================
   PREMIUM UX ENGINE CLASSES
   ======================================= */

/* 1. Seamless Body Transitions */
body.fade-load {
    opacity: 0; /* Default hidden. JS fades it in. */
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Skeleton Illusion Apparatus */
.skeleton-box {
    position: relative;
    overflow: hidden;
    background-color: transparent !important;
    color: transparent !important;
    border-color: transparent !important;
    pointer-events: none;
    user-select: none;
    border-radius: 8px;
}

/* Hide children of skeleton wrappers */
.skeleton-box * {
    opacity: 0;
    visibility: hidden;
}

.skeleton-box::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        rgba(30, 41, 59, 1) 0%,
        rgba(51, 65, 85, 1) 50%,
        rgba(30, 41, 59, 1) 100%
    );
    animation: skeleton-shimmer 1.5s infinite;
    content: '';
    z-index: 100;
}

@keyframes skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

.skeleton-revealed {
    animation: emerge-data 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes emerge-data {
    0% { opacity: 0; filter: blur(4px); transform: translateY(10px); }
    100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}
