/* Custom styles for WeekFlow */

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

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

/* Focus mode styles */
.focus-mode .task-card:not(.current-focus) {
  opacity: 0.3;
}

/* Smooth scrolling for calendar */
.calendar-grid {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

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

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

/* Animation for metrics */
@keyframes progressFill {
  from { width: 0%; }
  to { width: var(--progress-width); }
}

.progress-bar {
  animation: progressFill 1s ease-out;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .sidebar {
    width: 256px;
  }
}

@media (max-width: 768px) {
  .calendar-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    order: -1;
  }
  
  .calendar-grid {
    grid-template-columns: 1fr;
  }
  
  .day-column {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1rem;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .dark-mode {
    background-color: #1f2937;
    color: #f9fafb;
  }
  
  .dark-mode .bg-white {
    background-color: #374151;
  }
  
  .dark-mode .text-gray-800 {
    color: #f9fafb;
  }
  
  .dark-mode .border {
    border-color: #4b5563;
  }
}

/* Accessibility improvements */
.task-card:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

button:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .sidebar,
  footer,
  .task-actions {
    display: none !important;
  }
  
  .calendar-container {
    width: 100% !important;
  }
}