/* Day tab bar */
.day-tabs {
  display: flex;
  overflow-x: scroll;
  gap: 7px;
  padding: 0 0 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  width: 100%;
}
.day-tabs::-webkit-scrollbar {
  display: none;
}

.dtab {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 20px;
  border: 2px solid var(--g3);
  background: var(--w);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  font-family: "Nunito", sans-serif;
  color: var(--t2);
  transition: all 0.15s;
  white-space: nowrap;
  touch-action: manipulation;
}
.dtab:active {
  transform: scale(0.94);
}
.dtab.active {
  background: var(--day-color, #a78bfa);
  border-color: var(--day-color, #a78bfa);
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Day header banner */
.day-header {
  border-radius: var(--r);
  padding: 14px 16px;
  margin-bottom: 12px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.day-header h2 {
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 2px;
}
.day-header p {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.85;
}
.day-header .dh-emoji {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  opacity: 0.25;
}

/* Activity rows */
.act-row {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--g2);
  align-items: flex-start;
  position: relative;
}
.act-row:last-child {
  border-bottom: none;
}
.act-row.done .act-title {
  text-decoration: line-through;
  color: var(--t3);
}
.act-row.done .act-icon {
  opacity: 0.45;
}

.act-time {
  font-size: 10px;
  font-weight: 800;
  color: var(--t3);
  min-width: 80px;
  padding-top: 2px;
  flex-shrink: 0;
}
.act-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}
.act-body {
  flex: 1;
  min-width: 0;
  padding-right: 30px;
}
.act-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--t);
  margin-bottom: 2px;
  line-height: 1.3;
}
.act-note {
  font-size: 11px;
  color: var(--t2);
  font-weight: 600;
  line-height: 1.4;
}

/* Tick circle */
.act-tick {
  position: absolute;
  right: 0;
  top: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--g3);
  background: var(--w);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: all 0.15s;
  touch-action: manipulation;
}
.act-tick.ticked {
  background: var(--g3);
  border-color: var(--g4);
  color: var(--t3);
}
.act-tick:active {
  transform: scale(0.85);
}

/* Card wrapper (dùng class .card đã có sẵn trong app gốc) */
.itin-card {
  background: var(--w);
  border-radius: var(--r2);
  border: 1px solid var(--g3);
  padding: 14px 16px;
  box-shadow: var(--sh);
}

/* ════════════════════════════════════════════ */

/* Demo layout (chỉ dùng trong file standalone này) */
.demo-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 14px 13px;
}
.demo-tabs-wrap {
  padding: 14px 13px 0;
  max-width: 600px;
  margin: 0 auto;
}
@keyframes fi {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.day-panel {
  display: none;
}
.day-panel.active {
  display: block;
  animation: fi 0.18s ease;
}
