/* ── ClaimLens AI — Layout & Base Styles ──────────────────────────────────── */

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

:root {
  --navy-950: #060D1A; --navy-900: #0A1628; --navy-800: #0D1F3C;
  --navy-700: #122448; --navy-600: #1A3158; --navy-500: #1E4080;
  --blue-700: #1D4ED8; --blue-600: #1E5FC4; --blue-500: #1E6FD9;
  --blue-400: #3B82F6; --blue-300: #60A5FA; --blue-100: #DBEAFE;
  --white: #FFFFFF; --gray-50: #F8FAFC; --gray-100: #F1F5F9;
  --gray-200: #E2E8F0; --gray-300: #CBD5E1; --gray-400: #94A3B8;
  --gray-500: #64748B; --gray-600: #475569; --gray-700: #334155; --gray-800: #1E293B;
  --success: #10B981; --success-light: #D1FAE5; --success-dark: #065F46;
  --warning: #F59E0B; --warning-light: #FEF3C7; --warning-dark: #92400E;
  --danger: #EF4444; --danger-light: #FEE2E2; --danger-dark: #991B1B;
  --sidebar-width: 256px; --header-height: 64px;
  --radius: 8px; --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 6px rgba(0,0,0,.07);
  --shadow-md: 0 8px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 20px 40px rgba(0,0,0,.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: 'Inter', system-ui, sans-serif; font-size: 14px; line-height: 1.5; color: var(--gray-800); background: var(--gray-50); }

/* ── App Layout ──────────────────────────────────────────────────────────── */
.app-layout { display: flex; height: 100vh; overflow: hidden; }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.sidebar { width: var(--sidebar-width); background: var(--navy-900); display: flex; flex-direction: column; flex-shrink: 0; overflow-y: auto; }
.sidebar-logo { padding: 22px 20px; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 38px; height: 38px; background: linear-gradient(135deg, var(--blue-500), var(--blue-300)); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-text h1 { font-size: 16px; font-weight: 700; color: var(--white); letter-spacing: -.3px; }
.logo-text span { font-size: 10px; color: var(--blue-300); font-weight: 500; text-transform: uppercase; letter-spacing: .6px; }
.sidebar-nav { padding: 14px 0; flex: 1; }
.nav-section-label { padding: 8px 20px 4px; font-size: 10px; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: .8px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 20px; margin: 2px 8px; border-radius: var(--radius); cursor: pointer; color: var(--gray-400); font-weight: 500; font-size: 14px; text-decoration: none; transition: all .15s; }
.nav-item:hover { background: rgba(255,255,255,.06); color: var(--white); }
.nav-item.active { background: rgba(30,111,217,.2); color: var(--blue-300); }
.nav-icon { width: 17px; height: 17px; flex-shrink: 0; }
.nav-badge { margin-left: auto; background: var(--danger); color: white; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 10px; min-width: 18px; text-align: center; }
.sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.08); color: var(--gray-500); font-size: 12px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }

/* ── Main Content ────────────────────────────────────────────────────────── */
.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.main-header { height: var(--header-height); background: var(--white); border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; padding: 0 32px; flex-shrink: 0; }
.header-title h2 { font-size: 20px; font-weight: 700; color: var(--navy-900); letter-spacing: -.4px; }
.header-title p { font-size: 13px; color: var(--gray-500); margin-top: 1px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.content-area { flex: 1; overflow-y: auto; padding: 32px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1100px) { .stats-grid { grid-template-columns: repeat(2,1fr) !important; } }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr !important; } .reviewer-actions { grid-template-columns: 1fr !important; } }
@media (max-width: 768px) { .sidebar { display: none; } .content-area { padding: 20px 16px; } .main-header { padding: 0 16px; } .form-grid-2 { grid-template-columns: 1fr !important; } }

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeIn .25s ease; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Login Screen ───────────────────────────────────────────────────────── */
.login-screen { position: fixed; inset: 0; background: var(--navy-900); display: flex; align-items: center; justify-content: center; z-index: 3000; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.login-screen::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(30,111,217,.15) 0%, transparent 60%); pointer-events: none; }
.login-card { position: relative; width: 100%; max-width: 400px; margin: 20px; padding: 48px 40px; background: var(--white); border-radius: 16px; box-shadow: 0 25px 60px rgba(0,0,0,.4); animation: loginFadeIn .5s ease; }
.login-logo { text-align: center; margin-bottom: 36px; }
.login-logo-icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--blue-500), var(--blue-300)); border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; box-shadow: 0 8px 24px rgba(30,111,217,.3); }
.login-brand { font-size: 26px; font-weight: 800; color: var(--navy-900); letter-spacing: -.5px; margin-bottom: 2px; }
.login-tagline { font-size: 12px; font-weight: 600; color: var(--blue-500); text-transform: uppercase; letter-spacing: 1.5px; }
.login-label { display: block; font-size: 14px; font-weight: 500; color: var(--gray-500); margin-bottom: 10px; text-align: center; }
.login-input-wrap { position: relative; margin-bottom: 8px; }
.login-input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-400); pointer-events: none; }
.login-input { width: 100%; padding: 13px 14px 13px 44px; border: 2px solid var(--gray-200); border-radius: 10px; font-size: 16px; font-family: inherit; color: var(--gray-800); background: var(--gray-50); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.login-input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(30,111,217,.12); background: var(--white); }
.login-error { font-size: 13px; color: var(--danger); min-height: 20px; padding: 2px 0; }
.login-btn { width: 100%; padding: 14px; background: var(--blue-500); color: white; border: none; border-radius: 10px; font-size: 16px; font-weight: 600; font-family: inherit; cursor: pointer; transition: background .15s, transform .1s; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; min-height: 48px; }
.login-btn:hover { background: var(--blue-700); }
.login-btn:active { transform: scale(.98); }
.login-btn:disabled { opacity: .7; cursor: not-allowed; }
.login-footer { text-align: center; margin-top: 28px; font-size: 12px; color: var(--gray-400); }
@keyframes loginFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes loginShake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-8px); } 40%,80% { transform: translateX(8px); } }
.login-shake { animation: loginShake .4s ease; }
@media (max-width: 480px) {
  .login-card { padding: 36px 24px; margin: 16px; border-radius: 14px; }
  .login-logo { margin-bottom: 28px; }
  .login-logo-icon { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 12px; }
  .login-brand { font-size: 22px; }
  .login-tagline { font-size: 11px; letter-spacing: 1.2px; }
  .login-footer { margin-top: 20px; }
}

/* ── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); }
