/* 
 * SIOTH Monitoring Theme
 * Styles spécifiques pour la page de monitoring
 * Différenciation visuelle adaptée à la nature du monitoring
 */

/* Couleurs spécifiques au monitoring */
.monitoring-blue { color: #0284c7 !important; }
.bg-monitoring-blue { background-color: #0284c7 !important; }
.border-monitoring-blue { border-color: #0284c7 !important; }

.monitoring-blue-dark { color: #0369a1 !important; }
.bg-monitoring-blue-dark { background-color: #0369a1 !important; }
.border-monitoring-blue-dark { border-color: #0369a1 !important; }

.monitoring-blue-light { color: #38bdf8 !important; }
.bg-monitoring-blue-light { background-color: #38bdf8 !important; }
.border-monitoring-blue-light { border-color: #38bdf8 !important; }

.monitoring-alert-red { color: #ef4444 !important; }
.bg-monitoring-alert-red { background-color: #ef4444 !important; }
.border-monitoring-alert-red { border-color: #ef4444 !important; }

.monitoring-alert-yellow { color: #eab308 !important; }
.bg-monitoring-alert-yellow { background-color: #eab308 !important; }
.border-monitoring-alert-yellow { border-color: #eab308 !important; }

.monitoring-alert-green { color: #22c55e !important; }
.bg-monitoring-alert-green { background-color: #22c55e !important; }
.border-monitoring-alert-green { border-color: #22c55e !important; }

/* Styles pour les cartes de dashboard */
.dashboard-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.dashboard-card .card-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-bottom-left-radius: 0.375rem;
}

/* Styles pour les visualisations de données */
.data-visualization {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    background-color: #f8fafc;
}

.data-visualization .visualization-header {
    padding: 1rem;
    background-color: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.data-visualization .visualization-body {
    padding: 1.5rem;
    min-height: 200px;
}

/* Styles pour les indicateurs d'alerte */
.alert-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.875rem;
}

.alert-indicator-critical {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.alert-indicator-warning {
    background-color: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

.alert-indicator-info {
    background-color: rgba(2, 132, 199, 0.1);
    color: #0284c7;
}

.alert-indicator-success {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

/* Styles pour la timeline du workflow de monitoring */
.monitoring-timeline {
    position: relative;
}

.monitoring-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: #e2e8f0;
    transform: translateX(-50%);
}

.monitoring-timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.monitoring-timeline-item:last-child {
    margin-bottom: 0;
}

.monitoring-timeline-marker {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: #0284c7;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.monitoring-timeline-content {
    width: calc(50% - 3rem);
    padding: 1.5rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.monitoring-timeline-item:nth-child(odd) .monitoring-timeline-content {
    margin-right: auto;
}

.monitoring-timeline-item:nth-child(even) .monitoring-timeline-content {
    margin-left: auto;
}

/* Styles pour les métriques et statistiques */
.metric-card {
    padding: 1.5rem;
    border-radius: 0.5rem;
    background-color: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    text-align: center;
}

.metric-card .metric-value {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-card .metric-label {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Styles pour les graphiques et visualisations */
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 1.5rem;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.chart-legend-color {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    margin-right: 0.5rem;
}

/* Styles pour les tableaux de données */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background-color: #f1f5f9;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.data-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Styles pour les badges OPC UA */
.opcua-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.75rem;
    background-color: rgba(2, 132, 199, 0.1);
    color: #0284c7;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.opcua-badge i {
    margin-right: 0.25rem;
}
