/* ===== General Tracker Styling ===== */
.workday-tracker {
  margin: 0 auto;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.workday-tracker p {
  margin-top: 0;
  color: #333;
  line-height: 1.6;
}

.workday-periods {
  background: #f7f9fc;
  border-radius: 10px;
  border: 1px solid #e3e8f0;
  padding: 1rem;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.period-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
}

.period-row:first-child {
  grid-template-columns: 1fr 1fr;
}

.time-input {
  margin-top: 0.35rem;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background-color: #fff;
}

.time-input:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}

.add-period,
#start-working,
.new-day-btn {
  background-color: #0ea5e9;
  color: #fff;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.add-period:hover,
#start-working:hover,
.new-day-btn:hover {
  background-color: #0284c7;
  transform: translateY(-1px);
}

.remove-period {
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

.workday-summary {
  margin-top: 1.5rem;
  background: #eff6ff;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  border: 1px solid #bfdbfe;
}

.remaining-time {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1d4ed8;
}

.current-time {
  font-weight: 600;
  color: #1f2937;
}

/* ===== Task Section ===== */
.task-section {
  margin: 2rem auto 3rem;
  background: #f9fafb;
  padding: 1.25rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

#task-input {
  width: 100%;
  font-size: 1rem;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  margin-top: 0.75rem;
  font-family: inherit;
  resize: vertical;
}

.hidden {
  display: none !important;
  visibility: hidden;
  opacity: 0;
}

#task-board {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.task-column {
  flex: 1;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.column-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.column-header h3 {
  margin: 0;
  color: #1f2937;
}

.lane-add {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: #0ea5e9;
  color: #fff;
  font-size: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
}

.task-list {
  flex-grow: 1;
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  min-height: 290px;
}

.task-item {
  background: #eff6ff;
  margin-bottom: 0.5rem;
  padding: 0.6rem;
  border-radius: 6px;
  cursor: grab;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.task-item.dragging {
  opacity: 0.5;
}

.task-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 1rem 1.25rem;
  z-index: 1000;
  width: min(92vw, 420px);
}

.task-popup h4 {
  margin-top: 0;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #e5e7eb;
  transition: transform 0.15s ease;
}

.color-swatch:hover {
  transform: scale(1.1);
}

.icon-picker span {
  cursor: pointer;
  font-size: 1.25rem;
  margin-right: 0.4rem;
  transition: transform 0.1s ease;
}

.icon-picker span:hover {
  transform: scale(1.2);
}

.popup-actions {
  margin-top: 0.8rem;
  text-align: right;
}

.popup-actions button {
  border: none;
  border-radius: 6px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  margin-left: 0.5rem;
}

.popup-actions .apply {
  background: #16a34a;
  color: #fff;
}

.popup-actions .close {
  background: #e5e7eb;
  color: #374151;
}

/* color palette */
.color-default { background: #eff6ff; }
.color-red     { background: #fecaca; }
.color-green   { background: #bbf7d0; }
.color-orange  { background: #fed7aa; }
.color-yellow  { background: #fef08a; }
.color-purple  { background: #e9d5ff; }
.color-pink    { background: #fbcfe8; }

.color-red:hover { background: #fca5a5; }
.color-green:hover { background: #86efac; }
.color-orange:hover { background: #fdba74; }
.color-yellow:hover { background: #fde047; }
.color-purple:hover { background: #c084fc; }
.color-pink:hover { background: #f472b6; }

.new-day-btn {
  margin-top: 1rem;
}