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

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

:root {
  --primary:      #6366f1;
  --primary-dark: #4f46e5;
  --text:         #111827;
  --text-light:   #374151;
  --muted:        #6b7280;
  --border:       #e5e7eb;
  --bg:           #f8fafc;
  --white:        #ffffff;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow-sm:    0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow:       0 8px 24px rgba(0, 0, 0, 0.08);
  --anim:         0.55s cubic-bezier(0.77, 0, 0.175, 1);
}

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ─── PAGE LOADING OVERLAY (used by all pages) ────────── */
.page-loading {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 200;
  transition: opacity 0.18s ease;
}

.page-loading.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* ─── CONFIRMATION MODAL ──────────────────────────────── */
.confirm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: backdropIn 0.15s ease;
}

@keyframes backdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.confirm-box {
  background: var(--white);
  border-radius: 14px;
  padding: 28px 32px;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  animation: boxIn 0.15s ease;
}

@keyframes boxIn {
  from { transform: scale(0.93); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.confirm-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.confirm-msg {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.confirm-cancel {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-light);
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.confirm-cancel:hover {
  border-color: var(--text-light);
  color: var(--text);
}

.confirm-ok {
  background: #ef4444;
  color: var(--white);
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.confirm-ok:hover { background: #dc2626; }
