/* ===== Yellow / Amber Theme ===== */
:root{
  --bg-1:#0b0a05; --bg-2:#171309; --dot:#ffcc4d12;
  --text:#fff8e7; --muted:#e9d79c;
  --card:rgba(255,255,255,.06); --stroke:rgba(255,255,255,.09);
  --shadow:0 18px 60px rgba(0,0,0,.45);

  --gold:#ffd54f; --gold-2:#ffb300; --amber:#ffc107;
  --low:#a7f37a; --high:#ff8a00;

  --radius-lg:22px; --radius-md:16px; --radius-sm:12px;

  --low:    #a7f37a;
  --med:    #ffecb3; 
  --high:   #ff8a00;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  background-color: #110c00;
  margin:0; color:var(--text);
  font-family:"Outfit", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background-image:
    radial-gradient(var(--dot) 1px, transparent 1px),
    radial-gradient(var(--dot) 1px, transparent 1px),
    radial-gradient(900px 360px at 50% 80%, #2a1d00 0%, transparent 65%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  background-size: 22px 22px, 22px 22px, auto, auto;
  background-position: 0 0, 11px 11px, center, center;

  background-attachment: fixed;
  
}


.container{ max-width: 940px; margin: 40px auto 80px; padding: 0 24px;}

/* ===== Hero ===== */
.hero{ text-align:center; margin: 10px 0 28px; }
.title{ font-size: clamp(40px, 6vw, 72px); margin:0 0 4px; font-weight:800; }
.title span{
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-2) 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  text-shadow: 0 0 18px #ffca2833, 0 0 42px #ffb30026;
}
.tagline{ margin:0; color:var(--muted); }

/* ===== Composer (minimal) ===== */
.composer{ display:flex; align-items:center; flex-direction:column; gap:8px; }
.composer__surface{
  position: relative;
  width:min(760px, 100%);
  background:#140f0325;
  border:1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow);
  display:flex; gap:12px;
}
.input{
  flex:1; background: rgba(255,255,255,.05); border:1px solid transparent;
  color:var(--text); font-size:16px; padding:14px 16px; border-radius:14px; outline:none;
}
.input::placeholder{ color:#ffeab888; }
.input:focus{ box-shadow: 0 0 0 3px #ffc40033; }

.composer__btn{
  min-width:92px; height:48px; padding:0 18px;
  border-radius:14px; border:none; cursor:pointer;
  font-size:16px; font-weight:700; color:#3a2b00;
  background: linear-gradient(120deg, var(--gold), var(--gold-2));
  box-shadow: 0 10px 30px #ffb30055, inset 0 -6px 12px #a46a0066;
  transition: transform .06s ease, filter .15s ease;
}
.composer__btn:hover{ filter:brightness(1.05); }
.composer__btn:active{ transform: translateY(1px); }

.hint{ margin:0; color:#ffeab877; font-size:12px; }

/* ===== Popover under the button ===== */
.popover{
  position:absolute; top: calc(100% + 10px); right: 10px;
  width: min(550px, 90vw);
  background: rgba(0, 0, 0, 1);
  border:1px solid var(--stroke);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 14px;
  z-index: 10;
  border-color: #ffd54f;
}
.popover[hidden]{ display:none; }
.popover h3{ margin:6px 4px 12px; font-size:16px; font-weight:700; }

.pop-grid{
  display:grid; gap:12px;
  grid-template-columns: 1.2fr 1fr 1fr;
}
@media (max-width: 560px){
  .pop-grid{ grid-template-columns: 1fr; }
}

.field{ display:flex; flex-direction:column; gap:6px; font-size:14px; }
.field span{ color:#ffe7ab; }
.field input, .field select{
  background: rgba(255,255,255,.06);
  border:1px solid transparent; color:var(--text);
  padding:10px 12px; border-radius:12px; outline:none;
}
.field input:focus, .field select:focus{ box-shadow: 0 0 0 3px #ffc40033; }

.actions{
  display:flex; justify-content:flex-end; gap:8px; margin-top: 10px;
}
.btn{
  height:40px; padding:0 14px; border-radius:12px; border:1px solid transparent; cursor:pointer;
  font-weight:700;
}
.btn.primary{
  color:#3a2b00; background: linear-gradient(120deg, var(--gold), var(--gold-2));
  box-shadow: 0 8px 20px #ffb30044, inset 0 -5px 10px #a46a0066;
}
.btn.ghost{
  color:#ffe1a6; background: transparent; border:1px solid #ffe1a62e;
}
.btn:hover{ filter:brightness(1.05); }

/* Little caret pointing to the button */
.caret{
  position:absolute; top:-8px; right:24px;
  width:16px; height:16px; transform: rotate(45deg);
  background: var(--card); border-left:1px solid var(--stroke); border-top:1px solid var(--stroke);
}

/* ===== Cards / List / Items ===== */
.card{
  width:min(760px, 100%); margin:24px auto 0; background: var(--card);
  backdrop-filter: blur(8px); border:1px solid var(--stroke);
  border-radius: var(--radius-md); box-shadow: var(--shadow);
}
.empty{ text-align:center; padding:28px 22px; }
.empty h3{ margin:0 0 8px; } .empty p{ margin:0; color:var(--muted); }

.list{ padding:8px; }
.tasks{ list-style:none; margin:0; padding:4px; display:flex; flex-direction:column; gap:10px; }
.task{
  display:grid; grid-template-columns:36px 1fr 36px; gap:8px; align-items:center;
  padding:12px 10px; border-radius:12px; background: rgba(255,255,255,.04); border:1px solid var(--stroke);
}
.task__content{ display:flex; flex-direction:column; gap:6px; }
.task__title{ font-weight:600; }
.task__meta{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; color:#ffe0a6cc; font-size:13px; }
.dot{ opacity:.5; }

.task__check{
  width:28px; height:28px; border-radius:8px; border:2px solid #c7a24a; background:transparent; cursor:pointer;
}
.task__check[aria-pressed="true"]{
  background: radial-gradient(circle at 50% 50%, #ffe082 0%, #ffca28 100%);
  border-color:#ffca28; box-shadow: 0 0 0 3px #ffca2833 inset;
}
.task__delete{
  width:28px; height:28px; border-radius:8px; border:1px solid transparent; background:transparent;
  cursor:pointer; color:#ffe5a6cc; font-size:16px;
}
.task__delete:hover{ background: rgba(255,255,255,.06); color:#ffd15a; }

.badge{
  padding:4px 8px; border-radius:999px; border:1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06);
}
.badge--urgency[data-u="Low"]{ background:#16381366; border-color:#58d16b66; color:#bff7c9; }
.badge--urgency[data-u="Medium"]{ background:#3a300b66; border-color:#ffd54f66; color:#ffecb3; }
.badge--urgency[data-u="High"]{ background:#3a1d0b66; border-color:#ff8a0066; color:#ffc9a3; }

.task--done .task__title{ text-decoration:line-through; opacity:.65; }


/* ===== Todo Magic — Task Card (Yellow/Amber) ===== */
:root{
  --tm-text:#fff8e7;
  --tm-muted:#e9d79c;
  --tm-card:rgba(255,255,255,.06);
  --tm-stroke:rgba(255,255,255,.10);
  --tm-shadow:0 18px 60px rgba(0,0,0,.45);
  --tm-gold:#ffd54f;
  --tm-gold-2:#ffb300;
  --tm-urg-low:#a7f37a;
  --tm-urg-med:#ffecb3;
  --tm-urg-high:#ffb17a;
}

/* Card shell */
.tm-task{
  display:grid;
  grid-template-columns: 40px 1fr auto;
  gap:12px;
  align-items:center;
  color:var(--tm-text);
  background: var(--tm-card);
  border:1px solid var(--tm-stroke);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--tm-shadow);
  backdrop-filter: blur(8px);
}

/* Checkbox (pure CSS) */
.tm-check{ display:grid; place-items:center; }
.tm-check input{
  appearance:none; -webkit-appearance:none; width:0; height:0; position:absolute; pointer-events:none;
}
.tm-check__box{
  width:26px; height:26px; border-radius:9px;
  border:2px solid #c7a24a; background: transparent;
  box-shadow: inset 0 0 0 0 transparent;
  transition: .18s ease;
  display:block;
}
.tm-check input:checked + .tm-check__box{
  border-color:#ffca28;
  background: radial-gradient(circle at 50% 50%, #ffe082 0%, #ffca28 100%);
  box-shadow: inset 0 0 0 3px #ffca2833;
}

/* Main content */
.tm-task__main{ display:flex; flex-direction:column; gap:6px; }
.tm-task__title{ margin:0; font-size:16px; font-weight:700; }
.tm-task__desc{ margin:0; color:var(--tm-muted); font-size:13px; }
.tm-task__meta{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; font-size:13px; color:#ffe0a6cc; }
.tm-dot{ opacity:.55; }

/* Actions (visual only here) */
.tm-icon-btn{
  background: transparent; color:#ffe5a6cc;
  border:1px solid transparent;
  border-radius: 10px; cursor:pointer;
  width:32px; height:32px; font-size:16px;
}
.tm-icon-btn:hover{ background: rgba(255,255,255,.06); color:#ffd15a; }

/* Badges */
.tm-badge{
  padding:4px 10px; border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}
.tm-badge--assignee{ color:#ffe7ab; }
.tm-badge--due{ color:#ffe7ab; }

/* Urgency color accents via data-urgency on the card */
.tm-task[data-urgency="Low"] .tm-badge--urgency{
  background:#16381366; border-color:#58d16b66; color:var(--tm-urg-low);
}
.tm-task[data-urgency="Medium"] .tm-badge--urgency{
  background:#3a300b66; border-color:#ffd54f66; color:var(--tm-urg-med);
}
.tm-task[data-urgency="High"] .tm-badge--urgency{
  background:#3a1d0b66; border-color:#ff8a0066; color:var(--tm-urg-high);
}

/* Deadline states */
.tm-badge--due.is-overdue{ background:#3a0f0f66; border-color:#ff9b9b80; color:#ffc3c3; }
.tm-badge--due.is-today{ background:#3a300b66; border-color:#ffd54f80; color:#ffefc1; }
.tm-badge--due.is-future{ background:#1f372a66; border-color:#7de0a180; color:#c5f2da; }

/* Completed state using :has() — no JS needed */
.tm-task:has(.tm-check input:checked){
  opacity:.9;
  background: rgba(255,255,255,.04);
}
.tm-task:has(.tm-check input:checked) .tm-task__title{
  text-decoration: line-through;
  opacity:.65;
}

.task-list {
  padding-bottom: 50px;
}


.description-text {

  padding: 10px;

  color: white;
  background-color: rgba(255, 255, 255, 0.07);
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  border-style: none;

  border:1px solid transparent; color:var(--text);
}


/* ===== Secret Key Toggle (bottom-right) ===== */
.secret-key-box {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(4px);
  z-index: 1000;
}

.secret-key-box span {
  font-family: monospace;
  color: var(--text);
  letter-spacing: 1px;
}

.secret-key-btn {
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 4px;
  padding: 4px 8px;
  color: var(--gold);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background .2s;
}

.secret-key-btn:hover {
  background: var(--gold-2);
  color: #3a2b00;
}


.badge-medium {
  border-style: solid;
  border-color: white;
}


/* === Announcements Panel (simple, fixed right) === */
.announcements-panel{
  position: fixed;
  top: 120px;           /* clears your header */
  right: 16px;          /* hugs the right edge */
  width: 320px;         /* vertical rectangle */
  height: 60vh;         /* tall, but not full screen */
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: rgba(0,0,0,0.8);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  z-index: 1001;        /* above main content */
}

.announcements-title{
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.announcements-text{
  flex: 1;              /* fills available height */
  width: 100%;
  resize: none;         /* keep it clean */
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.07);
  color: var(--text);
  outline: none;
}
.announcements-text:focus{
  box-shadow: 0 0 0 3px #ffc40033;
}

.announcements-save{
  height: 40px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  color:#3a2b00;
  background: linear-gradient(120deg, var(--gold), var(--gold-2));
  box-shadow: 0 8px 20px #ffb30044, inset 0 -5px 10px #a46a0066;
}
.announcements-save:hover{ filter: brightness(1.05); }

/* Optional: on small screens, shrink or hide */
@media (max-width: 720px){
  .announcements-panel{
    width: 88vw;
    right: 6vw;
    top: 100px;
    height: 50vh;
  }
}


/* ===== Announcements Panel (responsive) ===== */
@media (max-width: 1400px) {
  .announcements-panel {
    position: static;      /* no longer fixed to the side */
    width: 100%;           /* span the full content width */
    height: auto;          /* let it size to its content */
    margin: 0 0 16px;      /* give it some breathing room below */
    z-index: auto;         /* no need to float it above everything */
    border-radius: var(--radius-md);
  }
}
