/* ============================================================
   LCR MANDAL ERP — PAGE-SPECIFIC STYLES
   Dashboard, Varganidaar, Sahakari, Madatnis,
   Communication, Reports, Settings, Login
   ============================================================ */

/* ════════════════════════════════════════════════════════════
   LOGIN PAGE
   ════════════════════════════════════════════════════════════ */

.login-page {
  min-height: 100vh;
  display: flex;
  background: #0D0203;
}

/* Left Hero Side */
.login-hero {
  flex: 1.1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-12);
  overflow: hidden;
}

/* SVG Mandala background */
.login-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(183,28,28,0.5), transparent),
    radial-gradient(ellipse 60% 40% at 30% 60%, rgba(212,175,55,0.15), transparent),
    linear-gradient(160deg, #1A0505 0%, #3D0808 35%, #1A0A00 70%, #0D0203 100%);
}

.hero-mandala {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.12;
  pointer-events: none;
}

.hero-mandala svg {
  width: 85%;
  height: 85%;
  animation: mandalaRotate 120s linear infinite;
}

/* Temple light effect */
.temple-light {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 600px;
  background: radial-gradient(ellipse at top center, rgba(212,175,55,0.18) 0%, transparent 60%);
  pointer-events: none;
}

/* Decorative geometric pattern */
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(212,175,55,0.02) 0px, rgba(212,175,55,0.02) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(-45deg, rgba(212,175,55,0.02) 0px, rgba(212,175,55,0.02) 1px, transparent 1px, transparent 40px);
  pointer-events: none;
}

/* Gold top border */
.login-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), var(--gold), transparent);
}

/* Floating ornament */
.hero-ornament {
  position: absolute;
  top: var(--space-12);
  right: var(--space-12);
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
}

/* Logo on hero */
.hero-logo-badge {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(183,28,28,0.8), rgba(127,0,0,0.9));
  border: 2px solid rgba(212,175,55,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  margin-bottom: var(--space-6);
  box-shadow: 0 8px 32px rgba(212,175,55,0.2);
  animation: glow 3s ease-in-out infinite;
}

.hero-brand {
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: var(--fw-bold);
  color: white;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}

.hero-title span { color: var(--gold); }

.hero-taglines {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-left: var(--space-1);
  border-left: 3px solid var(--gold);
  margin-top: var(--space-4);
}

.hero-tagline {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.7);
  font-weight: var(--fw-light);
  letter-spacing: 0.01em;
}

/* Stats strip at bottom */
.hero-stats {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 1;
}

.hero-stat-value {
  font-size: 28px;
  font-weight: var(--fw-black);
  color: var(--gold);
  line-height: 1;
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── RIGHT SIDE ─────────────────────────────────────────────── */
.login-panel {
  width: 480px;
  min-width: 480px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-12);
  position: relative;
}

/* Gold left border */
.login-panel::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

.login-card {
  width: 100%;
  max-width: 380px;
}

.login-logo-area {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.login-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 16px rgba(183,28,28,0.3);
}

.login-org-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: var(--fw-bold);
  color: var(--text);
  line-height: 1.2;
}
.login-org-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.login-heading {
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: var(--text);
  line-height: var(--lh-snug);
  margin-bottom: 6px;
}

.login-subheading {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-8);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.forgot-link {
  font-size: var(--text-sm);
  color: var(--primary);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: color var(--duration-fast);
}
.forgot-link:hover { color: var(--primary-dark); }

.login-btn {
  width: 100%;
  padding: 13px;
  font-size: var(--text-md);
  font-weight: var(--fw-semi);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-mid), var(--primary-dark));
  color: white;
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  box-shadow: 0 4px 16px rgba(183,28,28,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.login-btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  box-shadow: 0 8px 24px rgba(183,28,28,0.4);
  transform: translateY(-1px);
}
.login-btn:active { transform: translateY(0); }

.login-footer {
  margin-top: var(--space-10);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-xs);
  line-height: var(--lh-relaxed);
}

/* ════════════════════════════════════════════════════════════
   DASHBOARD
   ════════════════════════════════════════════════════════════ */

.chart-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
}

.chart-card-title {
  font-size: var(--text-base);
  font-weight: var(--fw-semi);
  color: var(--text);
}

.chart-card-subtitle {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.chart-area {
  padding: var(--space-5) var(--space-6);
  position: relative;
}

/* Activity Timeline */
.activity-timeline {
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background var(--duration-fast);
}

.activity-item:hover { background: var(--primary-lighter); }
.activity-item:last-child { border-bottom: none; }

.activity-line {
  position: absolute;
  left: calc(var(--space-5) + 14px);
  top: 44px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.activity-item:last-child .activity-line { display: none; }

.activity-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  border: 2px solid var(--surface);
}

.activity-content { flex: 1; min-width: 0; }
.activity-title   { font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--text); }
.activity-desc    { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; line-height: var(--lh-relaxed); }
.activity-time    { font-size: var(--text-xs); color: var(--text-muted); flex-shrink: 0; padding-top: 2px; }

/* Quick Action Cards */
.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.quick-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  text-align: center;
  text-decoration: none;
}

.quick-action-card:hover {
  border-color: var(--primary);
  background: var(--primary-lighter);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.quick-action-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: transform var(--duration) var(--ease-out);
}

.quick-action-card:hover .quick-action-icon { transform: scale(1.1); }

.quick-action-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-semi);
  color: var(--text-secondary);
}

/* Dashboard two-column layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-6);
}

.dashboard-main { min-width: 0; display: flex; flex-direction: column; gap: var(--space-6); }
.dashboard-side { display: flex; flex-direction: column; gap: var(--space-5); }

/* Top mandala welcome banner */
.welcome-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #8B0000 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  color: white;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.welcome-banner::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(212,175,55,0.1);
}

.welcome-banner::after {
  content: '';
  position: absolute;
  right: 60px;
  bottom: -60px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(212,175,55,0.07);
}

.welcome-banner-bg-text {
  position: absolute;
  right: var(--space-8);
  top: 50%;
  transform: translateY(-50%);
  font-size: 90px;
  opacity: 0.06;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  white-space: nowrap;
  pointer-events: none;
}

.welcome-greeting { font-size: var(--text-xs); color: rgba(255,255,255,0.6); font-weight: var(--fw-medium); letter-spacing: 0.08em; text-transform: uppercase; }
.welcome-name     { font-size: var(--text-3xl); font-weight: var(--fw-bold); margin-top: 4px; }
.welcome-date     { font-size: var(--text-sm);  color: rgba(255,255,255,0.7); margin-top: 4px; }

.welcome-gold-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(212,175,55,0.15);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: var(--radius-full);
  padding: 6px var(--space-4);
  font-size: var(--text-xs);
  color: var(--gold-light);
  font-weight: var(--fw-medium);
}

/* ════════════════════════════════════════════════════════════
   VARGANIDAAR / MEMBERS MODULE
   ════════════════════════════════════════════════════════════ */

/* Member photo thumbnail */
.member-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.member-info { display: flex; flex-direction: column; }
.member-name { font-weight: var(--fw-medium); color: var(--text); font-size: var(--text-sm); }
.member-id   { font-size: var(--text-xs); color: var(--text-muted); font-family: var(--font-mono); }

/* Bulk action bar */
.bulk-action-bar {
  display: none;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
  background: var(--primary-alpha);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
  animation: fadeInDown var(--duration) var(--ease-out);
}

.bulk-action-bar.visible { display: flex; }

.bulk-count {
  font-size: var(--text-sm);
  font-weight: var(--fw-semi);
  color: var(--primary);
}

/* Multi-step Form */
.form-step { display: none; }
.form-step.active { display: block; animation: fadeInUp 0.3s var(--ease-out) both; }

.form-section-title {
  font-size: var(--text-lg);
  font-weight: var(--fw-semi);
  color: var(--text);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.form-section-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-5);
}

/* Photo upload */
.photo-upload {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration);
}
.photo-upload:hover { border-color: var(--primary); background: var(--primary-lighter); }

.photo-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  overflow: hidden;
  flex-shrink: 0;
}

/* Document upload */
.doc-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-6);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration);
  text-align: center;
}
.doc-upload:hover { border-color: var(--primary); background: var(--primary-lighter); }
.doc-upload-icon { font-size: 28px; color: var(--text-muted); }
.doc-upload-text { font-size: var(--text-sm); color: var(--text-secondary); }
.doc-upload-hint { font-size: var(--text-xs); color: var(--text-muted); }

/* ════════════════════════════════════════════════════════════
   MADATNIS (VOLUNTEERS)
   ════════════════════════════════════════════════════════════ */

.volunteer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}

.volunteer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration) var(--ease-out);
}
.volunteer-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.volunteer-card-header {
  padding: var(--space-5);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.volunteer-card-body { padding: var(--space-4) var(--space-5); }

.volunteer-card-footer {
  padding: var(--space-4) var(--space-5);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.volunteer-name { font-weight: var(--fw-semi); font-size: var(--text-base); color: var(--text); }
.volunteer-id   { font-size: var(--text-xs); color: var(--text-muted); font-family: var(--font-mono); margin-top: 2px; }
.volunteer-role { font-size: var(--text-xs); color: var(--primary); font-weight: var(--fw-medium); background: var(--primary-light); padding: 2px 8px; border-radius: var(--radius-full); margin-top: 4px; display: inline-block; }

.volunteer-meta-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.volunteer-meta-row svg { flex-shrink: 0; }

/* OTP Screen */
.otp-screen {
  text-align: center;
  padding: var(--space-8);
}

.otp-inputs {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin: var(--space-6) 0;
}

.otp-input {
  width: 52px;
  height: 60px;
  text-align: center;
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--duration-fast);
  background: var(--surface);
  color: var(--text);
}
.otp-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-alpha);
}

/* ════════════════════════════════════════════════════════════
   COMMUNICATION CENTER
   ════════════════════════════════════════════════════════════ */

.comm-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-5);
  align-items: start;
}

.comm-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: sticky;
  top: 0;
}

/* Template card */
.template-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  cursor: pointer;
  transition: all var(--duration-fast);
}
.template-card:hover {
  border-color: var(--primary);
  background: var(--primary-lighter);
}
.template-card.selected {
  border-color: var(--primary);
  background: var(--primary-alpha);
}
.template-card-icon { font-size: 20px; margin-bottom: var(--space-2); }
.template-card-name { font-size: var(--text-sm); font-weight: var(--fw-semi); color: var(--text); }
.template-card-preview { font-size: var(--text-xs); color: var(--text-muted); margin-top: 4px; line-height: var(--lh-relaxed); }

/* Recipient chip list */
.recipient-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  min-height: 44px;
  background: var(--surface);
  transition: border-color var(--duration-fast);
}
.recipient-chips:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-alpha); }

/* Channel tabs */
.channel-tab {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
}
.channel-tab:hover { border-color: var(--text-muted); color: var(--text); }
.channel-tab.active {
  border-color: var(--primary);
  background: var(--primary-lighter);
  color: var(--primary);
}

/* Delivery status bar */
.delivery-stat-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}
.delivery-stat-label { font-size: var(--text-sm); color: var(--text-secondary); flex: 1; }
.delivery-stat-count { font-size: var(--text-sm); font-weight: var(--fw-semi); color: var(--text); min-width: 40px; text-align: right; }
.delivery-stat-bar   { flex: 2; }

/* Message history item */
.message-history-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--duration-fast);
}
.message-history-item:hover { background: var(--primary-lighter); }

.mhi-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.mhi-content { flex: 1; min-width: 0; }
.mhi-subject { font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--text); }
.mhi-preview { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mhi-meta    { display: flex; align-items: center; gap: var(--space-3); margin-top: 4px; }

/* ════════════════════════════════════════════════════════════
   REPORTS
   ════════════════════════════════════════════════════════════ */

.report-filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.report-metric-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.report-metric-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════
   SETTINGS
   ════════════════════════════════════════════════════════════ */

.settings-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-6);
  align-items: start;
}

.settings-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
}

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast);
  border-left: 3px solid transparent;
}

.settings-nav-item:hover { background: var(--bg-secondary); color: var(--text); }
.settings-nav-item.active {
  background: var(--primary-lighter);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: var(--fw-semi);
}

.settings-section { display: none; }
.settings-section.active { display: block; }

.settings-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.settings-card-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.settings-card-title {
  font-size: var(--text-base);
  font-weight: var(--fw-semi);
  color: var(--text);
}

.settings-card-subtitle {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.settings-card-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}
.settings-row:last-child { border-bottom: none; padding-bottom: 0; }

.settings-row-label { font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--text); }
.settings-row-desc  { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }

/* Permission matrix */
.perm-table { width: 100%; }
.perm-table th {
  font-size: var(--text-xs);
  font-weight: var(--fw-semi);
  color: var(--text-muted);
  text-align: center;
  padding: var(--space-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.perm-table td {
  padding: var(--space-3);
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.perm-table tr:hover td { background: var(--bg-secondary); }
.perm-table td:first-child { text-align: left; font-weight: var(--fw-medium); color: var(--text); }

/* ════════════════════════════════════════════════════════════
   MISC / SHARED
   ════════════════════════════════════════════════════════════ */

/* Status dot indicator */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.active   { background: var(--success); box-shadow: 0 0 0 3px var(--success-alpha); }
.status-dot.inactive { background: var(--text-muted); }
.status-dot.pending  { background: var(--warning); box-shadow: 0 0 0 3px var(--warning-alpha); animation: pulse 2s infinite; }
.status-dot.rejected { background: var(--danger); }

/* ID badge */
.id-badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Area badge */
.area-badge {
  font-size: var(--text-xs);
  background: var(--gold-lighter);
  color: var(--gold-dark);
  border: 1px solid rgba(212,175,55,0.3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: var(--fw-medium);
}

/* ── Print Styles ────────────────────────────────────────────── */
@media print {
  .sidebar, .topbar, .page-actions, .table-toolbar { display: none !important; }
  .app-shell { display: block; }
  .main-area { overflow: visible; }
  .page-content { padding: 0; }
}
