/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Surfaces — zinc-950 family, never pure black */
  --bg:   #09090b;
  --bg2:  #111117;
  --bg3:  #18181f;
  --bg4:  #1e1e27;
  --bg5:  #25252f;

  /* Borders */
  --border:  #23232d;
  --border2: #2e2e3a;

  /* Text */
  --text:  #f4f4f6;
  --text2: #a1a1aa;
  --text3: #52525b;

  /* Accent — Emerald (replaces generic purple) */
  --accent:        #10b981;
  --accent-h:      #059669;
  --accent-bg:     rgba(16, 185, 129, 0.08);
  --accent-border: rgba(16, 185, 129, 0.28);

  /* Semantic */
  --success: #10b981;
  --warning: #f59e0b;
  --danger:  #f43f5e;

  /* Project type palette — muted, works on dark */
  --site:       #60a5fa;
  --aplicativo: #a78bfa;
  --trafego:    #fb923c;
  --conteudo:   #34d399;
  --outro:      #71717a;

  /* Layout */
  --sidebar-w: 218px;
  --topbar-h:  52px;
  --radius:    6px;
  --radius-lg: 10px;
  --radius-xl: 14px;
}

html, body {
  height: 100%;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; font-size: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg5); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--border2); }

/* Selection */
::selection { background: rgba(16, 185, 129, 0.18); color: var(--text); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateX(14px); }
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.97) translateY(4px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.logo { display: flex; align-items: center; gap: 9px; }

.logo-mark {
  width: 26px; height: 26px;
  background: var(--accent);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.logo-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.sidebar-close {
  display: none;
  background: none; border: none;
  color: var(--text2);
  padding: 5px; border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
  align-items: center; justify-content: center;
}
.sidebar-close:hover { background: var(--bg4); color: var(--text); }

.sidebar-nav {
  padding: 10px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--text2);
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active { background: var(--bg3); color: var(--text); }
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 5px; bottom: 5px;
  width: 2px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}

.nav-icon {
  width: 18px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.nav-item:hover .nav-icon,
.nav-item.active .nav-icon { opacity: 1; }

.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-version { font-size: 11px; color: var(--text3); font-family: 'JetBrains Mono', monospace; }

.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  z-index: 99;
}

/* ===== LAYOUT ===== */
.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex; flex-direction: column;
}

.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--topbar-h);
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  padding: 0 28px;
}

.hamburger {
  display: none;
  background: none; border: none;
  color: var(--text2);
  padding: 5px; border-radius: var(--radius);
  align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.hamburger:hover { background: var(--bg3); color: var(--text); }

.topbar-logo {
  display: none;
  align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700;
}
.topbar-logo .logo-mark { width: 22px; height: 22px; border-radius: 6px; }

.breadcrumb {
  display: flex; align-items: center; gap: 5px;
  color: var(--text3); font-size: 13px;
}
.breadcrumb-item {
  cursor: pointer; color: var(--text2);
  transition: color 0.15s;
}
.breadcrumb-item:hover { color: var(--text); }
.breadcrumb-sep { color: var(--text3); opacity: 0.5; font-size: 11px; }
.breadcrumb-current { color: var(--text); font-weight: 500; }

.content {
  flex: 1;
  padding: 32px 36px;
  max-width: 1140px;
}

/* ===== PAGE HEADER ===== */
.page-header {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 26px; gap: 16px; flex-wrap: wrap;
}
.page-title {
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.4px; color: var(--text);
}
.page-subtitle { color: var(--text2); margin-top: 3px; font-size: 13px; }

/* ===== CARDS ===== */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
  animation: fadeUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 50ms);
}
.card.card-clickable { cursor: pointer; }
.card.card-clickable:hover {
  border-color: var(--border2);
  box-shadow: 0 4px 28px rgba(0,0,0,0.38);
}

/* ===== GRIDS ===== */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 10px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 13px; font-weight: 500;
  border: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s;
  white-space: nowrap; user-select: none;
  letter-spacing: -0.1px;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-h); }

.btn-secondary {
  background: var(--bg3); color: var(--text);
  border: 1px solid var(--border2);
}
.btn-secondary:hover { background: var(--bg4); }

.btn-ghost {
  background: transparent; color: var(--text2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg3); color: var(--text); }

.btn-danger {
  background: rgba(244,63,94,0.08); color: var(--danger);
  border: 1px solid rgba(244,63,94,0.2);
}
.btn-danger:hover { background: var(--danger); color: #fff; }

.btn-sm { padding: 5px 10px; font-size: 12px; }

.btn-icon {
  padding: 5px; background: none; border: none;
  color: var(--text3); border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}
.btn-icon:hover { background: var(--bg5); color: var(--text2); }
.btn-icon:active { transform: scale(0.88); }

/* ===== SEARCH ===== */
.search-bar {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 7px 12px;
  width: 100%; max-width: 272px;
  transition: border-color 0.15s;
}
.search-bar:focus-within { border-color: var(--border2); }
.search-bar svg { color: var(--text3); flex-shrink: 0; }
.search-bar input {
  background: none; border: none; color: var(--text);
  outline: none; flex: 1; font-size: 13px;
}
.search-bar input::placeholder { color: var(--text3); }

/* ===== BADGES ===== */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 7px; border-radius: 99px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.2px;
  font-family: 'JetBrains Mono', monospace;
}

.badge-site       { background: rgba(96,165,250,0.1);  color: #93c5fd; }
.badge-aplicativo { background: rgba(167,139,250,0.1); color: #c4b5fd; }
.badge-trafego    { background: rgba(251,146,60,0.1);  color: #fdba74; }
.badge-conteudo   { background: rgba(52,211,153,0.1);  color: #6ee7b7; }
.badge-outro      { background: rgba(113,113,122,0.12);color: #a1a1aa; }

.badge-ativo     { background: rgba(16,185,129,0.1);  color: #34d399; }
.badge-planejado { background: rgba(96,165,250,0.1);  color: #93c5fd; }
.badge-concluido { background: rgba(82,82,91,0.15);   color: #71717a; }

.badge-alta  { background: rgba(244,63,94,0.1);  color: #fb7185; }
.badge-media { background: rgba(245,158,11,0.1); color: #fbbf24; }
.badge-baixa { background: rgba(82,82,91,0.12);  color: #71717a; }

/* ===== PROGRESS ===== */
.progress-wrap {
  background: var(--bg5); border-radius: 99px; height: 3px; overflow: hidden;
}
.progress-bar {
  height: 100%; background: var(--accent); border-radius: 99px;
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.progress-label {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--text2); margin-bottom: 7px;
}

/* ===== CLIENT CARD ===== */
.client-card { display: flex; align-items: center; gap: 12px; }
.client-avatar {
  width: 38px; height: 38px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
  color: rgba(255,255,255,0.92); flex-shrink: 0;
  letter-spacing: -0.5px;
}
.client-info { flex: 1; min-width: 0; }
.client-name {
  font-weight: 600; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: -0.2px;
}
.client-meta {
  color: var(--text2); font-size: 12px; margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
}
.client-actions { display: flex; gap: 1px; opacity: 0; transition: opacity 0.15s; }
.card:hover .client-actions { opacity: 1; }

/* ===== PROJECT CARD ===== */
.project-card-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 8px; margin-bottom: 10px;
}
.project-name { font-weight: 600; font-size: 14px; letter-spacing: -0.2px; }
.project-desc {
  color: var(--text2); font-size: 12px; margin-top: 3px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.project-footer {
  display: flex; align-items: center; justify-content: space-between; margin-top: 14px;
}
.project-actions { display: flex; gap: 1px; opacity: 0; transition: opacity 0.15s; }
.card:hover .project-actions { opacity: 1; }

/* ===== TYPE SECTIONS ===== */
.type-section { margin-bottom: 28px; }
.type-section-header { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.type-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.type-dot-site       { background: var(--site); }
.type-dot-aplicativo { background: var(--aplicativo); }
.type-dot-trafego    { background: var(--trafego); }
.type-dot-conteudo   { background: var(--conteudo); }
.type-dot-outro      { background: var(--outro); }
.type-label {
  font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.8px; color: var(--text3);
}

/* ===== SPRINT LIST ===== */
.sprint-item {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 15px 20px;
  display: flex; align-items: center; gap: 16px; margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.2s, box-shadow 0.2s;
  animation: fadeUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 50ms);
}
.sprint-item:hover { background: var(--bg3); border-color: var(--border2); }
.sprint-item.sprint-ativo { border-left: 2px solid var(--accent); }

.sprint-main { flex: 1; min-width: 0; }
.sprint-name { font-weight: 600; font-size: 14px; letter-spacing: -0.2px; }
.sprint-dates {
  color: var(--text2); font-size: 11.5px; margin-top: 3px;
  font-family: 'JetBrains Mono', monospace;
}
.sprint-progress { width: 136px; flex-shrink: 0; }
.sprint-actions { display: flex; gap: 1px; opacity: 0; transition: opacity 0.15s; }
.sprint-item:hover .sprint-actions { opacity: 1; }

/* ===== KANBAN ===== */
.kanban {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px;
}
.kanban-col {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; min-height: 420px;
}
.kanban-col-header {
  padding: 11px 12px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.kanban-col-title {
  display: flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.7px; color: var(--text2);
}
.kanban-col-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.kanban-col[data-status="backlog"]   .kanban-col-dot { background: var(--text3); }
.kanban-col[data-status="andamento"] .kanban-col-dot { background: var(--warning); }
.kanban-col[data-status="concluido"] .kanban-col-dot { background: var(--success); }

.kanban-col-count {
  background: var(--bg5); color: var(--text3);
  min-width: 18px; height: 18px; border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-family: 'JetBrains Mono', monospace; padding: 0 5px;
}
.kanban-cards {
  flex: 1; padding: 9px; display: flex; flex-direction: column; gap: 6px;
  transition: background 0.15s;
}
.kanban-cards.drag-over { background: rgba(16,185,129,0.04); }

/* Task card — priority indicator via left border */
.task-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 11px 10px 13px;
  cursor: grab; user-select: none; position: relative;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  border-left: 2.5px solid transparent;
}
.task-card.prio-alta   { border-left-color: var(--danger); }
.task-card.prio-media  { border-left-color: var(--warning); }
.task-card.prio-baixa  { border-left-color: var(--text3); }

.task-card:hover {
  border-color: var(--border2);
  border-left-color: inherit;
  box-shadow: 0 2px 14px rgba(0,0,0,0.3);
}
.task-card.prio-alta:hover   { border-left-color: var(--danger); }
.task-card.prio-media:hover  { border-left-color: var(--warning); }
.task-card.prio-baixa:hover  { border-left-color: var(--text3); }
.task-card.dragging { opacity: 0.4; cursor: grabbing; transform: scale(0.97); }

.task-card-title { font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--text); margin-bottom: 8px; }
.task-card-desc {
  color: var(--text2); font-size: 11.5px; margin-bottom: 8px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.task-card-footer { display: flex; align-items: center; justify-content: space-between; }
.task-actions { display: flex; gap: 1px; opacity: 0; transition: opacity 0.15s; }
.task-card:hover .task-actions { opacity: 1; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 12.5px; font-weight: 500; color: var(--text2); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); padding: 8px 11px;
  outline: none; transition: border-color 0.15s, background 0.15s; font-size: 13.5px;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-border); background: var(--bg4);
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2352525b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px;
}
.form-select option { background: var(--bg3); }
.form-textarea { resize: vertical; min-height: 78px; line-height: 1.5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.color-input-wrap { display: flex; align-items: center; gap: 10px; }
.form-color {
  width: 36px; height: 34px; background: none;
  border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; padding: 2px;
}
.form-actions {
  display: flex; justify-content: flex-end; gap: 8px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.68);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 20px;
}
.modal {
  background: var(--bg2);
  border: 1px solid var(--border2);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset, 0 24px 64px rgba(0,0,0,0.75);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  animation: modalIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--bg2); z-index: 1;
}
.modal-header h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.2px; }
.modal-close {
  background: none; border: none; color: var(--text3);
  padding: 5px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover { background: var(--bg4); color: var(--text2); }
.modal-body { padding: 20px; }

/* ===== TOAST ===== */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 6px; }
.toast {
  background: var(--bg3);
  border: 1px solid var(--border2);
  box-shadow: 0 4px 24px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.02) inset;
  border-radius: var(--radius-lg); padding: 10px 14px;
  font-size: 13px; min-width: 210px; max-width: 320px;
  animation: slideInRight 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; align-items: center; gap: 9px;
}
.toast-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.toast-success .toast-dot { background: var(--success); box-shadow: 0 0 7px var(--success); }
.toast-error   .toast-dot { background: var(--danger);  box-shadow: 0 0 7px var(--danger); }
.toast.hiding { animation: fadeOut 0.2s ease forwards; }

/* ===== CONFIG PAGE ===== */
.config-section { margin-bottom: 26px; }
.config-section-title {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.8px; color: var(--text3);
  margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.config-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
}
.test-response {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 13px; margin-top: 12px; font-size: 13px; line-height: 1.65;
  white-space: pre-wrap; display: none; color: var(--text2);
}

/* ===== REPORT ===== */
.report-box {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; font-family: 'JetBrains Mono', monospace;
  font-size: 12px; line-height: 1.8; white-space: pre-wrap;
  color: var(--text); max-height: 380px; overflow-y: auto;
}

/* ===== SPRINT HEADER ===== */
.sprint-header-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 22px 26px; margin-bottom: 16px;
  animation: fadeUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.sprint-header-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.sprint-header-info h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.4px; }
.sprint-header-meta {
  display: flex; align-items: center; gap: 16px; margin-top: 10px; flex-wrap: wrap;
}
.sprint-header-meta span {
  display: flex; align-items: center; gap: 5px;
  color: var(--text2); font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
}
.sprint-progress-wrap { margin-top: 18px; }

/* ===== PROGRESS CARD ===== */
.progress-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 20px;
  margin-bottom: 20px;
  animation: fadeUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 50ms;
}

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 72px 20px; }
.empty-state-icon {
  width: 58px; height: 58px; margin: 0 auto 16px;
  background: var(--bg3); border: 1px solid var(--border); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; color: var(--text3);
}
.empty-state h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.2px; color: var(--text); margin-bottom: 7px; }
.empty-state p { font-size: 13px; margin-bottom: 22px; color: var(--text2); }

/* ===== SKELETON ===== */
.skeleton {
  background: linear-gradient(90deg, var(--bg3) 25%, var(--bg4) 50%, var(--bg3) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.5s infinite; border-radius: var(--radius);
}
.skel-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 20px;
  animation: fadeUp 0.3s ease both;
  animation-delay: calc(var(--i, 0) * 50ms);
}
.skel-line { height: 13px; margin-bottom: 9px; }
.skel-sm { height: 11px; width: 55%; margin-bottom: 0; }

/* ===== IA MODAL ===== */
.ia-context-box {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 11px 13px; margin-bottom: 16px;
}
.ia-context-title { font-weight: 600; font-size: 13px; }
.ia-context-sub { color: var(--text2); font-size: 12px; margin-top: 3px; }

.ia-task-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 6px; cursor: pointer;
  transition: border-color 0.15s;
}
.ia-task-item:hover { border-color: var(--border2); }
.ia-task-item input[type="checkbox"] {
  margin-top: 2px; accent-color: var(--accent);
  flex-shrink: 0; width: 14px; height: 14px;
}
.ia-task-title { font-weight: 500; font-size: 13px; color: var(--text); }
.ia-task-desc { color: var(--text2); font-size: 12px; margin-top: 3px; line-height: 1.4; }

.ia-loading {
  text-align: center; padding: 36px; color: var(--text2);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.ia-spinner {
  width: 22px; height: 22px;
  border: 2px solid var(--bg5); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: flex; }
  .sidebar-overlay.open { display: block; }
  .main { margin-left: 0; }
  .hamburger { display: flex; }
  .topbar-logo { display: flex; }
  .content { padding: 16px; }
  .kanban { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .sprint-progress { display: none; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .sprint-header-top > div:last-child { width: 100%; }
}

@media (max-width: 480px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
