:root {
  --bg-color: #020617;
  --surface-color: rgba(15, 23, 42, 0.7);
  --border-color: rgba(139, 92, 246, 0.3);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --accent-navy: #1e3a8a;
  --accent-purple: #8b5cf6;
  --accent-deep: #4c1d95;
  --radius: 12px;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: radial-gradient(circle at top right, #1e1b4b, #020617, #0f172a);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
}

.container { max-width: 1000px; margin: 0 auto; padding: 3rem 1.5rem; }

header { text-align: center; margin-bottom: 4rem; }
h1 { font-size: 3.5rem; font-weight: 900; background: linear-gradient(135deg, #fff, var(--accent-purple)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -2px; }

/* Cards */
.card {
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  margin-bottom: 2rem;
}

/* Choice Cards */
.choice-card {
  background: rgba(30, 41, 59, 0.6) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
}

/* Forms */
.form-section { display: flex; flex-direction: column; gap: 2rem; }
.input-group { display: flex; flex-direction: column; gap: 0.7rem; }
label { font-size: 0.95rem; font-weight: 700; color: #cbd5e1; }
input, textarea, select {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.8rem;
  padding: 1.1rem 1.25rem;
  color: #f8fafc !important;
}

/* Status Badges */
.badge-status {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    text-transform: uppercase;
}
.st-low { color: #ef4444; background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); }
.st-med { color: #f59e0b; background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); }
.st-high { color: #10b981; background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); }

/* Mission UI */
.mission-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    border-radius: 1.2rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.mission-item.completed { border-color: var(--accent-purple); background: rgba(139, 92, 246, 0.12); }
.mission-check { width: 28px; height: 28px; border: 2px solid rgba(255, 255, 255, 0.2); border-radius: 50%; transition: all 0.3s; }
.mission-item.completed .mission-check { background: var(--accent-purple); border-color: var(--accent-purple); }

/* Tabs */
.tab-container {
  display: flex; gap: 0.8rem; margin-bottom: 2.5rem; padding: 0.6rem;
  background: rgba(15, 23, 42, 0.9); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 1.2rem; width: fit-content;
}
.tab-btn { background: transparent; padding: 0.8rem 1.6rem; font-size: 1rem; font-weight: 700; color: var(--text-secondary); border: none; cursor: pointer; border-radius: 0.8rem; }
.tab-btn.active { background: var(--accent-purple); color: white; }

/* Grid */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

/* Roadmap UI */
.roadmap-tracker { display: flex; flex-direction: column; gap: 3.5rem; position: relative; padding-left: 3.5rem; }
.roadmap-tracker::before { content: ''; position: absolute; left: 17px; top: 10px; bottom: 15px; width: 2.5px; background: linear-gradient(to bottom, var(--accent-purple), var(--accent-deep), transparent); }
.step-icon { position: absolute; left: -35px; top: 5px; width: 34px; height: 34px; background: var(--accent-purple); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; font-weight: 900; color: white; box-shadow: 0 0 20px rgba(139, 92, 246, 0.5); z-index: 2; }

/* Actions */
.badge-cert { background: rgba(139, 92, 246, 0.2); border: 1px solid var(--accent-purple); color: #fff; padding: 0.6rem 1.2rem; border-radius: 50px; font-size: 0.85rem; font-weight: 700; transition: all 0.3s; }
.badge-cert:hover { transform: translateY(-3px); background: var(--accent-purple); }

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

button { background: linear-gradient(135deg, var(--accent-purple), var(--accent-deep)); color: white; border: none; border-radius: 1rem; padding: 1.25rem 2.5rem; font-weight: 800; font-size: 1.15rem; cursor: pointer; transition: all 0.3s; }
button:hover:not(:disabled) { transform: translateY(-3px); filter: brightness(1.1); box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4); }

.result-section { display: none; }
.loader { width: 60px; height: 60px; border: 4.5px solid rgba(255, 255, 255, 0.1); border-bottom-color: var(--accent-purple); border-radius: 50%; animation: rotation 1s linear infinite; margin: 0 auto; }
@keyframes rotation { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
