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

/* ===========================
   TOKENS & RESET
   =========================== */
:root {
  --primary:       #1a6e8e;
  --primary-light: #2490bc;
  --primary-dark:  #145a73;
  --accent:        #3db88a;
  --accent-light:  #56d4a3;
  --danger:        #e05c5c;
  --warning:       #f0a500;
  --bg:            #f4f7f9;
  --surface:       #ffffff;
  --sidebar-bg:    #ffffff;
  --text-primary:  #1e2d3d;
  --text-secondary:#5a7080;
  --text-muted:    #9ab0be;
  --border:        #e2eaf0;
  --shadow-sm:     0 2px 8px rgba(26,110,142,0.07);
  --shadow-md:     0 4px 20px rgba(26,110,142,0.10);
  --shadow-lg:     0 8px 32px rgba(26,110,142,0.13);
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     18px;
  --sidebar-width: 260px;
  --topbar-height: 64px;
  --font-body:     'Nunito', sans-serif;
  --font-heading:  'Lora', serif;
  --transition:    0.2s ease;
}

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

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ===========================
   LAYOUT
   =========================== */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  box-shadow: 2px 0 16px rgba(26,110,142,0.05);
  transition: transform var(--transition);
}

.sidebar-brand {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
}

.sidebar-brand-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.2;
}

.sidebar-brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-nav {
  padding: 20px 12px;
  flex: 1;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 8px;
  margin-bottom: 6px;
  margin-top: 16px;
}

.nav-section-label:first-child { margin-top: 0; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 2px;
  border: 1px solid transparent;
}

.nav-item:hover {
  background: #eef6fa;
  color: var(--primary);
}

.nav-item.active {
  background: linear-gradient(135deg, #e8f4f8 0%, #e0f5ec 100%);
  color: var(--primary);
  border-color: rgba(26,110,142,0.12);
}

.nav-item i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  opacity: 0.85;
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* Main content */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  height: var(--topbar-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: var(--shadow-sm);
}

.topbar-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-dark);
  flex: 1;
}

.topbar-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.topbar-date {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
  background: var(--bg);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
}

.page-content {
  padding: 28px;
  flex: 1;
}

/* ===========================
   CARDS & SURFACES
   =========================== */
.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.card-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.card-body { padding: 24px; }

/* ===========================
   STATS GRID
   =========================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.stat-card.blue::before   { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.stat-card.green::before  { background: linear-gradient(90deg, var(--accent), var(--accent-light)); }
.stat-card.orange::before { background: linear-gradient(90deg, #f0a500, #f5c842); }
.stat-card.red::before    { background: linear-gradient(90deg, var(--danger), #ef8080); }

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-card.blue   .stat-icon { background: #e8f4f8; color: var(--primary); }
.stat-card.green  .stat-icon { background: #e0f5ec; color: var(--accent); }
.stat-card.orange .stat-icon { background: #fef6e0; color: var(--warning); }
.stat-card.red    .stat-icon { background: #fde8e8; color: var(--danger); }

.stat-info { flex: 1; min-width: 0; }

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: 0 3px 10px rgba(26,110,142,0.25);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  box-shadow: 0 5px 16px rgba(26,110,142,0.35);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: white;
  box-shadow: 0 3px 10px rgba(61,184,138,0.25);
}

.btn-success:hover:not(:disabled) {
  box-shadow: 0 5px 16px rgba(61,184,138,0.35);
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger) 0%, #ef8080 100%);
  color: white;
  box-shadow: 0 3px 10px rgba(224,92,92,0.25);
}

.btn-danger:hover:not(:disabled) {
  box-shadow: 0 5px 16px rgba(224,92,92,0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover:not(:disabled) {
  background: #eef6fa;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--bg);
  color: var(--text-primary);
}

.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg { padding: 13px 24px; font-size: 0.95rem; }

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

/* ===========================
   FORMS
   =========================== */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-primary);
  background: var(--surface);
  transition: all var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(26,110,142,0.1);
}

.form-control::placeholder { color: var(--text-muted); }

select.form-control { cursor: pointer; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row.three { grid-template-columns: 1fr 1fr 1fr; }

/* ===========================
   TABLES
   =========================== */
.table-responsive { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody td {
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }

tbody tr {
  transition: background var(--transition);
}

tbody tr:hover { background: #f8fbfc; }

/* ===========================
   BADGES
   =========================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
}

.badge-success { background: #e0f5ec; color: #2a8f66; }
.badge-danger  { background: #fde8e8; color: #c04040; }
.badge-warning { background: #fef6e0; color: #b07800; }
.badge-info    { background: #e8f4f8; color: var(--primary); }
.badge-muted   { background: var(--bg); color: var(--text-muted); }

/* ===========================
   MODAL
   =========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,30,45,0.45);
  backdrop-filter: blur(3px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--bg);
  color: var(--text-primary);
}

.modal-body { padding: 20px 24px; }

.modal-footer {
  padding: 16px 24px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ===========================
   FILTERS BAR
   =========================== */
.filters-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filters-bar .form-control {
  max-width: 180px;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}

.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.search-box .form-control {
  padding-left: 36px;
  max-width: none;
}

/* ===========================
   ATTENDANCE TABLE
   =========================== */
.attendance-table tbody td { padding: 10px 14px; }

.att-status-group {
  display: flex;
  gap: 6px;
}

.att-btn {
  width: 40px;
  height: 36px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.88rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.att-btn.P {
  background: #e0f5ec;
  color: #2a8f66;
  border-color: #b8e8d4;
}

.att-btn.P.active,
.att-btn.P:hover {
  background: #3db88a;
  color: white;
  border-color: #3db88a;
  box-shadow: 0 3px 8px rgba(61,184,138,0.35);
}

.att-btn.F {
  background: #fde8e8;
  color: #c04040;
  border-color: #f5c5c5;
}

.att-btn.F.active,
.att-btn.F:hover {
  background: #e05c5c;
  color: white;
  border-color: #e05c5c;
  box-shadow: 0 3px 8px rgba(224,92,92,0.35);
}

.att-btn.J {
  background: #fef6e0;
  color: #b07800;
  border-color: #f5e2a0;
}

.att-btn.J.active,
.att-btn.J:hover {
  background: #f0a500;
  color: white;
  border-color: #f0a500;
  box-shadow: 0 3px 8px rgba(240,165,0,0.35);
}

.obs-input {
  width: 100%;
  padding: 7px 10px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.83rem;
  color: var(--text-primary);
  background: var(--surface);
  transition: border-color var(--transition);
}

.obs-input:focus {
  border-color: var(--primary-light);
  outline: none;
  box-shadow: 0 0 0 2px rgba(26,110,142,0.08);
}

/* ===========================
   ALERTS & TOASTS
   =========================== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 360px;
  animation: slideIn 0.3s ease;
  border-left: 4px solid;
}

.toast.success { border-color: var(--accent); }
.toast.error   { border-color: var(--danger); }
.toast.info    { border-color: var(--primary); }
.toast.warning { border-color: var(--warning); }

.toast-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.toast.success .toast-icon { color: var(--accent); }
.toast.error   .toast-icon { color: var(--danger); }
.toast.info    .toast-icon { color: var(--primary); }
.toast.warning .toast-icon { color: var(--warning); }

.toast-text {
  flex: 1;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-primary);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

@keyframes slideOut {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(100%); opacity: 0; }
}

/* ===========================
   EMPTY STATE
   =========================== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ===========================
   LOADING
   =========================== */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.spinner.dark {
  border-color: rgba(26,110,142,0.2);
  border-top-color: var(--primary);
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-row td {
  text-align: center;
  padding: 40px !important;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ===========================
   PAGE HEADER
   =========================== */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.page-header-left h1 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.2;
}

.page-header-left p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* ===========================
   ATTENDANCE SPECIFIC
   =========================== */
.att-filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  padding: 20px 24px;
  background: var(--bg);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.att-legend {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.att-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.att-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.att-legend-dot.P { background: var(--accent); }
.att-legend-dot.F { background: var(--danger); }
.att-legend-dot.J { background: var(--warning); }

.att-summary-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.att-summary-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.83rem;
  font-weight: 700;
}

.att-summary-chip.P { background: #e0f5ec; color: #2a8f66; }
.att-summary-chip.F { background: #fde8e8; color: #c04040; }
.att-summary-chip.J { background: #fef6e0; color: #b07800; }

/* ===========================
   DASHBOARD SPECIFIC
   =========================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.recent-attendance-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.recent-attendance-item:last-child { border-bottom: none; }

.rai-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.rai-info { flex: 1; min-width: 0; }

.rai-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rai-meta {
  font-size: 0.77rem;
  color: var(--text-muted);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .menu-toggle { display: block; }

  .form-row { grid-template-columns: 1fr; }
  .form-row.three { grid-template-columns: 1fr; }

  .att-filters {
    grid-template-columns: 1fr 1fr;
  }

  .att-filters > *:last-child {
    grid-column: 1 / -1;
  }

  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .page-content { padding: 16px; }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .att-filters { grid-template-columns: 1fr; }

  .filters-bar .form-control { max-width: none; flex: 1; }

  .topbar { padding: 0 16px; }
}

/* ===========================
   UTILITIES
   =========================== */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.d-flex      { display: flex; }
.align-center { align-items: center; }
.gap-8       { gap: 8px; }
.gap-12      { gap: 12px; }
.mb-16       { margin-bottom: 16px; }
.mb-24       { margin-bottom: 24px; }
.fw-bold     { font-weight: 700; }
.text-muted  { color: var(--text-muted); }
.text-sm     { font-size: 0.82rem; }

.confirm-dialog {
  position: fixed;
  inset: 0;
  background: rgba(15,30,45,0.45);
  backdrop-filter: blur(3px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.confirm-dialog.open {
  opacity: 1;
  pointer-events: all;
}

.confirm-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.confirm-dialog.open .confirm-box { transform: scale(1); }

.confirm-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fde8e8;
  color: var(--danger);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.confirm-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.confirm-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

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

.overlay-bg {
  position: fixed;
  inset: 0;
  background: rgba(15,30,45,0.2);
  z-index: 95;
  display: none;
}

.overlay-bg.show { display: block; }
