@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --neon: #C5FF00;
  --neon-dim: rgba(197, 255, 0, 0.12);
  --neon-glow: 0 0 24px rgba(197, 255, 0, 0.35);
  --bg-primary: #080A10;
  --bg-secondary: #0D1018;
  --bg-card: #131720;
  --bg-card-2: #1A1F2E;
  
  /* Light Theme for Dashboard (Reference Image 2) */
  --dash-bg: #F4F5F7;
  --dash-card: #FFFFFF;
  --dash-text: #1A1D23;
  --dash-text-muted: #7A8499;
  --dash-border: #E8EBF0;
  
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(197, 255, 0, 0.25);
  --text-primary: #EEF0FF;
  --text-secondary: #7A8499;
  --text-muted: #454D62;
  --red: #FF5B5B;
  --red-dim: rgba(255, 91, 91, 0.12);
  --sidebar-w: 240px;
  --header-h: 64px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 50px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-light: 0 2px 12px rgba(0, 0, 0, 0.04);
  --t: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Vastago Grotesk', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

a { text-decoration: none; color: inherit; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--r-md);
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; transition: var(--t);
  white-space: nowrap; text-decoration: none;
}
.btn-neon {
  background: var(--neon); color: #0A0C10;
  box-shadow: var(--neon-glow);
}
.btn-neon:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 0 40px rgba(197,255,0,0.4); }
.btn-ghost {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-card-2); color: var(--text-primary); border-color: var(--border-hover); }
.btn-danger { background: var(--red-dim); color: var(--red); border: 1px solid rgba(255,91,91,0.2); }
.btn-danger:hover { background: rgba(255,91,91,0.2); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: var(--r-sm); }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: var(--r-lg); }

/* ── CARD ── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px;
  box-shadow: var(--shadow); transition: var(--t);
}
.card:hover { border-color: rgba(197,255,0,0.08); }

/* ── FORM ── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 7px; }
.form-input {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--r-md); color: var(--text-primary);
  font-family: inherit; font-size: 14px; outline: none;
  transition: var(--t);
}
.form-input:focus { border-color: var(--neon); box-shadow: 0 0 0 3px var(--neon-dim); }
.form-input::placeholder { color: var(--text-muted); }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px); display: flex; align-items: center;
  justify-content: center; z-index: 1000;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 32px; width: 100%;
  max-width: 560px; max-height: 90vh; overflow-y: auto;
  transform: translateY(20px); transition: transform 0.25s;
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-title { font-size: 18px; font-weight: 700; }
.modal-close {
  background: none; border: none; color: var(--text-secondary);
  cursor: pointer; width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; transition: var(--t);
}
.modal-close:hover { color: var(--text-primary); background: var(--bg-card-2); }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; background: var(--bg-card-2);
  border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6); font-size: 14px; font-weight: 500;
  transform: translateY(100px); opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { border-left: 3px solid var(--neon); }
.toast-error { border-left: 3px solid var(--red); }

/* ── BADGE ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 12px; font-weight: 600;
}
.badge-green { background: var(--neon-dim); color: var(--neon); }
.badge-red { background: var(--red-dim); color: var(--red); }
.badge-yellow { background: rgba(255,180,0,0.12); color: #FFB400; }

/* ── UTILS ── */
.hidden { display: none !important; }
.text-neon { color: var(--neon); }
.text-muted { color: var(--text-secondary); }
.text-danger { color: var(--red); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.w-full { width: 100%; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

@keyframes pulse-light {
  0% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(0, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

@keyframes pulse-strong {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 91, 91, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(255, 91, 91, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 91, 91, 0); }
}

.pulse-light { animation: pulse-light 2s infinite; }
.pulse-strong { animation: pulse-strong 1s infinite; }
.btn-urgent { background: var(--red) !important; color: white !important; }

/* Block Overlay */
#block-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.9); backdrop-filter: blur(10px);
  z-index: 9999; display: none; flex-direction: column; align-items: center; justify-content: center;
  color: white; text-align: center; padding: 20px;
}

/* Kanban Board */
.kanban-board {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 16px;
  min-height: 500px;
}
.kanban-col {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  width: 320px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
}
.kanban-col-header {
  padding: 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.kanban-col-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  min-height: 100px;
}
.k-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 16px;
  cursor: grab;
  transition: transform 0.1s, box-shadow 0.1s;
}
.k-card:active {
  cursor: grabbing;
}
.k-card.dragging {
  opacity: 0.5;
  transform: scale(0.98);
}
.k-card-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}
.k-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.4;
}
.k-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.k-badge {
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
}
.k-badge.overdue {
  background: var(--red-dim);
  color: var(--red);
}
.k-assignee {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
}
.k-avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--neon);
  color: #000;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 10px;
}

/* Custom Toast Notifications */
#custom-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.custom-toast {
  background: #1A1D27;
  border: 1px solid rgba(255,255,255,0.08);
  color: #FFFFFF;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 320px;
  max-width: 420px;
  animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  pointer-events: auto;
  position: relative;
  overflow: hidden;
}

.custom-toast::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.custom-toast.error::before {
  background: #FF5252;
}

.custom-toast.success::before {
  background: #3AD29F;
}

.custom-toast.info::before {
  background: #3A86D2;
}

.custom-toast-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.custom-toast-content {
  flex: 1;
}

.custom-toast-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.custom-toast-message {
  font-size: 13px;
  line-height: 1.5;
  color: #8D93A5;
}

.custom-toast-close {
  background: transparent;
  border: none;
  color: #555D6E;
  cursor: pointer;
  padding: 4px;
  margin: -4px -4px 0 0;
  border-radius: 4px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-toast-close:hover {
  background: rgba(255,255,255,0.05);
  color: #FFFFFF;
}

@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOutRight {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}
