/* 
 * Stili personalizzati per il Sistema di Gestione Condominiale
 */

/* Variabili colori */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --light-color: #f8f9fa;
  --dark-color: #212529;
}

/* Stili generali */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

footer {
  margin-top: auto;
}

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

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

.card-header {
  font-weight: 500;
}

/* Stili per le tabelle */
.table-responsive {
  overflow-x: auto;
}

.datatable th {
  white-space: nowrap;
}

/* Stili per i form */
.form-label {
  font-weight: 500;
}

.required:after {
  content: " *";
  color: var(--danger-color);
}

/* Stili per la dashboard */
.dashboard-card {
  height: 100%;
}

.dashboard-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.dashboard-value {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Stili per le votazioni */
.vote-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1rem 0;
}

.vote-button {
  font-size: 1.5rem;
  padding: 0.5rem 1.5rem;
}

/* Stili per i grafici */
.chart-container {
  position: relative;
  height: 300px;
  margin-bottom: 2rem;
}

/* Stili per la paginazione */
.pagination {
  justify-content: center;
  margin-top: 1rem;
}

/* Stili per i messaggi di alert */
.alert {
  margin-bottom: 1.5rem;
}

/* Stili per i badge */
.badge-pill {
  border-radius: 50rem;
}

/* Stili per le stampe */
@media print {
  .no-print {
    display: none !important;
  }
  
  .print-only {
    display: block !important;
  }
  
  body {
    font-size: 12pt;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
  }
}

/* Stili responsive */
@media (max-width: 768px) {
  .dashboard-card {
    margin-bottom: 1rem;
  }
  
  .vote-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Stili per i tipi di consuntivo */
.consuntivo-riscaldamento {
    background-color: #ffebee !important;
}

.consuntivo-generico {
    background-color: #e8f5e9 !important;
}

.riscaldamento {
    background-color: #ffebee !important;
    color: #d32f2f !important;
}

.generico {
    background-color: #e8f5e9 !important;
    color: #2e7d32 !important;
}
