/* ─── OnixScale — Custom CSS ──────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

:root {
  --bg:          #0A0A0A;
  --surface:     #171717;
  --border:      #262626;
  --muted:       #737373;
  --body:        #D4D4D4;
  --headline:    #FFFFFF;
  --primary:     #c0c1ff;
  --primary-dim: #8083ff;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--body);
  -webkit-font-smoothing: antialiased;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ─── Glass card ──────────────────────────────────────────── */
.glass-card {
  background: rgba(23, 23, 23, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
}
.glass-card:hover { border-color: #464554; }

/* ─── Inner glow (top border light effect) ───────────────── */
.inner-glow {
  box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.05);
}

/* ─── Floating animation (hero cards) ────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-18px); }
}
.hero-float { animation: float 6s ease-in-out infinite; }

@keyframes subtle-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.float-element { animation: subtle-float 6s ease-in-out infinite; }

/* ─── Scroll reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Custom scrollbar ────────────────────────────────────── */
.custom-scrollbar::-webkit-scrollbar       { width: 4px; height: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #13131b; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #464554; border-radius: 10px; }

/* ─── Admin sidebar ───────────────────────────────────────── */
.admin-sidebar { width: 256px; }
.admin-content { margin-left: 256px; }

@media (max-width: 768px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-content { margin-left: 0; }
}

/* ─── Logo filters (dark backgrounds) ────────────────────── */
.logo-white   { filter: brightness(0) invert(1); }
.logo-primary { filter: brightness(0) invert(1) sepia(1) saturate(4) hue-rotate(210deg); }

/* ─── Kanban ──────────────────────────────────────────────── */
.kanban-column { min-width: 280px; max-width: 320px; }

/* ─── Form inputs focus ring ──────────────────────────────── */
.input-dark {
  background: #0A0A0A !important;
  border: 1px solid #464554;
  color: #ffffff !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}
/* Override autofill browser styles */
.input-dark:-webkit-autofill,
.input-dark:-webkit-autofill:hover,
.input-dark:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #0A0A0A inset !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff;
}
.input-dark:focus {
  outline: none;
  border-color: #c0c1ff;
  box-shadow: 0 0 0 3px rgba(192,193,255,0.15);
}
.input-dark::placeholder { color: #737373; }

/* ─── Alert flash messages ────────────────────────────────── */
.alert-success { background:#052e16; border:1px solid #166534; color:#86efac; }
.alert-error   { background:#450a0a; border:1px solid #991b1b; color:#fca5a5; }

/* ─── Gradient accent line (top of cards) ────────────────── */
.accent-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(192,193,255,0.5), transparent);
}

/* ─── Glow cursor (dashboard) ────────────────────────────── */
#glow-cursor {
  position: fixed;
  width: 384px; height: 384px;
  background: rgba(192,193,255,0.05);
  border-radius: 9999px;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  transition: transform 0.3s ease-out;
}
