/* TaskFlow - Orange & Black Glassmorphism Theme */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

:root {
  --orange:       #FF6B00;
  --orange-light: #FF8C42;
  --orange-dark:  #CC5500;
  --orange-glow:  rgba(255, 107, 0, 0.4);
  --orange-dim:   rgba(255, 107, 0, 0.15);
  --orange-faint: rgba(255, 107, 0, 0.07);

  --black:        #0A0A0A;
  --black-2:      #111111;
  --black-3:      #181818;
  --black-4:      #222222;

  --glass:        rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover:  rgba(255, 255, 255, 0.07);
  --glass-active: rgba(255, 107, 0, 0.12);

  --text:         #F0F0F0;
  --text-muted:   #888888;
  --text-dim:     #555555;

  --success: #22C55E;
  --warning: #FACC15;
  --danger:  #EF4444;
  --info:    #3B82F6;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(255,107,0,0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--black);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── Background ─── */
.bg-orbs {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.bg-orbs span {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.12; animation: orbFloat 20s infinite ease-in-out;
}
.bg-orbs span:nth-child(1) { width: 600px; height: 600px; background: var(--orange); top: -200px; left: -200px; animation-duration: 22s; }
.bg-orbs span:nth-child(2) { width: 400px; height: 400px; background: var(--orange-light); bottom: -100px; right: -100px; animation-duration: 18s; animation-delay: -8s; }
.bg-orbs span:nth-child(3) { width: 300px; height: 300px; background: #FF4500; top: 50%; left: 50%; animation-duration: 25s; animation-delay: -12s; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(40px, -60px) scale(1.1); }
  66%       { transform: translate(-30px, 40px) scale(0.9); }
}

/* ─── Grid noise texture ─── */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
}

/* ─── Layout ─── */
.page-wrapper { position: relative; z-index: 1; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 680px; margin: 0 auto; padding: 0 24px; }

/* ─── Navbar ─── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 32px;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  animation: slideDown 0.5s ease;
}
@keyframes slideDown { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1.4rem;
  color: var(--text);
  letter-spacing: -0.5px;
}
.nav-brand .brand-icon {
  width: 36px; height: 36px; background: var(--orange);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; box-shadow: 0 0 20px var(--orange-glow);
  transition: var(--transition);
}
.nav-brand:hover .brand-icon-svg { transform: rotate(15deg) scale(1.1); }
.nav-brand span { color: var(--orange); }

.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500;
  transition: var(--transition); position: relative;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text); background: var(--glass);
}
.nav-links a.active { color: var(--orange); }

.nav-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.avatar-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.75rem;
  color: white; cursor: pointer; border: 2px solid var(--glass-border);
  transition: var(--transition); text-decoration: none;
}
.avatar-btn:hover { border-color: var(--orange); box-shadow: 0 0 15px var(--orange-glow); transform: scale(1.05); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 0.9rem;
  cursor: pointer; text-decoration: none; border: none;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary {
  background: var(--orange); color: white;
  box-shadow: 0 4px 20px var(--orange-glow);
}
.btn-primary:hover {
  background: var(--orange-light);
  box-shadow: 0 6px 30px var(--orange-glow);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-glass {
  background: var(--glass); color: var(--text);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}
.btn-glass:hover { background: var(--glass-hover); border-color: var(--orange); color: var(--orange); }

.btn-danger { background: rgba(239,68,68,0.15); color: #EF4444; border: 1px solid rgba(239,68,68,0.3); }
.btn-danger:hover { background: rgba(239,68,68,0.25); }

.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-icon { padding: 10px; width: 40px; height: 40px; justify-content: center; }

/* ─── Glass cards ─── */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  transition: var(--transition);
}
.glass-card:hover { border-color: rgba(255,107,0,0.25); box-shadow: var(--shadow-glow); }

.glass-card-inner {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

/* ─── Forms ─── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; margin-bottom: 8px;
  font-size: 0.85rem; font-weight: 500; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.form-control {
  width: 100%; padding: 12px 16px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  transition: var(--transition); outline: none;
  backdrop-filter: blur(10px);
}
.form-control::placeholder { color: var(--text-dim); }
.form-control:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-dim); }
.form-control:hover:not(:focus) { border-color: rgba(255,255,255,0.15); }

select.form-control option { background: #1a1a1a; color: var(--text); }

textarea.form-control { resize: vertical; min-height: 100px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.comment-form { display: flex; gap: 10px; align-items: flex-end; }

/* ─── Badges ─── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.3px;
}
.badge-todo    { background: rgba(136,136,136,0.15); color: #888; border: 1px solid rgba(136,136,136,0.2); }
.badge-progress{ background: rgba(59,130,246,0.15); color: #60A5FA; border: 1px solid rgba(59,130,246,0.25); }
.badge-done    { background: rgba(34,197,94,0.15);  color: #4ADE80; border: 1px solid rgba(34,197,94,0.25); }
.badge-blocked { background: rgba(239,68,68,0.15);  color: #F87171; border: 1px solid rgba(239,68,68,0.25); }

.priority-low      { color: #6EE7B7; }
.priority-medium   { color: #FCD34D; }
.priority-high     { color: #FB923C; }
.priority-critical { color: #F87171; animation: pulse-red 2s infinite; }

@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

/* ─── Progress bar ─── */
.progress-bar-wrap {
  width: 100%; background: rgba(255,255,255,0.06);
  border-radius: 999px; overflow: hidden; height: 6px;
}
.progress-bar-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--orange-dark), var(--orange-light));
  box-shadow: 0 0 8px var(--orange-glow);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-bar-fill.done { background: linear-gradient(90deg, #16A34A, #4ADE80); box-shadow: 0 0 8px rgba(34,197,94,0.4); }

/* ─── Task cards ─── */
.task-card {
  padding: 20px 24px;
  cursor: pointer;
  animation: fadeUp 0.4s ease both;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.task-card:hover { transform: translateY(-2px); }

.task-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.task-card-title { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 1rem; color: var(--text); line-height: 1.4; }
.task-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: 0.8rem; color: var(--text-muted); }
.task-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; gap: 8px; flex-wrap: wrap; }

.task-card-desc { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; margin-bottom: 14px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ─── User avatar ─── */
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.72rem;
  color: white; flex-shrink: 0; border: 2px solid var(--glass-border);
}

/* ─── Page header ─── */
.page-header {
  padding: 48px 0 32px;
  animation: fadeUp 0.5s ease;
}
.page-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  background: linear-gradient(135deg, var(--text) 0%, var(--orange-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 6px;
}
.page-subtitle { color: var(--text-muted); font-size: 1rem; }

/* ─── Sidebar layout ─── */
.sidebar-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding-bottom: 60px; }
@media (max-width: 900px) { .sidebar-layout { grid-template-columns: 1fr; } }

.sidebar {
  position: sticky; top: 88px; height: fit-content;
  display: flex; flex-direction: column; gap: 16px;
}

/* ─── Stats ─── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }

.stat-card {
  padding: 20px; text-align: center;
  animation: fadeUp 0.4s ease both;
}
.stat-number {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 2.2rem; color: var(--orange); display: block;
  line-height: 1;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }

/* ─── Feed grid ─── */
.tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.tasks-grid > a { display: block; height: 100%; }
@media (max-width: 480px) { .tasks-grid { grid-template-columns: 1fr; } }

/* ─── Modals ─── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
  opacity: 0; pointer-events: none; transition: var(--transition);
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal {
  background: linear-gradient(145deg, #1a1a1a, #111111);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 32px; width: 100%; max-width: 580px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow), 0 0 60px rgba(0,0,0,0.5);
  transform: translateY(30px) scale(0.96);
  transition: var(--transition);
}
.modal-overlay.active .modal { transform: none; }

.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.modal-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.3rem; }
.modal-close {
  width: 36px; height: 36px; border-radius: 50%; background: var(--glass);
  border: 1px solid var(--glass-border); color: var(--text-muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: var(--transition);
}
.modal-close:hover { color: var(--text); background: var(--glass-hover); }

/* ─── Auth pages ─── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 440px; padding: 40px; border-radius: var(--radius-xl); animation: fadeUp 0.5s ease; }
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo .logo-icon { width: 56px; height: 56px; background: var(--orange); border-radius: 16px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 0 30px var(--orange-glow); }
.auth-logo h1 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.8rem; }
.auth-logo p { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }
.auth-footer { text-align: center; margin-top: 24px; color: var(--text-muted); font-size: 0.9rem; }
.auth-footer a { color: var(--orange); text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* ─── Search bar ─── */
.search-wrap { position: relative; }
.search-wrap .search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-dim); font-size: 1rem; pointer-events: none;
}
.search-wrap .form-control { padding-left: 42px; }

/* ─── Alerts ─── */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 20px; border: 1px solid; }
.alert-error   { background: rgba(239,68,68,0.1);  border-color: rgba(239,68,68,0.3);  color: #FCA5A5; }
.alert-success { background: rgba(34,197,94,0.1);  border-color: rgba(34,197,94,0.3);  color: #86EFAC; }
.alert-info    { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); color: #93C5FD; }

/* ─── Tags / chips ─── */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 500;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text-muted); transition: var(--transition);
}
.chip:hover { border-color: var(--orange); color: var(--orange); }
.chip-orange { background: var(--orange-dim); border-color: rgba(255,107,0,0.3); color: var(--orange-light); }

/* ─── Dividers ─── */
.divider { height: 1px; background: var(--glass-border); margin: 24px 0; }

/* ─── Update/activity feed ─── */
.update-item {
  display: flex; gap: 14px; padding: 16px 0;
  border-bottom: 1px solid var(--glass-border);
  animation: fadeUp 0.4s ease both;
}
.update-item:last-child { border-bottom: none; }
.update-dot {
  width: 10px; height: 10px; border-radius: 50%; margin-top: 7px;
  flex-shrink: 0;
}
.update-dot.progress { background: var(--info); box-shadow: 0 0 8px rgba(59,130,246,0.5); }
.update-dot.issue    { background: var(--danger); box-shadow: 0 0 8px rgba(239,68,68,0.5); }
.update-dot.note     { background: var(--text-dim); }
.update-dot.completed{ background: var(--success); box-shadow: 0 0 8px rgba(34,197,94,0.5); }
.update-dot.blocked  { background: var(--warning); box-shadow: 0 0 8px rgba(250,204,21,0.5); }

.update-content { flex: 1; }
.update-meta { font-size: 0.8rem; color: var(--text-dim); margin-top: 4px; }
.update-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

/* ─── Reactions ─── */
.reactions-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.reaction-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-border);
  font-size: 0.82rem; color: var(--text-muted); cursor: pointer;
  transition: var(--transition);
}
.reaction-btn:hover { border-color: var(--orange); color: var(--orange); }
.reaction-btn.active { background: var(--orange-dim); border-color: var(--orange); color: var(--orange); }

/* ─── Toast notifications ─── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  padding: 14px 20px; border-radius: var(--radius); min-width: 260px; max-width: 360px;
  background: #1e1e1e; border: 1px solid var(--glass-border);
  box-shadow: var(--shadow); font-size: 0.9rem;
  display: flex; align-items: center; gap: 12px;
  animation: toastIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.toast.toast-success { border-color: rgba(34,197,94,0.3); }
.toast.toast-error   { border-color: rgba(239,68,68,0.3); }
.toast-icon { font-size: 1.1rem; }
@keyframes toastIn { from { transform: translateX(100px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { to   { transform: translateX(100px); opacity: 0; } }

/* ─── Skeleton loading ─── */
.skeleton {
  background: linear-gradient(90deg, var(--black-3) 25%, var(--black-4) 50%, var(--black-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ─── Animations ─── */
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp  { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.10s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.20s; }
.stagger-5 { animation-delay: 0.25s; }

/* ─── Detail page ─── */
.task-detail-header { padding: 36px 0 28px; }
.task-detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; padding-bottom: 60px; }
@media (max-width: 900px) { .task-detail-grid { grid-template-columns: 1fr; } }

.section-title {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px;
}

/* ─── Empty state ─── */
.empty-state {
  text-align: center; padding: 60px 24px;
  color: var(--text-dim); animation: fadeIn 0.5s ease;
}
.empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-family: 'Syne', sans-serif; font-size: 1.1rem; color: var(--text-muted); margin-bottom: 6px; }
.empty-state p { font-size: 0.9rem; }

/* ─── Profile page ─── */
.profile-hero {
  padding: 48px 0 32px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  animation: fadeUp 0.5s ease;
}
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.5rem;
  color: white; border: 3px solid var(--orange);
  box-shadow: 0 0 30px var(--orange-glow); flex-shrink: 0;
}

/* ─── Filter tabs ─── */
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-tab {
  padding: 7px 16px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text-muted); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: var(--transition); text-decoration: none;
}
.filter-tab:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
.filter-tab.active { background: var(--orange-dim); border-color: var(--orange); color: var(--orange); }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--black-4); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ─── Utility ─── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.text-orange { color: var(--orange); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.85rem; }
.fw-bold { font-weight: 700; }
.font-syne { font-family: 'Syne', sans-serif; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ─── Range input ─── */
input[type="range"] {
  width: 100%; accent-color: var(--orange);
  background: var(--glass); border-radius: 999px;
  height: 6px; cursor: pointer;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .container-sm { padding: 0 20px; }
}

/* ─── Responsive Utilities & Defaults ─── */
.desktop-only {
  display: inline-flex !important;
}
.mobile-only {
  display: none !important;
}
.mobile-show {
  display: none !important;
}

/* ─── Hamburger Button Styles ─── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
  margin-left: 8px;
}
.hamburger-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger-btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.chat-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 550px;
  gap: 24px;
  padding-bottom: 60px;
}

@media (max-width: 900px) {
  .navbar {
    height: 68px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 16px;
  }
  .nav-brand { font-size: 1.3rem; }
  
  .hamburger-btn {
    display: flex;
  }
  
  .desktop-only {
    display: none !important;
  }
  
  .mobile-only {
    display: inline-flex !important;
  }
  
  .mobile-show {
    display: inline-flex !important;
  }
  
  .mobile-hide {
    display: none !important;
  }
  
  .nav-links {
    position: fixed !important;
    top: 68px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: calc(100vh - 68px) !important;
    background: rgba(10, 10, 10, 0.98) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    z-index: 99 !important;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    padding: 40px !important;
    overflow-y: auto !important;
  }
  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    font-size: 1.25rem;
    padding: 12px 24px;
    width: 100%;
    text-align: center;
    white-space: normal;
  }
  
  .nav-actions {
    width: auto;
    order: unset;
    justify-content: flex-end;
    gap: 12px;
  }

  .sidebar { position: static; }
  
  .chat-layout {
    grid-template-columns: 1fr;
    min-height: auto !important;
    gap: 0;
  }

  .task-detail-grid { gap: 20px; }
  .page-header { padding: 32px 0 20px; }
  .task-detail-header { padding: 28px 0 20px; }
}

@media (max-width: 768px) {
  .btn { padding: 9px 14px; font-size: 0.88rem; }
  .btn-lg { padding: 12px 22px; font-size: 0.95rem; }
  .btn-sm { padding: 6px 12px; }

  .task-card { padding: 18px 18px; }
  .task-card-desc { -webkit-line-clamp: 3; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .modal { padding: 24px; }
  .auth-card { padding: 28px; }
  .profile-avatar { width: 68px; height: 68px; font-size: 1.25rem; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .container-sm { padding: 0 16px; }
  .page-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .page-subtitle { font-size: 0.92rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .task-card-footer { justify-content: flex-start; }
  .task-card-meta { gap: 6px 10px; }

  .comment-form { flex-direction: column; align-items: stretch; }
  .comment-form .btn { width: 100%; justify-content: center; }

  .profile-hero { flex-direction: column; align-items: flex-start; }
  .profile-hero .btn { align-self: flex-start; }

  .modal { max-height: 92vh; }
  .modal-header { gap: 12px; flex-wrap: wrap; }
  .modal-title { font-size: 1.1rem; }

  .toast-container { right: 12px; left: 12px; bottom: 16px; }
  .toast { width: 100%; min-width: 0; max-width: 100%; }
}

@media (max-width: 480px) {
  .navbar { padding: 10px 14px; }
  .nav-brand .brand-icon { width: 32px; height: 32px; font-size: 1rem; }
  .nav-links a { padding: 6px 12px; font-size: 0.85rem; }
  .btn-icon { width: 36px; height: 36px; }

  .stats-grid { grid-template-columns: 1fr; }
  .task-card { padding: 16px; }
  .task-card-title { font-size: 0.98rem; }
  .task-card-meta { font-size: 0.78rem; }
  .user-avatar { width: 28px; height: 28px; font-size: 0.65rem; }

  .auth-card { padding: 22px; }
  .auth-logo h1 { font-size: 1.5rem; }
  .auth-logo .logo-icon { width: 48px; height: 48px; font-size: 1.4rem; }

  .task-detail-header { padding: 22px 0 16px; }
  .task-detail-grid { padding-bottom: 40px; }
}

/* ─── Notifications styles ─── */
.notifications-dropdown-wrap {
  position: relative;
}

.notifications-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 200;
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notifications-dropdown.hidden {
  display: none !important;
}

.notification-item:hover {
  background: var(--glass-hover) !important;
  border-color: var(--orange-light) !important;
  transform: translateY(-1px);
}

/* ─── Stretched Link ─── */
.task-card {
  position: relative;
}

.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}

/* Ensure interactive elements inside task card are clickable above stretched-link */
.task-card-meta a,
.task-card-meta button,
.task-card-footer a,
.task-card-footer button,
.reaction-btn,
.badge,
.chip,
.user-avatar {
  position: relative;
  z-index: 2;
}

/* ─── SVG Icon Styles ─── */
.icon-svg {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.icon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-icon-svg {
  width: 1.1em;
  height: 1.1em;
  color: white;
}
