:root{
  --bg:#0b0d12;
  --card:#121620;
  --muted:#9aa3b2;
  --text:#eef1f5;
  --primary:#e3424b;
  --primary-600:#c82a33;
  --input:#1c1f27;
  --border:#262b36;
  --success:#22c55e;
  --warn:#f5c54b;
  --danger:#ef4444;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{ margin:0; font-family:Inter,system-ui,Segoe UI,Roboto,Arial,sans-serif; color:var(--text); background:var(--bg); line-height:1.45; }

/* BG */
.bg{ position:fixed; inset:0; z-index:-1;
  background:
    radial-gradient(1200px 420px at 50% -110px, rgba(227,66,75,.45), transparent 60%),
    linear-gradient(180deg, #12090a 0%, #0b0d12 35%, #0b0d12 100%);
}

/* Wraps */
.wrap{ width:100%; max-width:1100px; margin:0 auto; padding:0 18px; }
.header-wrap{ display:flex; align-items:center; gap:14px; padding:22px 18px 10px; position:relative; }
.main-wrap{ padding:6px 18px 32px; }
.footer-wrap{ display:flex; align-items:center; justify-content:space-between; padding:24px 18px 36px; }

/* Header */
.brand-dot{ display:none; }
.brand-titles{ flex:1; text-align:center; }
.title{ margin:0; font-size:44px; font-weight:800; letter-spacing:.4px; }
.subtitle{ margin:6px 0 0; color:var(--muted); font-size:18px; }

/* User chip/menu */
.user-chip{ position:absolute; right:18px; top:14px; width:46px; height:46px; border-radius:999px;
  border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.04); color:#fff; font-weight:700; }
.user-menu{ position:absolute; right:18px; top:68px; width:220px; background:#12141a; border:1px solid #232734; border-radius:14px; box-shadow:var(--shadow); overflow:hidden; }
.user-menu .menu-item{ width:100%; text-align:left; padding:12px 14px; background:transparent; color:#e9edf2; border:0; }
.user-menu .menu-item:hover{ background:#1a1e28; }
.user-menu .menu-item.danger{ color:#ff8c8c; }
.user-menu .menu-item.danger:hover{ background:#261619; }

/* Cards */
.card{ background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.005)); border:1px solid var(--border); border-radius:18px; padding:22px; box-shadow:var(--shadow); }
.card + .card{ margin-top:18px; }
.card-title{ margin:0 0 14px; font-size:28px; }

/* Grid */
.grid-2{ display:grid; gap:20px; grid-template-columns:1.1fr 1fr; }
@media (max-width:980px){ .grid-2{ grid-template-columns:1fr; } }

/* Forms */
.vstack{ display:flex; flex-direction:column; gap:12px; }
label{ font-weight:600; margin-top:6px; }
.input{ width:100%; border:1px solid var(--border); background:var(--input); color:var(--text); border-radius:12px; padding:12px 14px; font-size:16px; }
.input.sm{ padding:10px 12px; font-size:14px; }
.input.ta{ resize:vertical; min-height:120px; }
.check-inline{ display:inline-flex; align-items:center; gap:10px; margin:6px 0 2px; user-select:none; }
.small{ font-size:.92rem; }
.muted{ color:var(--muted); }
.center{ text-align:center; }
.sep{ border:0; border-top:1px solid var(--border); margin:12px 0; }

/* Buttons */
.btn{ border:0; border-radius:14px; padding:12px 16px; color:#fff; cursor:pointer; background:#2c3140; }
.btn.primary{ background:linear-gradient(180deg, var(--primary), var(--primary-600)); }
.btn.ghost{ background:transparent; border:1px solid var(--border); color:#e6e9ee; }
.btn.xs{ padding:7px 10px; border-radius:10px; font-size:13px; }
.btn.is-loading{ opacity:.75; pointer-events:none; }
.btn-spinner{ display:none; width:14px; height:14px; border:2px solid rgba(255,255,255,.3); border-top-color:#fff; border-radius:50%; margin-left:8px; animation:spin .9s linear infinite; }
.wfull{ width:100%; }
@keyframes spin{ to{ transform:rotate(360deg);} }

/* Tabs */
.tabs{ display:flex; gap:12px; margin-bottom:16px; }
.tab{ padding:10px 14px; border:1px solid var(--border); background:#161a22; color:#dfe4ea; border-radius:16px; }
.tab.active{ outline:2px solid rgba(227,66,75,.35); }
.tab-panel.hidden{ display:none; }

/* Filters */
.filters{ display:flex; align-items:center; gap:12px; margin-bottom:10px; }

/* Tasks */
.tasks{ display:flex; flex-direction:column; gap:12px; }
.task{ border:1px solid var(--border); border-radius:16px; padding:14px; background:#0f131a; }
.t-title{ font-size:18px; font-weight:700; margin-bottom:8px; }
.t-meta{ display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.chip{ display:inline-block; padding:4px 10px; border-radius:999px; font-size:12px; border:1px solid var(--border); }
.chip-pendente{ color:#f5c54b; border-color:#3c331b; background:#16130a; }
.chip-concluido{ color:#22c55e; border-color:#18361f; background:#0d1a12; }
.chip-cancelado{ color:#ef7070; border-color:#3a1717; background:#190d0d; }
.task-actions{ display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }

/* Select destinatários */
.select-trigger{ width:100%; text-align:left; padding:12px 14px; border-radius:14px; background:#161a22; border:1px solid var(--border); color:#dfe4ea; display:flex; align-items:center; justify-content:space-between; }
.select-trigger .sel-prefix{ opacity:.9; }

/* Dropdown lista */
.dropdown{ margin-top:8px; border:1px solid var(--border); border-radius:16px; background:#0f131a; box-shadow:var(--shadow); padding:12px; max-width:520px; }
.drop-header{ margin-bottom:10px; }
.assignees-list{ display:flex; flex-direction:column; gap:8px; max-height:300px; overflow:auto; padding-right:6px; padding-bottom:96px; } /* espaço extra para não sobrepor os botões */
.assignee-item{ display:flex; align-items:center; justify-content:space-between; border:1px solid var(--border); background:#11161d; padding:12px 14px; border-radius:12px; }
.assignee-name{ font-weight:600; }
.assignee-item input[type="checkbox"]{ width:22px; height:22px; }
.drop-actions{ position:sticky; bottom:0; padding-top:12px; margin-top:8px; background:linear-gradient(180deg, rgba(15,19,26,0), #0f131a 30%, #0f131a 100%); display:flex; gap:10px; justify-content:flex-end; border-top:1px solid var(--border); }

/* Modals */
.modal{ position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,.5); z-index:50; }
.modal-card{ width:100%; max-width:560px; border:1px solid var(--border); background:#11151d; border-radius:18px; padding:18px; box-shadow:var(--shadow); }
.modal-card.lg{ max-width:640px; }
.modal-title{ margin:0 0 10px; font-size:22px; }
.actions{ display:flex; gap:10px; justify-content:flex-end; margin-top:14px; }

/* Details */
.details{ border:1px solid var(--border); border-radius:12px; background:#10141b; }
.details > summary{ cursor:pointer; list-style:none; padding:12px 14px; font-weight:600; }
.details > summary::-webkit-details-marker{ display:none; }
.details-body{ padding:12px 14px 14px; border-top:1px solid var(--border); display:grid; gap:10px; }

/* Footer logo (3x maior) */
.footer-logo img{ height:66px; opacity:.9; filter:drop-shadow(0 2px 6px rgba(0,0,0,.35)); }

/* Utils */
.hidden{ display:none !important; }
.danger{ color:#ff9a9a; }
.warn{ color:#f5c54b; }
.success{ color:#7defa7; }

/* ===== Tarefas vencidas ===== */
.task-overdue{
  background: linear-gradient(180deg, rgba(120,16,16,0.35), rgba(120,16,16,0.15));
  border: 1px solid rgba(220,60,60,0.45);
}
.task-overdue .t-title{ color:#ffdada; }
.task-overdue .chip-pendente{ background:#c0392b; color:#fff; }

/* ===== Pedidos de novo prazo no card do autor ===== */
.ext-req{ margin-top:10px; padding:10px; border:1px dashed rgba(255,255,255,0.12); border-radius:12px; background:rgba(255,255,255,0.03); }
.ext-req-title{ font-weight:600; margin-bottom:6px; }
.ext-req-row{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:8px 0; border-top:1px solid rgba(255,255,255,0.06); }
.ext-req-row:first-child{ border-top:0; }
.ext-req-info{ font-size:13px; color:#cfd3d9; }
.ext-req-actions .btn{ margin-left:6px; }


@keyframes spin{ to{ transform:rotate(360deg);} }
