@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #1e40af; /* Xerox Royal Blue */
    --primary-light: #eff6ff;
    --accent: #06b6d4; /* Laser Scan Cyan */
    --success: #10b981;
    --bg-main: #f8fafc;
    --border: #e2e8f0;
    --text-heading: #1e293b;
    --text-body: #64748b;
}

body { background-color: var(--bg-main); font-family: 'Plus Jakarta Sans', sans-serif; color: var(--text-body); font-size: 0.85rem; overflow-x: hidden; }

/* --- Blur & Loader System --- */
.blur-container { transition: filter 0.8s cubic-bezier(0.4, 0, 0.2, 1); will-change: filter; }
.content-blurred { filter: blur(12px) grayscale(20%); pointer-events: none; }

#loader-wrapper {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.9); display: flex; justify-content: center; align-items: center;
    z-index: 9999; transition: opacity 0.5s ease, visibility 0.5s;
}

.loader-brand-container { position: relative; width: 90px; height: 90px; margin: 0 auto 20px; display: flex; justify-content: center; align-items: center; }
.loader-ring { position: absolute; width: 100%; height: 100%; border: 4px solid #f1f5f9; border-top: 4px solid var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
.loader-icon-inner { position: relative; overflow: hidden; padding: 10px; display: flex; justify-content: center; align-items: center; }
.scanner-laser { position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--accent); box-shadow: 0 0 12px 2px var(--accent); animation: scanMove 1.5s ease-in-out infinite; }
.storefront-sign { font-weight: 900; font-size: 1.8rem; color: var(--primary); letter-spacing: -1px; text-transform: uppercase; }
.loader-subtext { font-size: 0.7rem; color: var(--text-body); letter-spacing: 2px; text-transform: uppercase; font-weight: 700; margin-top: 5px; }

/* --- Branded Navbar --- */
.aesthetic-nav { border-bottom: 1px solid rgba(0,0,0,0.05) !important; height: 70px; }
.brand-icon-small { width: 36px; height: 36px; background: var(--primary); color: white; border-radius: 10px; display: grid; place-items: center; font-size: 1.2rem; box-shadow: 0 4px 10px rgba(30, 64, 175, 0.2); }
.brand-name { font-weight: 900; letter-spacing: -0.5px; color: var(--text-heading); font-size: 1.3rem; }
.action-pill { border-radius: 100px !important; font-size: 0.75rem !important; padding: 6px 16px !important; }

/* --- Input Styling --- */
.aesthetic-input { border-radius: 12px !important; border: 1px solid var(--border) !important; padding: 10px 15px !important; font-weight: 600; color: var(--text-heading); }
.aesthetic-input:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.08) !important; }
.form-label { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; color: #94a3b8; margin-bottom: 6px; letter-spacing: 0.5px; }

/* --- Cards & Buttons --- */
.card-premium { background: white; border-radius: 24px; padding: 1.8rem !important; }
.btn-xerox { background: var(--primary); border: none; border-radius: 12px; transition: 0.3s; padding: 12px; }
.btn-xerox:hover { transform: translateY(-2px); box-shadow: 0 8px 15px rgba(30, 64, 175, 0.2); }
.btn-premium-pdf { background: #1e293b; color: white !important; border-radius: 12px; border: none; }

/* --- Results Stats --- */
.mini-stat-card { background: white; padding: 15px 20px; border-radius: 20px; display: flex; align-items: center; gap: 15px; }
.stat-icon-box { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; }
.color-1 { background: #eff6ff; color: #3b82f6; }
.color-2 { background: #f0fdf4; color: #22c55e; }
.aesthetic-progress { height: 8px !important; border-radius: 10px !important; background: #f1f5f9 !important; }
.aesthetic-progress .progress-bar { background: var(--primary); border-radius: 10px; }

/* --- Table Styling --- */
.table-container { border-radius: 24px; background: white; overflow: hidden; }
.table thead th { background: #f8fafc; font-size: 0.65rem; font-weight: 800; color: #94a3b8; padding: 1.2rem 1rem; border-bottom: 1px solid #f1f5f9; }
.college-name { font-weight: 800; color: var(--text-heading); font-size: 0.85rem; }
.university-name { font-size: 0.65rem; font-weight: 600; margin-top: 2px; }
.badge-branch { background: #f1f5f9; color: #475569; padding: 4px 10px; border-radius: 8px; font-weight: 700; font-size: 0.7rem; }
.badge-cutoff { background: var(--primary-light); color: var(--primary); padding: 6px 12px; border-radius: 10px; font-weight: 800; border: 1px solid rgba(30,64,175,0.1); }
.choice-code { background: #fff7ed; color: #c2410c; font-family: inherit; font-weight: 800; padding: 4px 8px; border-radius: 6px; }
.badge-category { background: #fdf2f8; color: #be185d; padding: 4px 10px; border-radius: 8px; font-weight: 700; }

/* --- Animations --- */
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes scanMove { 0% { top: -10%; opacity: 0; } 50% { opacity: 1; } 100% { top: 110%; opacity: 0; } }
.animate-card-entry { animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.is-invalid { border-color: #ef4444 !important; background-color: #fef2f2 !important; }
.is-valid { border-color: #10b981 !important; }