/* Custom styles for enhanced UX */

.digital-clock {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  box-shadow: 
    0 0 20px rgba(34, 197, 94, 0.3),
    inset 0 0 20px rgba(34, 197, 94, 0.1);
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.task-item {
  transition: all 0.2s ease-in-out;
}

.task-item:hover {
  transform: translateY(-1px);
}

.task-item:hover .opacity-0 {
  opacity: 1;
}

.drag-handle {
  font-size: 12px;
  line-height: 1;
  writing-mode: vertical-lr;
  text-orientation: mixed;
}

.task-item[draggable="true"]:hover {
  cursor: move;
}

/* Calendar animations */
.calendar-day {
  transition: all 0.2s ease-in-out;
}

.calendar-day:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Smooth expand/collapse animations */
.subtasks-container {
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}

/* Completion animation */
@keyframes completeTask {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.task-completed {
  animation: completeTask 0.3s ease-in-out;
}

/* Focus styles */
input:focus, button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Drag feedback */
.drag-over {
  background-color: rgba(34, 197, 94, 0.1);
  border: 2px dashed rgba(34, 197, 94, 0.3);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .digital-clock {
    font-size: 1.2rem;
    padding: 0.5rem 0.75rem;
  }
  
  .task-item {
    margin-left: 12px !important;
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Tree connection lines */
.task-item .border-l-2 {
  position: relative;
}

.task-item .border-l-2::before {
  content: '';
  position: absolute;
  left: -2px;
  top: -8px;
  width: 16px;
  height: 16px;
  border-left: 2px solid #e5e7eb;
  border-bottom: 2px solid #e5e7eb;
  border-bottom-left-radius: 4px;
}

/* Seasonal theming hint */
body.winter .bg-gradient-to-br {
  background: linear-gradient(135deg, #e0f2fe 0%, #f8fafc 100%);
}

body.spring .bg-gradient-to-br {
  background: linear-gradient(135deg, #dcfce7 0%, #fefce8 100%);
}

body.summer .bg-gradient-to-br {
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
}

body.autumn .bg-gradient-to-br {
  background: linear-gradient(135deg, #fed7aa 0%, #fecaca 100%);
}