/* =====================================================
   SHARED CSS — Summer Ball Placer
   Include this on every page: <link rel="stylesheet" href="shared.css">
   ===================================================== */

/* --- CSS Variables (Unified Color Scheme) --- */
:root {
  --color-primary: #5046E5;
  --color-primary-hover: #4338CA;
  --color-primary-light: rgba(80, 70, 229, 0.1);
  --color-primary-dark: #152a45;
  --color-accent: #5046E5;
  --color-text: #1a1a1a;
  --color-text-secondary: #4b5563;
  --color-text-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-white: #ffffff;
  --color-border: #e5e7eb;
  --color-border-light: #f3f4f6;
  --color-success: #059669;
  --color-success-bg: #dcfce7;
  --color-error: #dc2626;
  --color-error-bg: #fee2e2;
  --color-warning: #d97706;
  --color-warning-bg: #fef3c7;
  --color-info: #2563eb;
  --color-info-bg: #dbeafe;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html.dark {
  --color-primary: #6366F1;
  --color-primary-hover: #818CF8;
  --color-primary-light: rgba(99, 102, 241, 0.15);
  --color-primary-dark: #0f1729;
  --color-accent: #818CF8;
  --color-text: #f1f5f9;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  --color-bg: #1e293b;
  --color-bg-alt: #0f172a;
  --color-bg-white: #1e293b;
  --color-border: #334155;
  --color-border-light: #1e293b;
  --color-success: #34d399;
  --color-success-bg: rgba(52, 211, 153, 0.15);
  --color-error: #f87171;
  --color-error-bg: rgba(248, 113, 113, 0.15);
  --color-warning: #fbbf24;
  --color-warning-bg: rgba(251, 191, 36, 0.15);
  --color-info: #60a5fa;
  --color-info-bg: rgba(96, 165, 250, 0.15);
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg-alt);
  min-height: 100vh;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* --- Transitions (smooth theme switching) --- */
html.dark body,
html.dark nav,
html.dark .notification-dropdown,
html.dark .modal-content,
html.dark input, html.dark select, html.dark textarea {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* --- Theme Toggle --- */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  padding: 0;
  flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(255,255,255,0.2); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }
html.dark .theme-toggle .sun-icon { display: block; }
html.dark .theme-toggle .moon-icon { display: none; }

/* Alt theme toggle (for pages with light backgrounds) */
.theme-toggle-light {
  background: var(--color-border);
  color: var(--color-text);
}
.theme-toggle-light:hover { background: var(--color-border-light); }

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-sans);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  animation: toastIn 0.3s ease forwards;
  max-width: 420px;
  line-height: 1.4;
  backdrop-filter: blur(8px);
}

.toast.removing {
  animation: toastOut 0.25s ease forwards;
}

.toast-success {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid var(--color-success);
}
.toast-error {
  background: var(--color-error-bg);
  color: var(--color-error);
  border: 1px solid var(--color-error);
}
.toast-warning {
  background: var(--color-warning-bg);
  color: var(--color-warning);
  border: 1px solid var(--color-warning);
}
.toast-info {
  background: var(--color-info-bg);
  color: var(--color-info);
  border: 1px solid var(--color-info);
}

.toast-icon { flex-shrink: 0; font-size: 18px; }
.toast-close {
  margin-left: auto;
  cursor: pointer;
  opacity: 0.6;
  font-size: 18px;
  background: none;
  border: none;
  color: inherit;
  padding: 0 0 0 8px;
  line-height: 1;
}
.toast-close:hover { opacity: 1; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(40px); }
}

/* --- Confirm Modal (replaces native confirm()) --- */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.15s ease;
  backdrop-filter: blur(2px);
}

.confirm-modal {
  background: var(--color-bg);
  border-radius: 12px;
  padding: 28px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: modalIn 0.2s ease;
}

.confirm-modal h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.confirm-modal p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

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

.confirm-actions button {
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}

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

.confirm-ok {
  background: var(--color-primary);
  color: white;
}
.confirm-ok:hover { background: var(--color-primary-hover); }

.confirm-danger {
  background: var(--color-error);
  color: white;
}
.confirm-danger:hover { opacity: 0.9; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* --- Loading Skeletons --- */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--color-border-light);
  border-radius: 6px;
}

html.dark .skeleton { background: var(--color-border); }

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  animation: shimmer 1.5s infinite;
}

html.dark .skeleton::after {
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text-sm { height: 12px; margin-bottom: 6px; width: 60%; }
.skeleton-title { height: 20px; margin-bottom: 12px; width: 40%; }
.skeleton-avatar { width: 40px; height: 40px; border-radius: 50%; }
.skeleton-card {
  height: 120px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.skeleton-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
}

/* --- Notification Dropdown (shared) --- */
.nav-notifications { position: relative; }

.notification-bell {
  position: relative;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: background 0.15s;
  padding: 0;
}
.notification-bell:hover { background: rgba(255,255,255,0.2); }
.notification-bell svg { width: 18px; height: 18px; }

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--color-error);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-height: 480px;
  background: var(--color-bg, white);
  border-radius: 12px;
  border: 1px solid var(--color-border, #e5e7eb);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  overflow: hidden;
  display: none;
  z-index: 1000;
}

.notification-dropdown.open,
.notification-dropdown.active {
  display: block;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text, #1F2937);
}

.notification-mark-read {
  font-size: 12px;
  color: var(--color-primary);
  cursor: pointer;
  background: none;
  border: none;
  font-weight: 500;
  padding: 0;
}
.notification-mark-read:hover { text-decoration: underline; }

.notification-list {
  max-height: 380px;
  overflow-y: auto;
}

.notification-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border-light, #F3F4F6);
  cursor: pointer;
  transition: background 0.1s;
  font-size: 13px;
  color: var(--color-text-secondary);
}
.notification-item:hover { background: var(--color-bg-alt, #F9FAFB); }
.notification-item.unread {
  background: var(--color-primary-light);
  border-left: 3px solid var(--color-primary);
}

.notification-text {
  line-height: 1.4;
  color: var(--color-text);
}

.notification-time {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.notification-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 13px;
}

/* --- Message States (form feedback) --- */
.message { margin-top: 16px; padding: 14px 16px; border-radius: 8px; font-size: 14px; line-height: 1.5; }
.message.success, .msg-success { background: var(--color-success-bg); color: var(--color-success); }
.message.error, .msg-error { background: var(--color-error-bg); color: var(--color-error); }
.message.info, .msg-info { background: var(--color-info-bg); color: var(--color-info); }
.message.warning, .msg-warning { background: var(--color-warning-bg); color: var(--color-warning); }

/* --- Mobile Menu Base --- */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.mobile-menu-overlay.open { opacity: 1; visibility: visible; }

.mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background: var(--color-bg);
  z-index: 9999;
  padding: 24px;
  transition: right 0.25s ease;
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}
.mobile-menu.open { right: 0; }

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

.mobile-menu-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

.mobile-menu-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--color-border);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.mobile-menu-close:hover { background: var(--color-border); }

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  text-decoration: none;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border-light);
  transition: color 0.15s;
}
.mobile-menu a:hover { color: var(--color-primary); }

.mobile-menu-notifications {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.mobile-menu-notifications h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.mobile-notification-item {
  padding: 10px 0;
  font-size: 13px;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border-light);
  cursor: pointer;
  line-height: 1.4;
}
.mobile-notification-item.unread { color: var(--color-text); font-weight: 500; }

.mobile-menu-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--color-text-secondary);
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state-icon svg {
  width: 36px;
  height: 36px;
  color: var(--color-primary);
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 360px;
  margin: 0 auto;
}

/* --- Utility Classes --- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .notification-dropdown { width: 300px; right: -20px; }
  .toast-container { left: 16px; right: 16px; }
  .toast { max-width: 100%; }
  .confirm-modal { padding: 20px; }
}

@media (max-width: 480px) {
  .notification-dropdown { width: calc(100vw - 32px); right: -10px; max-width: 360px; }
}

/* =====================================================
   VISUAL ENHANCEMENTS
   ===================================================== */

/* --- 1. Card Hover Lift Effect --- */
.card-hover, .stat-card, .card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover, .stat-card:hover, .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
html.dark .card-hover:hover, html.dark .stat-card:hover, html.dark .card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* --- 2. Smooth Dark Mode Transition --- */
body, .card, .stat-card, .sidebar, .main-header, .nav-item, .badge, .btn, .modal, .toast, input, select, textarea {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* --- 3. Glassmorphism for Modals & Dropdowns --- */
.confirm-overlay { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.confirm-modal { background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.2); }
html.dark .confirm-modal { background: rgba(30,41,59,0.95); border: 1px solid rgba(255,255,255,0.1); }
.notification-dropdown { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
html.dark .notification-dropdown { background: rgba(30,41,59,0.95); }

/* --- 4. Toast Progress Bar --- */
.toast-progress { position: absolute; bottom: 0; left: 0; height: 3px; background: currentColor; opacity: 0.3; border-radius: 0 0 8px 8px; animation: toastProgress linear forwards; }
@keyframes toastProgress { from { width: 100%; } to { width: 0%; } }

/* --- 5. Animated Status Badges --- */
.badge-pending { animation: badgePulse 2s ease-in-out infinite; }
@keyframes badgePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
.badge-negotiating { animation: badgeGlow 2s ease-in-out infinite; }
@keyframes badgeGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); } 50% { box-shadow: 0 0 8px 2px rgba(245, 158, 11, 0.3); } }

/* --- 6. Page Fade-In Animation --- */
.content, .main, main { animation: pageIn 0.3s ease-out; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* --- 7. Staggered Card Entrance --- */
.stagger-in > * { opacity: 0; animation: staggerFadeIn 0.4s ease forwards; }
.stagger-in > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-in > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-in > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-in > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-in > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-in > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-in > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-in > *:nth-child(8) { animation-delay: 0.4s; }
@keyframes staggerFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- 8. Inline Row Actions on Hover --- */
.table-actions { opacity: 0; transition: opacity 0.15s ease; }
tr:hover .table-actions { opacity: 1; }

/* --- 9. Gradient Accent Border Utility --- */
.gradient-border-left { border-left: 3px solid; border-image: linear-gradient(to bottom, #5046E5, #3b82f6) 1; }
.gradient-border-top { border-top: 3px solid; border-image: linear-gradient(to right, #5046E5, #3b82f6) 1; }

/* --- 10. Better Empty State Base --- */
.empty-state svg { opacity: 0.4; transition: opacity 0.3s; }
.empty-state:hover svg { opacity: 0.6; }
.empty-state-illustration { width: 120px; height: 120px; margin: 0 auto 16px; opacity: 0.5; }

/* --- 11. Avatar Gradient Utility --- */
.avatar-gradient { display: flex; align-items: center; justify-content: center; border-radius: 50%; color: white; font-weight: 600; font-size: 12px; }

/* --- 15. Confetti Keyframes --- */
@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* --- 16. Command Palette --- */
.cmd-palette-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 99999; display: flex; align-items: flex-start; justify-content: center; padding-top: 20vh; animation: fadeIn 0.15s ease; }
.cmd-palette { background: var(--color-bg, #fff); border: 1px solid var(--color-border, #e5e7eb); border-radius: 12px; width: 90%; max-width: 560px; box-shadow: 0 25px 50px rgba(0,0,0,0.25); overflow: hidden; animation: cmdSlideIn 0.15s ease; }
@keyframes cmdSlideIn { from { opacity: 0; transform: scale(0.98) translateY(-10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.cmd-palette-input-wrap { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--color-border, #e5e7eb); }
.cmd-palette-input-wrap svg { color: var(--color-text-muted, #94a3b8); flex-shrink: 0; }
.cmd-palette-input { flex: 1; border: none; background: none; font-size: 15px; color: var(--color-text, #1e293b); outline: none; font-family: inherit; }
.cmd-palette-input::placeholder { color: var(--color-text-muted, #94a3b8); }
.cmd-palette-kbd { font-size: 10px; padding: 2px 6px; border-radius: 4px; background: var(--color-border-light, #f3f4f6); color: var(--color-text-muted, #94a3b8); font-family: monospace; border: 1px solid var(--color-border, #e5e7eb); }
.cmd-palette-results { max-height: 320px; overflow-y: auto; padding: 6px; }
.cmd-palette-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; cursor: pointer; transition: background 0.1s; }
.cmd-palette-item:hover, .cmd-palette-item.selected { background: var(--color-primary, #5046E5); color: white; }
.cmd-palette-item.selected .cmd-palette-type { color: rgba(255,255,255,0.7); }
.cmd-palette-icon { font-size: 16px; width: 24px; text-align: center; }
.cmd-palette-title { flex: 1; font-size: 14px; font-weight: 500; }
.cmd-palette-type { font-size: 11px; color: var(--color-text-muted, #94a3b8); }
.cmd-palette-empty { padding: 24px; text-align: center; color: var(--color-text-muted, #94a3b8); font-size: 13px; }
html.dark .cmd-palette { background: rgba(30,41,59,0.98); }

/* --- Change Password Modal --- */
.change-password-modal {
  max-width: 440px;
}

.cpw-field {
  margin-bottom: 14px;
}

.cpw-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 5px;
}

.cpw-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 14px;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.15s;
}

.cpw-field input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.cpw-error {
  background: var(--color-error-bg);
  color: var(--color-error);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.4;
}

.change-password-modal .confirm-actions {
  margin-top: 6px;
}

.change-password-modal .confirm-ok:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --- 17. Sortable Table Headers --- */
th[data-sort-dir] { color: var(--color-primary, #5046E5) !important; }
.sort-arrow { color: var(--color-primary, #5046E5); }

/* --- 18. Account Deletion Modal --- */
.delete-account-modal {
  max-width: 460px;
}

.delete-account-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-error-bg, #fee2e2);
  color: var(--color-error, #dc2626);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.delete-account-modal h3 {
  color: var(--color-error, #dc2626);
}

.delete-account-confirm-field {
  margin-bottom: 16px;
}

.delete-account-confirm-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary, #4b5563);
  margin-bottom: 6px;
}

.delete-confirm-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 6px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--color-text, #1a1a1a);
  background: var(--color-bg, #ffffff);
  transition: border-color 0.15s, box-shadow 0.15s;
  letter-spacing: 0.05em;
}

.delete-confirm-input:focus {
  outline: none;
  border-color: var(--color-error, #dc2626);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

html.dark .delete-confirm-input {
  background: var(--color-bg-alt, #0f172a);
  color: var(--color-text, #f1f5f9);
  border-color: var(--color-border, #334155);
}

html.dark .delete-confirm-input:focus {
  border-color: var(--color-error, #f87171);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.delete-account-error {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  background: var(--color-error-bg, #fee2e2);
  color: var(--color-error, #dc2626);
  margin-bottom: 16px;
  line-height: 1.4;
}

.delete-account-btn {
  transition: opacity 0.15s, background 0.15s;
}

.delete-account-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Delete Account Link (for dashboards) --- */
.delete-account-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-error, #dc2626);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 400;
  padding: 4px 0;
  opacity: 0.7;
  transition: opacity 0.15s;
  text-decoration: none;
}

.delete-account-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.delete-account-link svg {
  width: 14px;
  height: 14px;
}
