/* Design System & Variables */
:root {
  --font-display: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --bg-color: #050409;
  --card-bg: rgba(15, 14, 28, 0.65);
  --card-border: rgba(255, 255, 255, 0.07);
  --card-border-focus: rgba(139, 92, 246, 0.4);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --primary: #8b5cf6;
  --primary-glow: rgba(139, 92, 246, 0.15);
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --danger-glow: rgba(239, 68, 68, 0.25);
  --danger-bg: rgba(239, 68, 68, 0.08);
  --danger-border: rgba(239, 68, 68, 0.2);
  
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.2);
  
  --input-bg: rgba(7, 6, 15, 0.6);
  --input-border: rgba(255, 255, 255, 0.1);
  --input-focus: #8b5cf6;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow-x: hidden;
  padding: 24px 16px;
}

/* Background Glow Effects */
.background-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(239, 68, 68, 0.05) 50%, rgba(0,0,0,0) 100%);
  z-index: -1;
  pointer-events: none;
  filter: blur(60px);
  animation: glowPulse 8s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% { opacity: 0.8; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 1.2; transform: translate(-50%, -5%) scale(1.1); }
}

/* App Container */
.container {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  z-index: 1;
}

/* Header */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 1.5px;
  color: var(--text-main);
  user-select: none;
}

.logo-accent {
  color: var(--primary);
  text-shadow: 0 0 15px var(--primary-glow);
}

/* Card Container */
.card-wrapper {
  position: relative;
  width: 100%;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.card-header {
  text-align: center;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.warning-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
  color: var(--danger);
  animation: pulseWarning 2s infinite;
}

@keyframes pulseWarning {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.2); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.warning-icon {
  width: 32px;
  height: 32px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.subtitle {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Danger Warning Box */
.danger-box {
  background-color: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 32px;
}

.danger-box h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--danger);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.danger-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.danger-box li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--danger);
  margin-top: 6px;
  flex-shrink: 0;
}

.danger-box p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Form Styling */
#deleteForm {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

@media (max-width: 480px) {
  .input-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text-main);
  outline: none;
  transition: var(--transition-fast);
}

input[type="email"]:focus,
input[type="password"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: rgba(15, 14, 28, 0.8);
}

input::placeholder {
  color: var(--text-dim);
}

.error-msg {
  font-size: 12px;
  color: var(--danger);
  min-height: 16px;
  margin-top: 2px;
  display: block;
}

/* Checkbox Styling */
.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 12px 0;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-checkmark {
  width: 20px;
  height: 20px;
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2px;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.checkbox-container:hover input ~ .checkbox-checkmark {
  border-color: var(--text-muted);
}

.checkbox-container input:checked ~ .checkbox-checkmark {
  background: var(--danger);
  border-color: var(--danger);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.checkbox-checkmark::after {
  content: "";
  display: none;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-0.5px, -1px);
}

.checkbox-container input:checked ~ .checkbox-checkmark::after {
  display: block;
}

.checkbox-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  transition: var(--transition-fast);
}

.checkbox-container input:checked ~ .checkbox-text {
  color: var(--text-main);
}

/* Danger Button */
.btn-danger {
  width: 100%;
  background: linear-gradient(135deg, var(--danger) 0%, #b91c1c 100%);
  border: none;
  border-radius: 12px;
  padding: 16px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
  transition: var(--transition-smooth);
}

.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
}

.btn-danger:active {
  transform: translateY(0);
}

.btn-danger:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid var(--input-border);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-text {
  transition: var(--transition-fast);
}

/* Loading Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  position: absolute;
  display: none;
}

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

/* Success Card View */
.success-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

.success-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  color: var(--success);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
}

.success-icon {
  width: 40px;
  height: 40px;
}

.success-card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 12px;
}

.success-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 420px;
}

.success-footer {
  font-size: 13.5px;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 32px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #6d28d9 100%);
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  transition: opacity 0.3s ease;
}

.modal {
  background: #110f22;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  width: 90%;
  max-width: 440px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
  0% { transform: translateY(20px) scale(0.95); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header-err {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--danger);
  margin-bottom: 16px;
}

.modal-header-err h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-main);
}

.modal-err-icon {
  width: 24px;
  height: 24px;
}

.modal-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--input-border);
  color: var(--text-main);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Helper Utilities */
.hide {
  display: none !important;
}

.disabled-form {
  opacity: 0.6;
  pointer-events: none;
}
