/* ─── Custom properties (matching landing page) ─── */
:root {
  --brand-50:  #eef2ff;
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
}

/* ─── Base ─── */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ─── Alpine.js cloak ─── */
[x-cloak] { display: none !important; }

/* ─── HTMX indicators ─── */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator { display: block; }

/* ─── Progress bar animation ─── */
.progress-bar {
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Checkbox styling ─── */
input[type="checkbox"] { cursor: pointer; }

/* ─── Card hover lift (matching landing page feature-card) ─── */
.card-lift {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
}
.card-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(99,102,241,0.10), 0 2px 8px rgba(0,0,0,0.04);
  border-color: #c7d2fe;
}

/* ─── Fade in for HTMX swaps ─── */
.htmx-added {
  animation: fadeSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Stagger children animation ─── */
.stagger-in > * {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.stagger-in > *:nth-child(1) { animation-delay: 0.0s; }
.stagger-in > *:nth-child(2) { animation-delay: 0.05s; }
.stagger-in > *:nth-child(3) { animation-delay: 0.10s; }
.stagger-in > *:nth-child(4) { animation-delay: 0.15s; }
.stagger-in > *:nth-child(5) { animation-delay: 0.20s; }
.stagger-in > *:nth-child(6) { animation-delay: 0.25s; }

/* ─── Hero gradient (login page) ─── */
.hero-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,102,241,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(79,70,229,0.05) 0%, transparent 60%),
    #f8fafc;
}

/* ─── Storage bar gradient ─── */
.storage-bar {
  background: linear-gradient(90deg, #6366f1 0%, #818cf8 60%, #ef4444 90%);
}
.storage-bar-safe {
  background: linear-gradient(90deg, #6366f1 0%, #818cf8 100%);
}

/* ─── Smooth drawer backdrop ─── */
.drawer-backdrop {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ─── Table row hover ─── */
.email-row {
  transition: background-color 0.15s ease;
}
.email-row:hover {
  background-color: #f8fafc;
}
