/* styles.css - Dream Life Tracker */

:root{
  --bg: #eaf7ef; /* pastel green */
  --card: #ffffffcc;
  --accent: #6b6bd6;
  --muted: #6b6b6b;
  --ok: #6bbf8a;
  --radius: 14px;
  font-family: Calibri, "Helvetica Neue", Arial, sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background: linear-gradient(180deg, var(--bg), #f6fff6);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
  -webkit-font-smoothing:antialiased;
}

.app-shell{
  width:420px;
  max-width:96vw;
  background:var(--card);
  border-radius:18px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  padding:18px;
  min-height:640px;
  display:flex;
  flex-direction:column;
}

/* Header */
header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}
#app-title{
  margin:0;
  font-size:30px;
  color:var(--accent);
  letter-spacing:1px;
  font-weight:700;
  text-shadow: 0 2px 0 rgba(107,107,214,0.08);
}
#reset-btn{
  background:transparent;
  border:2px solid var(--accent);
  padding:6px 10px;
  border-radius:10px;
  color:var(--accent);
  font-weight:600;
}

/* Task list */
.task-list{
  overflow:auto;
  padding:6px 4px;
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:12px;
  flex:1;
}
.task{
  background: #fff;
  border-radius:12px;
  padding:12px;
  display:flex;
  align-items:center;
  gap:12px;
  box-shadow:0 4px 14px rgba(0,0,0,0.03);
}
.checkbox{
  width:36px;
  height:36px;
  border-radius:50%;
  border:2px solid #cfeedd;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  cursor:pointer;
}
.checkbox.checked{
  background:var(--ok);
  color:white;
  border-color:transparent;
}
.task-body{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.task-text{
  font-size:16px;
  color:#222;
  display:flex;
  gap:8px;
  align-items:center;
}
.emoji{font-size:18px}
.controls{
  display:flex;
  gap:8px;
  align-items:center;
}
.control-btn{
  background:transparent;
  border:0;
  cursor:pointer;
  font-size:16px;
  color:var(--muted);
}

/* add section */
.add-section{
  display:flex;
  gap:8px;
  margin-top:6px;
}
#new-task-input{
  flex:1;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #e6efe6;
  font-size:15px;
}
#add-task-btn{
  padding:10px 12px;
  border-radius:10px;
  border:0;
  background:var(--accent);
  color:white;
  font-weight:700;
}

/* footer */
.footer{ text-align:center; margin-top:10px; color:var(--muted)}

/* modal */
.modal{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
}
.modal.hidden{display:none}
.modal-content{
  position:relative;
  background: linear-gradient(180deg,#ffffff,#f8fff8);
  padding:20px 26px;
  border-radius:14px;
  box-shadow:0 8px 30px rgba(0,0,0,0.12);
  text-align:center;
  z-index:10;
  max-width:92%;
}
#confetti{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:5;
}

/* small screens */
@media (max-width:420px){
  .app-shell{ padding:14px; min-height:640px; }
  #app-title{ font-size:26px; }
}
