/* ===== BASE ===== */
* { box-sizing: border-box; }
body { font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; }

/* ===== SIDEBAR ===== */
.sidebar { transition: transform 0.3s ease; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-link:hover {
  background-color: rgba(255,255,255,0.08);
  color: #f1f5f9;
}

.nav-link.active {
  background-color: #aff400;
  color: #212029;
  font-weight: 600;
}

/* ===== MAIN CONTENT ===== */
@media (max-width: 768px) {
  .main-content { margin-left: 0 !important; padding-top: 72px !important; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
}

/* ===== KPI CARDS ===== */
.kpi-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(0,0,0,0.15);
}

/* ===== STEP INDICATOR ===== */
.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.step-dot.active {
  background: #aff400;
  color: #212029;
}

.step-dot.done {
  background: #22c55e;
  color: white;
}

.step-line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.1);
  transition: background 0.3s ease;
}

.step-line.done {
  background: #22c55e;
}

/* ===== FORMS ===== */
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  color: #1e293b;
  background: #f8fafc;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: #aff400;
  background: white;
}

.form-input::placeholder { color: #94a3b8; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: #aff400;
  color: #212029;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: #9ddd00; }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  background: white;
  color: #475569;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
}
.btn-secondary:hover { background: #f8fafc; border-color: #cbd5e1; }

.btn-success {
  background: #22c55e;
  color: white;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s;
}
.btn-success:hover { background: #16a34a; }

/* ===== PROGRESS BAR ===== */
.progress-bar-bg {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s ease;
}

/* ===== PERCENTUAL ROW ===== */
.pct-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pct-label { font-size: 13px; color: #475569; width: 140px; flex-shrink: 0; }
.pct-bar-wrap { flex: 1; }
.pct-value { font-size: 13px; font-weight: 700; width: 48px; text-align: right; }

/* ===== TABLE ===== */
table { border-collapse: collapse; }
tbody tr { border-bottom: 1px solid #f1f5f9; transition: background 0.15s; }
tbody tr:hover { background: #fafafa; }
tbody tr:last-child { border-bottom: none; }
th { font-weight: 600; letter-spacing: 0.03em; }

/* ===== TOOLTIP ===== */
.tooltip {
  position: relative;
  display: inline-flex;
}
.tooltip-text {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: white;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 10;
}
.tooltip:hover .tooltip-text { opacity: 1; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page:not(.hidden) { animation: fadeIn 0.25s ease; }

@keyframes pulse-accent {
  0%, 100% { box-shadow: 0 0 0 0 rgba(175,244,0,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(175,244,0,0); }
}
.pulse-accent { animation: pulse-accent 2s infinite; }
