/* ============================================================
   RENOH DZ — style.css
   Light mode, professional, modern design
   ============================================================ */

/* ─── System font stack — 100% offline, no external requests ─── */
/* Inter is available natively on macOS 12+ / iOS 16+; falls back gracefully */

/* ─── Design Tokens ──────────────────────────────────────────────── */
:root {
  /* Charte RENOH DZ : noir #000000 + vert lime #BFDD40 */
  --brand-black: #000000;
  --brand-lime:  #bfdd40;

  --bg:          #f7f7f5;
  --bg-card:     #ffffff;
  --bg-sidebar:  #000000;
  --bg-input:    #f2f2ef;

  --primary:     #000000;
  --primary-h:   #262626;
  --primary-l:   #f1f7d9;

  --accent:      #bfdd40;
  --accent-h:    #aac82e;
  --accent-l:    #f1f7d9;
  --accent-ink:  #4d5e00;   /* texte lisible sur fond lime clair */

  --success:     #4d7c0f;
  --success-h:   #3f6212;
  --success-l:   #ecf6d0;

  --danger:      #dc2626;
  --danger-h:    #b91c1c;
  --danger-l:    #fee2e2;

  --warning:     #d97706;
  --warning-l:   #fef3c7;

  --info:        #404040;
  --info-l:      #f0f0f0;

  --text-1:      #0a0a0a;
  --text-2:      #525252;
  --text-3:      #a3a3a3;

  --border:      #e5e5e2;
  --border-focus:#000000;

  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow:      0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);

  --transition:  0.2s ease;
  --font:        'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─── Reset & Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-family: var(--font);
  font-size: 16px;
  background: var(--bg);
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg);
}

/* ─── Utilities ──────────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-muted { color: var(--text-3); }
.link { color: var(--accent-ink); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }

/* ─── Screen System ──────────────────────────────────────────────── */
.screen {
  min-height: 100vh;
  animation: fadeIn 0.3s ease;
}

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

/* ═══════════════════════════════════════════════════════════════════
   HOME SCREEN
═══════════════════════════════════════════════════════════════════ */

#screen-home {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 10%, rgba(191,221,64,.28) 0, transparent 40%),
    radial-gradient(circle at 10% 95%, rgba(191,221,64,.18) 0, transparent 35%),
    #fafaf8;
  padding: 24px;
}

.home-wrapper {
  width: 100%;
  max-width: 520px;
  text-align: center;
}

.home-logo {
  display: block;
  margin: 0 auto 28px;
  animation: pop 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

.home-logo img {
  display: block;
  width: min(300px, 75vw);
  height: auto;
  margin: 0 auto;
}

@keyframes pop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}


.home-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.home-subtitle {
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: 48px;
}

.home-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .home-cards { grid-template-columns: 1fr; }
  .home-title { font-size: 1.6rem; }
}

.profile-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(191,221,64,.10));
  pointer-events: none;
}

.profile-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.profile-card.card-saisie:hover { border-color: var(--accent); }
.profile-card.card-admin:hover  { border-color: var(--primary); }

.profile-card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.card-saisie .profile-card-icon { background: var(--accent); }
.card-admin  .profile-card-icon { background: var(--bg-input); }

.profile-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
}

.profile-card-desc {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════════
   SAISIE SCREEN
═══════════════════════════════════════════════════════════════════ */

#screen-saisie {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
}

.page-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
}

.page-header-logo {
  height: 30px;
  width: auto;
  display: block;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

.page-header-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  flex: 1;
}

.page-header-sub {
  font-size: 0.75rem;
  color: var(--text-2);
  font-weight: 400;
}

.page-content {
  flex: 1;
  padding: 32px 24px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-card-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.form-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-card-subtitle {
  font-size: 0.85rem;
  color: var(--text-2);
  margin-top: 4px;
}

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

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 20px; }
  .page-content { padding: 16px; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width { grid-column: 1 / -1; }

label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

label .required {
  color: var(--danger);
  margin-left: 2px;
}

/* ─── Inputs ─────────────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text-1);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(191, 221, 64, 0.45);
  background: var(--bg-card);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-3);
}

textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-h);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

.btn-success {
  background: var(--accent);
  color: var(--brand-black);
  box-shadow: 0 2px 8px rgba(150,180,30,.35);
}
.btn-success:hover:not(:disabled) {
  background: var(--accent-h);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(150,180,30,.45);
}

.btn-danger {
  background: var(--danger-l);
  color: var(--danger);
  border: 1px solid #fca5a5;
}
.btn-danger:hover:not(:disabled) {
  background: var(--danger);
  color: white;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-2);
  border: 1.5px solid var(--border);
}
.btn-outline:hover:not(:disabled) {
  background: var(--bg-input);
  border-color: var(--text-3);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
}
.btn-ghost:hover { background: var(--bg-input); color: var(--text-1); }

.btn-sm  { padding: 7px 14px; font-size: 0.82rem; }
.btn-xs  { padding: 5px 10px; font-size: 0.78rem; border-radius: var(--radius-sm); }
.btn-lg  { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-xl  { padding: 18px 36px; font-size: 1.1rem; border-radius: var(--radius-lg); font-weight: 700; }
.btn-full { width: 100%; }

.btn-back {
  background: transparent;
  color: var(--text-2);
  border: 1.5px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 0.82rem;
}
.btn-back:hover { background: var(--bg-input); }

/* ─── Submit area ────────────────────────────────────────────────── */
.form-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}

/* ─── Spinner ────────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ─── Success Overlay ────────────────────────────────────────────── */
#success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
  animation: fadeIn 0.3s ease;
}

.success-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: pop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.success-icon {
  width: 72px;
  height: 72px;
  background: var(--accent);
  color: var(--brand-black);
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

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

.success-subtitle {
  color: var(--text-2);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════════════════════════
   ADMIN LOGIN SCREEN
═══════════════════════════════════════════════════════════════════ */

#screen-admin-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 10%, rgba(191,221,64,.25) 0, transparent 40%),
    #fafaf8;
  padding: 24px;
}

.login-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo {
  display: block;
  width: 180px;
  height: auto;
  margin: 0 auto 20px;
}

.login-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-1);
}

.login-subtitle {
  font-size: 0.85rem;
  color: var(--text-2);
  margin-top: 4px;
}

.password-wrapper {
  position: relative;
}

.password-wrapper input { padding-right: 44px; }

.toggle-pwd-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  line-height: 1;
}

.error-msg {
  background: var(--danger-l);
  color: var(--danger);
  border: 1px solid #fca5a5;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 12px;
}

.shake {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

/* ═══════════════════════════════════════════════════════════════════
   ADMIN PANEL SCREEN
═══════════════════════════════════════════════════════════════════ */

#screen-admin {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
}

.admin-header {
  background: var(--bg-sidebar);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  border-bottom: 3px solid var(--accent);
}

.admin-header-logo {
  height: 30px;
  width: auto;
  display: block;
  flex-shrink: 0;
  padding-right: 16px;
  border-right: 1px solid #333;
}

.admin-header-info { flex: 1; }

.admin-header-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.admin-header-sub {
  font-size: 0.75rem;
  color: var(--accent);
}

/* ─── Tabs ───────────────────────────────────────────────────────── */
.tabs-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-bar::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 14px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover { color: var(--text-1); }

.tab-btn.active {
  color: var(--text-1);
  border-bottom-color: var(--accent);
}

/* ─── Tab Content ────────────────────────────────────────────────── */
.tab-content {
  padding: 28px 24px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 600px) {
  .tab-content { padding: 16px; }
  .tabs-bar { padding: 0 12px; }
}

/* ─── Section headers ────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-1);
}

.section-subtitle {
  font-size: 0.82rem;
  color: var(--text-2);
  margin-top: 2px;
}

/* ─── Team Panel ─────────────────────────────────────────────────── */
.add-member-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.add-member-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

@media (max-width: 720px) {
  .add-member-form {
    grid-template-columns: 1fr 1fr;
  }
  .add-member-form .btn { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .add-member-form { grid-template-columns: 1fr; }
}

#team-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}

.team-card:hover { box-shadow: var(--shadow); }

.team-card-avatar {
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--brand-black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

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

.team-card-name {
  font-weight: 600;
  color: var(--text-1);
  font-size: 0.95rem;
}

.team-card-poste {
  font-size: 0.8rem;
  color: var(--text-2);
  margin-top: 2px;
}

/* ─── History Panel ──────────────────────────────────────────────── */
.history-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
  flex-wrap: wrap;
}

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

.search-box input {
  padding-left: 40px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: 1rem;
  pointer-events: none;
}

.stats-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.stat-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
}

.stat-chip strong {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}

/* ─── Table ──────────────────────────────────────────────────────── */
#visitors-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}

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

thead th:first-child { width: 40px; padding-left: 16px; }

tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-1);
  vertical-align: middle;
}

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

tbody tr:hover { background: #fafcf2; }

.visitor-row { transition: background var(--transition); }

.visitor-name {
  font-weight: 600;
  color: var(--text-1);
}

.badge-date {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  font-size: 0.75rem;
  color: var(--text-2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.membre-badge {
  background: var(--primary-l);
  color: var(--primary);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-cell {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-2);
  font-size: 0.83rem;
  cursor: default;
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary);
}

.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-3);
  font-size: 0.95rem;
}

#history-empty {
  text-align: center;
  padding: 60px 24px;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: .5;
}

.empty-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 6px;
}

.empty-desc {
  font-size: 0.85rem;
  color: var(--text-3);
}

/* ─── Backup Panel ───────────────────────────────────────────────── */
.backup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.backup-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.backup-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.backup-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
}

.backup-card-desc {
  font-size: 0.83rem;
  color: var(--text-2);
  line-height: 1.5;
}

.backup-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--brand-black);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  width: fit-content;
}

.danger-zone {
  background: var(--danger-l);
  border: 1px solid #fca5a5;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 24px;
}

.danger-zone-title {
  font-weight: 700;
  color: var(--danger);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.danger-zone-desc {
  font-size: 0.83rem;
  color: #7f1d1d;
  margin-bottom: 16px;
}

/* ─── Change Password ────────────────────────────────────────────── */
.pwd-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 480px;
  box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
═══════════════════════════════════════════════════════════════════ */

#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
  border-left: 4px solid;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-success {
  background: var(--bg-card);
  color: var(--text-1);
  border-left-color: var(--accent);
}

.toast-error {
  background: var(--bg-card);
  color: var(--danger);
  border-left-color: var(--danger);
}

.toast-info {
  background: var(--bg-card);
  color: var(--info);
  border-left-color: var(--info);
}

.toast-icon {
  font-style: normal;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ─── Divider ────────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* ─── Scrollbar ──────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ─── PWA Install Banner ─────────────────────────────────────────── */
#install-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--bg-sidebar);
  color: white;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  max-width: 340px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: slideUp 0.4s ease;
}

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

.install-text { flex: 1; font-size: 0.87rem; line-height: 1.4; }
.install-text strong { display: block; margin-bottom: 2px; }
