/* Premium Tasks — Luxo minimalista com glassmorphism */
:root{
  --bg1:#2a1a6c;
  --bg2:#0d3a88;
  --glass: rgba(255,255,255,.08);
  --stroke: rgba(255,255,255,.16);
  --text:#eae6ff;
  --muted:#c4c0df;
  --ok:#35d07f;
  --pending:#ffbb33;
  --danger:#ff6b6b;
  --grad: linear-gradient(135deg,#ff4ecd, #7c4dff);
  --grad2: linear-gradient(135deg,#7c4dff, #2fc1ff);
  --shadow: 0 15px 35px rgba(0,0,0,.35);
  --radius: 18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:'Poppins',system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,'Helvetica Neue',Arial,'Noto Sans',sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 800px at 20% 0%, #3b1aa8 0%, transparent 60%),
              radial-gradient(1200px 800px at 80% 0%, #0b5ad6 0%, transparent 60%),
              linear-gradient(160deg,var(--bg1),var(--bg2));
  background-attachment: fixed;
}

.page{
  min-height:100%;
  display:flex;
  flex-direction:column;
}

.hero{
  text-align:center;
  padding:48px 16px 20px;
}

.brand{
  margin:0;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing:.5px;
  line-height:1.05;
  background: var(--grad2);
  -webkit-background-clip: text;
  background-clip: text;
  color:transparent;
  font-weight:700;
}
.brand span{
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip:text;
  color:transparent;
}

.subtitle{
  margin:6px 0 22px;
  color:var(--muted);
  font-weight:400;
}

.stats{
  display:flex;
  justify-content:center;
  gap:18px;
  margin-bottom:26px;
  flex-wrap:wrap;
}
.chip{
  min-width:110px;
  padding:10px 14px;
  background:var(--glass);
  border:1px solid var(--stroke);
  border-radius: 999px;
  box-shadow: var(--shadow);
  display:flex; align-items:center; justify-content:center;
  gap:10px;
  backdrop-filter: blur(8px);
}
.chip .n{font-weight:700; font-size:20px}
.chip .k{color:var(--muted); font-size:14px}
.chip-ok .n{color:var(--ok)}
.chip-pending .n{color:var(--pending)}

.addbox{
  margin:0 auto;
  display:flex;
  gap:12px;
  width:min(940px, 92%);
  background: var(--glass);
  border:1px solid var(--stroke);
  border-radius: calc(var(--radius) + 10px);
  padding:14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.input{
  flex:1;
  padding:16px 18px;
  background: rgba(255,255,255,.06);
  color:var(--text);
  border:1px solid transparent;
  border-radius: var(--radius);
  outline:none;
}
.input::placeholder{color:#cfd1ff8f}

.select{
  width:140px;
  padding:14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  border:1px solid transparent;
  color:var(--text);
  outline:none;
}

.btn-grad{
  padding:14px 18px;
  border-radius: var(--radius);
  border:0;
  font-weight:600;
  color:white;
  background: var(--grad);
  box-shadow: 0 8px 22px rgba(255,78,205,.35);
  cursor:pointer;
}
.btn-grad:disabled{opacity:.6; cursor:not-allowed}

.filters{
  display:flex;
  justify-content:center;
  gap:12px;
  margin:22px 0 8px;
}
.pill{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  color:var(--text);
  padding:10px 16px;
  border-radius: 999px;
  cursor:pointer;
  font-weight:500;
}
.pill.active, .pill:hover{
  background: var(--grad);
  border-color: transparent;
}

.container{
  flex:1;
  width:min(980px, 92%);
  margin: 8px auto 40px;
}

.list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:12px;
}

.item{
  display:grid;
  grid-template-columns: auto 1fr auto;
  gap:14px;
  align-items:center;
  padding:14px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.check{
  position:relative;
  width:26px; height:26px;
  display:inline-grid; place-items:center;
}
.check input{appearance:none; width:26px; height:26px; margin:0; cursor:pointer}
.mark{
  position:absolute; inset:0;
  border-radius:8px;
  border:2px solid #c7c9ff9a;
}
.check input:checked + .mark{
  background: var(--grad2);
  border-color: transparent;
}

.content{min-width:0}
.title-row{
  display:flex; align-items:center; gap:10px; min-width:0;
}
.priority{
  font-size:12px; font-weight:700;
  padding:4px 8px; border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid var(--stroke);
  text-transform:capitalize;
  white-space:nowrap;
}
.priority[data-p="alta"]{background:#ff4e4e1a;border-color:#ff4e4e3d;color:#ffb1b1}
.priority[data-p="baixa"]{background:#40e2ff1a;border-color:#40e2ff3a;color:#c8f2ff}
.priority[data-p="media"]{background:#b388ff1a;border-color:#b388ff3a;color:#e4d5ff}

.title{
  font-weight:600; font-size:16px;
  color:var(--text);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1;
  outline:none;
  border-bottom: 1px dashed transparent;
}
.title[contenteditable="true"]{
  white-space:normal;
  border-bottom: 1px dashed #ffffff44;
}

.meta{color:#cfd1ff9e; font-size:12px; margin-top:6px}

.actions{display:flex; gap:8px}
.icon-btn{
  width:36px; height:36px;
  display:grid; place-items:center;
  border-radius:12px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  color:var(--text);
  cursor:pointer;
}
.icon-btn:hover{background: var(--glass)}

.item.done .title{color:#cfd1ff94; text-decoration:line-through}
.item.done .priority{opacity:.6}

.toast{
  position:fixed; bottom:22px; left:50%; transform: translateX(-50%) translateY(30px);
  background: var(--grad);
  color:white; padding:12px 16px; border-radius:12px;
  box-shadow: var(--shadow);
  opacity:0; pointer-events:none; transition:.3s ease;
}
.toast.show{opacity:1; transform:translateX(-50%) translateY(0)}

.foot{
  text-align:center; color:#cfd1ff90; padding:24px 12px 40px;
  font-size:14px;
}
.heart{color:#ff6b9e}
.sparkles{font-size:22px; margin-bottom:8px}
/* Responsividade */
@media (max-width:640px){
  .addbox{flex-wrap:wrap}
  .select{flex:0 0 calc(50% - 6px)}
  .btn-grad{flex:1}
}
