.sensor-card {
    transition: all 0.3s ease;
    height: 100%;
}

.sensor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.status-badge {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-online {
    background-color: #28a745;
}

.status-offline {
    background-color: #dc3545;
}

#current-time {
    font-size: 1.2rem;
    font-weight: bold;
    color: #495057;
}

#refresh-countdown {
    font-size: 0.9rem;
    padding: 0.5em 0.75em;
}
/* Aggiungi queste regole al file CSS esistente */
.device-card {
    transition: all 0.3s ease;
    height: 100%;
}

.device-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.device-card .card-body {
    display: flex;
    flex-direction: column;
}

.device-card .card-title {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.device-card .text-muted {
    font-size: 0.85rem;
}
/* Stili per il modal del grafico */
.sensor-chart-modal .modal-dialog {
    max-width: 90%;
}

/* Stili per la stampa */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-full-width {
        width: 100% !important;
    }
    
    .chart-container {
        height: 500px !important;
    }
}

/* Stili per le card delle statistiche */
.stat-card {
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

/* Stili per la stampa */
@media print {
    body * {
        visibility: hidden;
    }
    
    .print-page,
    .print-page * {
        visibility: visible;
    }
    
    .print-page {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        padding: 20px;
        margin: 0;
    }
    
    .print-page-content {
        display: flex;
        flex-wrap: wrap;
        height: calc(100% - 40px);
    }
    
    .print-chart-container {
        width: 50%;
        height: 50%;
        padding: 10px;
    }
    
    .print-header {
        padding-bottom: 10px;
        margin-bottom: 10px;
        border-bottom: 1px solid #ddd;
    }
    
    .no-print, .modal-footer {
        display: none !important;
    }
    
    @page {
        size: A4;
        margin: 1cm;
    }
}

/* Stili per il modal a schermo intero */
.modal-fullscreen .modal-dialog {
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
}

.modal-fullscreen .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
}

/* Miglioramenti per la visualizzazione dei grafici */
.print-chart-container .chart-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}