/* Add to app/assets/stylesheets/application.css */

/* Dashboard specific styles */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Calendar improvements */
.calendar-day-cell {
  transition: all 0.2s ease;
}

.calendar-day-cell:hover:not(.cursor-not-allowed) {
  transform: scale(1.05);
  z-index: 10;
  position: relative;
}

/* Chart container */
.chart-container {
  position: relative;
  height: 320px;
  width: 100%;
}

/* Stats cards */
.stat-card {
  background: var(--color-base-200);
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin: 0.5rem 0;
}

.stat-title {
  font-size: 0.875rem;
  opacity: 0.6;
  font-weight: 500;
}

/* Calendar squares */
.calendar-square-completed {
  background-color: rgb(34, 197, 94);
  color: white;
  border-color: rgb(34, 197, 94);
}

.calendar-square-incomplete {
  background-color: rgb(245, 158, 11);
  color: white;
  border-color: rgb(245, 158, 11);
}

.calendar-square-missed {
  background-color: rgb(239, 68, 68);
  color: white;
  border-color: rgb(239, 68, 68);
}

.calendar-square-future {
  background-color: transparent;
  border-color: rgb(209, 213, 219);
  color: rgb(156, 163, 175);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .dashboard-stats {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .chart-container {
    height: 250px;
  }
}

/* Loading states */
.chart-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 320px;
  color: rgb(156, 163, 175);
}

/* Chart legend custom styling */
.chart-legend {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.875rem;
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Animation for chart appearance */
@keyframes chartFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chart-container canvas {
  animation: chartFadeIn 0.6s ease-out;
}