:root{
  --bg:#0b0f14;
  --card:#0f172a;
  --card2:#111c33;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --border:rgba(255,255,255,.08);
  --accent:#22c55e;
  --danger:#ef4444;
  --shadow:0 10px 30px rgba(0,0,0,.35);
  font-family: 'Kalpurush', serif;
}
@import url('https://fonts.maateen.me/kalpurush/font.css');

*{ box-sizing:border-box; }
body{ margin:0; background:var(--bg); color:var(--text); }




/* =========================
   MODAL (POPUP) - PROPER CSS
   ========================= */

/* Always works: hide utility */
.hidden { display: none !important; }

/* Lock background scroll when modal open */
body.modalOpen { overflow: hidden; }

/* Overlay */
.modal{
  position: fixed;
  inset: 0;
  z-index: 9999;              /* must be above topbar & bottom nav */
  background: rgba(0,0,0,.60);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

/* Modal Box */
.modalBox{
  width: min(820px, 100%);
  max-height: calc(100vh - 28px);   /* fits screen */
  overflow: auto;                   /* if content is long */
  -webkit-overflow-scrolling: touch;

  background: rgba(15,23,42,.96);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 12px;

  box-shadow: 0 18px 45px rgba(0,0,0,.55);
}

/* Top row inside modal */
.modalTop{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.modalTitle{
  font-weight: 900;
  font-size: 16px;
}

/* Close button (optional style) */
.modalCloseBtn{
  padding: 10px 12px;
  border-radius: 14px;
}

/* Mobile: bottom sheet style (nice look) */
@media (max-width: 520px){
  .modal{
    align-items: flex-end;          /* bottom sheet */
    padding: 10px;
  }
  .modalBox{
    width: 100%;
    border-radius: 18px 18px 0 0;
    max-height: 85vh;
  }
}

/* =========================
   MODAL (POPUP) - Completed
   ========================= */



.topbar{
  position:sticky; top:0; z-index:50;
  background:rgba(15,23,42,.9);
  backdrop-filter: blur(10px);
  padding:12px 14px;
  border-bottom:1px solid var(--border);
}
.title{ font-weight:800; font-size:18px; letter-spacing:.2px; }
.date{ font-size:12px; color:var(--muted); margin-top:2px; }

.container{ padding:14px 14px 84px; max-width:820px; margin:0 auto; }

.input{
  width:100%;
  padding:12px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(255,255,255,.03);
  color:var(--text);
  outline:none;
}
.input::placeholder{ color:rgba(229,231,235,.5); }

.card{
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px;
  margin:12px 0;
  box-shadow:var(--shadow);
}
.cardTitle{ font-weight:800; margin-bottom:8px; }

.list{ display:flex; flex-direction:column; gap:10px; }

.taskRow{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(255,255,255,.02);
}
.taskRow .tTitle{ flex:1; }
.taskRow.done .tTitle{ text-decoration:line-through; opacity:.6; }

.checkbox, .selectBox{
  width:18px; height:18px;
  accent-color: var(--accent);
}

.row{ display:flex; gap:10px; align-items:center; }
.btn{
  padding:10px 12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--text);
  border-radius:14px;
  cursor:pointer;
}
.btn:hover{ background:rgba(255,255,255,.06); }
.btn:disabled{ opacity:.5; cursor:not-allowed; }

.btn.danger{
  border-color:rgba(239,68,68,.4);
  color:#fecaca;
}
.big{ font-size:34px; font-weight:900; text-align:center; padding:6px 0; }

.actionBar{
  display:flex; gap:10px;
  position:sticky;
  bottom:70px;
  padding-top:6px;
}

.hint{ font-size:12px; color:var(--muted); margin-top:10px; line-height:1.4; }

/* Bottom Nav */
.bottomNav{
  position:fixed; bottom:0; left:0; right:0;
  background:rgba(15,23,42,.92);
  border-top:1px solid var(--border);
  backdrop-filter: blur(10px);
  display:flex; justify-content:space-around;
  padding:10px 8px;
  z-index: 60;
}
.navItem{
  text-decoration:none;
  color:var(--muted);
  padding:10px 12px;
  border-radius:14px;
}
.navItem.active{
  background:rgba(34,197,94,.14);
  color:var(--text);
  border:1px solid rgba(34,197,94,.22);
}

/* Calendar */
.calHeader{ display:flex; gap:10px; margin:10px 0 12px; }

.calendarGrid{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap:10px;
}

.weekHdr{
  padding:10px 8px;
  text-align:center;
  font-weight:800;
  color:var(--muted);
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(255,255,255,.02);
}

.dayCell{
  background:rgba(255,255,255,.02);
  border:1px solid var(--border);
  border-radius:16px;
  padding:10px;
  min-height:66px;
  cursor:pointer;
  position:relative;
  transition:transform .08s ease;
}
.dayCell:active{ transform:scale(.985); }
.dayCell .d{ font-weight:900; font-size:14px; }
.dayCell .dot{
  width:7px; height:7px; border-radius:50%;
  background:var(--accent);
  display:inline-block;
  margin-top:8px;
}

/* Today highlight */
.dayCell.today{
  border-color:rgba(34,197,94,.35);
  box-shadow:0 0 0 2px rgba(34,197,94,.12) inset;
}
.dayCell.today::after{
  content:"আজ";
  position:absolute; top:8px; right:10px;
  font-size:11px; font-weight:800;
  color:rgba(34,197,94,.95);

/* FORCE hide class (modal default visible সমস্যা ফিক্স) */
.hidden { display: none !important; }

/* Friday (শুক্রবার) = red */
.weekHdr.fri { color: #ef4444 !important; }
.dayCell.fri .d { color: #ef4444 !important; }

