/* Structure de base */
.status-container {
    max-width: 1200px;
    margin: 2rem auto;
  padding: 8rem 0 5rem;
}

.status-header {
    text-align: center;
    margin-bottom: 3rem;
}

.status-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fec200;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.status-subtitle {
    font-size: 1.1rem;
    color: #a1a1aa;
    max-width: 600px;
    margin: 0 auto;
}

/* Grille des statuts */
.status-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .status-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Cartes de statut */
.status-card {
    background: #1e1e2d;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #fec200;
}

.status-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.main-status {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #1e1e2d 0%, #252538 100%);
    border-left: 4px solid #fec200;
}

.status-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.status-card-header h2, 
.status-card-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #e4e4e7;
}

.status-icon {
    font-size: 1.75rem;
}

.status-card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #a1a1aa;
}

.status-bar-container {
    height: 8px;
    background: #2d2d3a;
    border-radius: 4px;
    overflow: hidden;
}

.status-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.status-meta {
    font-size: 0.8rem;
    color: #71717a;
    text-align: right;
}

.live-time {
    color: #fec200;
    font-weight: 500;
}

/* Catégories */
.status-category {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.category-title {
    font-size: 1.5rem;
    color: #fec200;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Légende */
.status-legend {
    background: #1e1e2d;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 3rem;
    border: 1px solid #2d2d3a;
}

.legend-title {
    font-size: 1.25rem;
    color: #e4e4e7;
    margin-bottom: 1rem;
    text-align: center;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-label {
    font-size: 0.95rem;
    color: #a1a1aa;
}

/* Couleurs des statuts */
.optimal, .bg-status-optimal {
    background: linear-gradient(90deg, #10b981, #059669);
}

.functional, .bg-status-functional {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.unstable, .bg-status-unstable {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.unavailable, .bg-status-unavailable {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.critical, .bg-status-critical {
    background: linear-gradient(90deg, #7c3aed, #6d28d9);
    animation: pulse 2s infinite;
}

/* Animations */
@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* Responsive */
@media (max-width: 768px) {
    .status-title {
        font-size: 2rem;
    }
    
    .status-subtitle {
        font-size: 1rem;
    }
    
    .status-card {
        padding: 1.25rem;
    }
    
    .legend-items {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .status-container {
        padding: 0 1rem;
    }
    
    .status-title {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .status-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .status-icon {
        align-self: flex-end;
    }
    
    .legend-items {
        flex-direction: column;
        align-items: center;
    }
}