/* General styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 50%, #d1d5db 100%);
  background-attachment: fixed;
}

/* Task list styles */
.task {
  transition: background-color 0.3s ease, transform 0.2s ease;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task:hover {
  background-color: #fed7aa; /* Tailwind orange-200 */
  color: #9a3412; /* orange-800 */
  transform: scale(1.05);
}

.task.completed {
  background-color: #fb923c !important; /* orange-400 */
  color: white;
  text-decoration: line-through;
  transform: scale(1.02);
}

/* History modal styles */
#historyModal {
  backdrop-filter: blur(6px);
}

#historyModal .bg-white {
  box-shadow: 0 0 15px rgba(251, 146, 60, 0.7); /* orange glow */
}

/* Heatmap day squares */
#heatmap div {
  cursor: default;
  transition: transform 0.2s ease;
}

#heatmap div:hover {
  transform: scale(1.2);
  z-index: 10;
}

/* Completed tasks list in history */
#completedTasksList div {
  background-color: #fed7aa; /* orange-200 */
  padding: 6px 10px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

#completedTasksList div:hover {
  background-color: #fb923c; /* orange-400 */
  color: white;
  cursor: default;
}

/* Buttons */
button {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 0.375rem;
}

button:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* Inputs */
input[type="text"],
input[type="time"],
input[type="date"] {
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
  border-radius: 0.375rem;
  transition: box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="time"]:focus,
input[type="date"]:focus {
  box-shadow: 0 0 8px rgba(251, 146, 60, 0.5); /* orange-500 with opacity */
  outline: none;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  #taskForm input,
  #taskForm button {
    width: 100%;
    margin-bottom: 8px;
  }

  /* Mobile menu styles */
  #mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
  }

  /* Adjust task list for mobile */
  .task {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* Footer */
footer {
  background-color: #374151; /* gray-700 */
  color: #f3f4f6; /* gray-100 */
  text-align: center;
  padding: 2rem 0;
}
