/* assets/css/dashboard.css — ScoutAI Custom Styles */

/* ─── BASE ──────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #080d1c; overflow-x: hidden; }

/* ─── GLASSMORPHISM ─────────────── */
.glass { background: rgba(30, 41, 59, 0.5); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(148, 163, 184, 0.1); }
.glass-card { background: rgba(30, 41, 59, 0.4); backdrop-filter: blur(16px); border: 1px solid rgba(148, 163, 184, 0.08); border-radius: 1rem; padding: 1.5rem; transition: all 0.3s ease; }
.glass-card:hover { border-color: rgba(59, 130, 246, 0.2); box-shadow: 0 8px 32px rgba(59, 130, 246, 0.08); }

/* ─── GRADIENTS ──────────────────── */
.gradient-brand { background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%); }
.gradient-success { background: linear-gradient(135deg, #10b981, #34d399); }
.gradient-warning { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.gradient-danger { background: linear-gradient(135deg, #ef4444, #f87171); }
.gradient-purple { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }

/* ─── STAT CARDS ─────────────────── */
.stat-card { position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: -50%; right: -50%; width: 100%; height: 100%; background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%); pointer-events: none; }

/* ─── ANIMATIONS ─────────────────── */
.fade-in { animation: fadeIn 0.5s ease forwards; opacity: 0; }
.slide-up { animation: slideUp 0.5s ease forwards; opacity: 0; transform: translateY(20px); }
.scale-in { animation: scaleIn 0.4s ease forwards; opacity: 0; transform: scale(0.95); }

@keyframes fadeIn { to { opacity: 1; } }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { to { opacity: 1; transform: scale(1); } }
@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 5px rgba(59,130,246,0.3); } 50% { box-shadow: 0 0 20px rgba(59,130,246,0.6); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

.pulse-glow { animation: pulse-glow 2s infinite; }

/* ─── PROGRESS BAR ───────────────── */
.progress-bar { height: 6px; border-radius: 3px; background: rgba(148,163,184,0.1); overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 3px; transition: width 1s ease; background: linear-gradient(90deg, #3b82f6, #8b5cf6); }

/* ─── RANK BADGE ─────────────────── */
.rank-badge { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; font-weight: 700; font-size: 0.875rem; }
.rank-1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1a1a1a; box-shadow: 0 4px 15px rgba(245,158,11,0.4); }
.rank-2 { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #1a1a1a; }
.rank-3 { background: linear-gradient(135deg, #d97706, #b45309); color: white; }

/* ─── SCORE CIRCLE ───────────────── */
.score-circle { position: relative; width: 120px; height: 120px; }
.score-circle svg { transform: rotate(-90deg); }
.score-circle-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* ─── TABLE ──────────────────────── */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.data-table th { padding: 0.75rem 1rem; text-align: left; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; border-bottom: 1px solid rgba(148,163,184,0.1); }
.data-table td { padding: 0.75rem 1rem; font-size: 0.875rem; border-bottom: 1px solid rgba(148,163,184,0.05); }
.data-table tr:hover td { background: rgba(59,130,246,0.04); }

/* ─── FORM INPUTS ────────────────── */
.form-input { width: 100%; padding: 0.625rem 1rem; background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(148,163,184,0.15); border-radius: 0.75rem; color: #e2e8f0; font-size: 0.875rem; transition: all 0.2s; outline: none; }
.form-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.form-input::placeholder { color: #475569; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

/* ─── BUTTONS ────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.625rem 1.25rem; border-radius: 0.75rem; font-size: 0.875rem; font-weight: 600; border: none; cursor: pointer; transition: all 0.2s; outline: none; }
.btn-primary { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; box-shadow: 0 4px 15px rgba(59,130,246,0.3); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(59,130,246,0.45); transform: translateY(-1px); }
.btn-secondary { background: rgba(148,163,184,0.1); color: #cbd5e1; border: 1px solid rgba(148,163,184,0.15); }
.btn-secondary:hover { background: rgba(148,163,184,0.2); color: white; }
.btn-danger { background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.2); }
.btn-danger:hover { background: rgba(239,68,68,0.25); }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.75rem; }

/* ─── SIDEBAR ────────────────────── */
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.15); border-radius: 2px; }

/* ─── MODAL ──────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-content { background: #1e293b; border: 1px solid rgba(148,163,184,0.15); border-radius: 1.5rem; max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 2rem; }

/* ─── LOADING SKELETON ───────────── */
.skeleton { background: linear-gradient(90deg, rgba(148,163,184,0.05) 25%, rgba(148,163,184,0.1) 50%, rgba(148,163,184,0.05) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 0.5rem; }

/* ─── RESPONSIVE ─────────────────── */
@media (max-width: 768px) {
    .main-content { padding: 1rem; padding-top: 4rem; }
    .glass-card { padding: 1rem; }
    .stat-card .text-3xl { font-size: 1.5rem; }
}

@media (max-width: 640px) {
    .data-table { font-size: 0.75rem; }
    .data-table th, .data-table td { padding: 0.5rem; }
}

/* ─── PRINT ──────────────────────── */
@media print {
    body { background: white !important; color: black !important; }
    .glass, .glass-card { background: white !important; border: 1px solid #ddd !important; backdrop-filter: none !important; }
    .gradient-text { -webkit-text-fill-color: #1e40af !important; }
    canvas { max-width: 100% !important; }
}
