/* Reports Visual Enhancements */
/* Uses bootstrap-theme-traquility.css for core theme elements */

/* Report card hover effect for index page */
/* Now using .card-hover from theme */

/* Hero card gradient */
/* Now using .bg-gradient-primary from theme */
.report-hero-card.bg-gradient-primary {
  background: var(--traq-gradient-primary);
}

/* Chart container */
.chart-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-container canvas {
  max-width: 100%;
  height: auto !important;
}
/* Progress ring animation */
/* Now using .progress-ring__circle from theme */

/* Chart container */
/* Now using .chart-container from theme */

/* Insight cards with hover effect */
/* Now using .card-insight from theme */

/* Trend indicators */
/* Now using .trend-up and .trend-down from theme */

/* Heatmap cells */
.heatmap-cell {
  border-radius: 4px;
  transition: all 0.2s;
}

.heatmap-cell:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Mood legend badges */
.controller-reports .mood-legend .badge {
  min-width: 80px;
  padding: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .report-hero-card {
    text-align: center;
  }

  .report-hero-card .display-6 {
    font-size: 1.5rem;
  }

  .chart-container {
    height: 200px !important;
  }

  /* Activity Details table mobile optimization */
  .controller-reports .table-responsive table.table-sm {
    font-size: 0.8rem;
  }

  .controller-reports .table-responsive table.table-sm th,
  .controller-reports .table-responsive table.table-sm td {
    padding: 0.4rem 0.25rem;
  }

  .controller-reports .table-responsive table.table-sm th:first-child,
  .controller-reports .table-responsive table.table-sm td:first-child {
    padding-left: 0.5rem;
  }

  .controller-reports .table-responsive table.table-sm .badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.3rem;
  }

  .controller-reports .table-responsive table.table-sm .badge i {
    font-size: 0.6rem;
  }
}

/* Extra small devices (360px and below) */
@media (max-width: 400px) {
  .controller-reports .table-responsive table.table-sm {
    font-size: 0.75rem;
  }

  .controller-reports .table-responsive table.table-sm th,
  .controller-reports .table-responsive table.table-sm td {
    padding: 0.3rem 0.2rem;
    white-space: nowrap;
  }

  .controller-reports .table-responsive table.table-sm th:first-child,
  .controller-reports .table-responsive table.table-sm td:first-child {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .controller-reports .table-responsive table.table-sm .badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.25rem;
  }

  /* Compact card headers on mobile */
  .controller-reports .card-header h5 {
    font-size: 0.95rem;
  }

  .controller-reports .card-header h5 i {
    font-size: 0.9rem;
  }

  /* Adjust button text on mobile */
  .controller-reports .btn-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
}

/* Print styles */
@media print {
  .controller-reports .report-hero-card {
    background: white !important;
    color: black !important;
    border: 1px solid #dee2e6;
  }

  .controller-reports .no-print {
    display: none !important;
  }

  .controller-reports .card {
    page-break-inside: avoid;
  }
}

/* Accessibility - respect reduced motion preference */
/* Now handled in bootstrap-theme-traquility.css */
