/* ================================================================
   SERP-AP FPO Graduation Tool — Premium Design System v2.0
   ================================================================ */

:root {
  --primary:         #0073e6;
  --primary-rgb:      0, 115, 230;
  --primary-dark:    #005bb5;
  --primary-light:   #e8f2ff;
  --navy:            #0d1b2e;
  --navy-mid:        #16243a;
  --bg:              #f4f7fa;
  --card-bg:         #ffffff;
  --text:            #1e293b;
  --text-muted:      #64748b;
  --success:         #198754;
  --warning:         #fd7e14;
  --danger:          #dc3545;
  --info:            #20c997;
  --border:          #e2e8f0;
  --radius:          16px;
  --speed:           0.3s;
}

/* Dark Mode Overrides */
[data-bs-theme="dark"] {
  --bg:              #0a111a;
  --card-bg:         #131d2b;
  --text:            #f1f5f9;
  --text-muted:      #94a3b8;
  --border:          #1e293b;
  --primary-light:   #1e293b;
}

body {
  font-family: 'Inter', 'Outfit', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── NAVBAR ── */
.fpo-navbar {
  background: var(--navy);
  border-bottom: 3px solid var(--primary);
  padding: 0.75rem 0;
  backdrop-filter: blur(10px);
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), #00c6ff);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 115, 230, 0.4);
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 1.1rem;
  color: #fff;
}

/* ── BUTTONS ── */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: 12px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

/* ── CARDS ── */
.fpo-selector-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.05);
}

.overall-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
}

.section-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--speed) cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
  height: 100%;
}
.section-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  border-color: var(--primary);
}

.section-card-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

/* ── DASHBOARD UI ── */
.overall-percent {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  font-family: 'Outfit', sans-serif;
}

.fpo-progress-lg {
  height: 14px;
  background: rgba(0,0,0,0.05);
  border-radius: 20px;
  overflow: hidden;
}

.fpo-progress {
  height: 8px;
  border-radius: 10px;
  background: rgba(0,0,0,0.05);
}

/* ── INDICATORS ── */
.indicator-card {
  display: flex;
  gap: 1rem;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--border);
}
.indicator-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.indicator-icon.met { background: rgba(25, 135, 84, 0.1); color: var(--success); }
.indicator-icon.gap { background: rgba(253, 126, 20, 0.1); color: var(--warning); }

/* ── TABLES ── */
.fpo-table {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.fpo-table thead th {
  background: var(--navy);
  color: #fff;
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  padding: 1rem;
}
.fpo-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.section-card, .overall-card, .indicator-card {
  animation: fadeInUp 0.5s ease both;
}

/* ── UTILITIES ── */
.x-small { font-size: 0.7rem; }
.no-resize { resize: none; }

/* 5 Column Grid for UHD Screens */
@media (min-width: 1200px) {
  .col-xl-2-4 {
    flex: 0 0 auto;
    width: 20%;
  }
}

.ls-1 { letter-spacing: 0.5px; }

.bench-stat {
    line-height: 1;
}

.btn-details-mini {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
}

.btn-details-mini:hover {
    filter: brightness(0.95);
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Step-by-step list styling */
.indicator-body ol, .indicator-body ul, 
.card-body ol, .card-body ul,
.fpo-table ol, .fpo-table ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.indicator-body li, .card-body li, .fpo-table li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
