/* dashboard_stats.css */

/* Stili generali della dashboard */
.dashboard-stats .card {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: all 0.3s ease;
}

.dashboard-stats .card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Tabelle nella dashboard */
.dashboard-stats .table th,
.dashboard-stats .table td {
  padding: 0.5rem;
  vertical-align: middle;
}

/* Progress bar */
.dashboard-stats .progress {
  border-radius: 0.5rem;
  overflow: hidden;
}

.dashboard-stats .progress-bar {
  text-align: center;
  line-height: 25px;
  font-weight: 500;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Colori per i diversi stati */
.dashboard-stats .stato-SC { color: #6c757d; }  /* Scrofette */
.dashboard-stats .stato-AC { color: #17a2b8; }  /* Attesa copertura */
.dashboard-stats .stato-CP { color: #007bff; }  /* Coperte */
.dashboard-stats .stato-DG { color: #6610f2; }  /* Diagnosi gravida */
.dashboard-stats .stato-SP { color: #fd7e14; }  /* Sala parto */
.dashboard-stats .stato-AL { color: #28a745; }  /* Allattamento */
.dashboard-stats .stato-SL { color: #20c997; }  /* Superlattazione */
.dashboard-stats .stato-EL { color: #dc3545; }  /* Eliminate */

/* Barre laterali colorate per tabelle attività programmate */
.dashboard-stats table td.stato-SC { background-color: #6c757d !important; color: #ffffff !important; }  /* Scrofette */
.dashboard-stats table td.stato-AC { background-color: #17a2b8 !important; color: #ffffff !important; }  /* Attesa copertura */
.dashboard-stats table td.stato-CP { background-color: #007bff !important; color: #ffffff !important; }  /* Coperte */
.dashboard-stats table td.stato-DG { background-color: #6610f2 !important; color: #ffffff !important; }  /* Diagnosi gravida */
.dashboard-stats table td.stato-SP { background-color: #fd7e14 !important; color: #ffffff !important; }  /* Sala parto */
.dashboard-stats table td.stato-AL { background-color: #28a745 !important; color: #ffffff !important; }  /* Allattamento */
.dashboard-stats table td.stato-SL { background-color: #20c997 !important; color: #ffffff !important; }  /* Superlattazione */
.dashboard-stats table td.stato-EL { background-color: #dc3545 !important; color: #ffffff !important; }  /* Eliminate */

/* Colore personalizzato per Bootstrap 5 */
.bg-indigo {
  background-color: #6610f2;
  color: #fff;
}

.bg-teal {
  background-color: #20c997;
  color: #fff;
}

/* Sezione Eliminati con meno enfasi */
.eliminati-section {
  opacity: 0.6;
}

.eliminati-section h6 {
  font-size: 0.85rem;
  color: #6c757d;
  font-weight: normal;
}

.eliminati-section .table {
  font-size: 0.85rem;
}

.eliminati-section .table th {
  font-weight: normal;
}

/* Responsive per mobile */
@media (max-width: 768px) {
  .dashboard-stats .progress-bar {
    font-size: 0.7rem;
  }

  .dashboard-stats .card-body {
    padding: 0.75rem;
  }

  .dashboard-stats .fs-4 {
    font-size: 1.2rem !important;
  }
}
