* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.logo {
    color: #667eea;
    font-weight: bold;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.last-update {
    color: #666;
    font-size: 0.9rem;
}

.dashboard {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid #ddd;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.service-card.running {
    border-left-color: #28a745;
}

.service-card.stopped {
    border-left-color: #dc3545;
}

.service-card.warning {
    border-left-color: #ffc107;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.service-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.running {
    background: #d4edda;
    color: #155724;
}

.status-badge.stopped {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.warning {
    background: #fff3cd;
    color: #856404;
}

.service-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.service-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    font-size: 0.85rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-label {
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.detail-value {
    color: #333;
    font-weight: 600;
}

.system-info-section, .docker-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.system-info-section h2, .docker-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.system-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.system-info-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.system-info-label {
    color: #666;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.system-info-value {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Styles pour les nouvelles sections de hosts - retour en blocs pour éviter les chevauchements */
.host-info-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #667eea;
}

.host-info-title {
    color: #333;
    margin: 0 0 16px 0;
    font-size: 1.2rem;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.host-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    align-items: start;
}

.host-info-grid .system-info-item {
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #667eea;
    margin: 0;
}

.host-info-grid .system-info-label {
    font-size: 0.75rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.host-info-grid .system-info-value {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
}

/* Ajustement pour les disques */
.host-info-grid .disks-info {
    grid-column: 1 / -1; /* Prend toute la largeur */
}

.host-info-grid .disks-info .system-info-value {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.disks-info .system-info-value {
    line-height: 1.4;
}

.disk-item {
    background: #d4edda;
    padding: 5px 10px;
    margin: 2px 0;
    border-radius: 6px;
    font-size: 0.9rem;
    border-left: 3px solid #28a745;
    color: #155724;
    transition: all 0.3s ease;
    cursor: help;
}

/* Styles d'alerte pour l'espace disque */
.disk-item.disk-warning {
    background: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.disk-item.disk-critical {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
    font-weight: 600;
}

/* Animation subtile pour attirer l'attention sur les disques critiques */
.disk-item.disk-critical {
    animation: subtle-pulse 2s infinite;
}

@keyframes subtle-pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
    }
    50% {
        box-shadow: 0 2px 12px rgba(220, 53, 69, 0.4);
    }
}

/* Responsivité pour les petits écrans */
@media (max-width: 768px) {
    .host-info-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .host-info-grid .system-info-item {
        padding: 10px 12px;
    }
    
    .host-info-grid .system-info-label {
        font-size: 0.7rem;
    }
    
    .host-info-grid .system-info-value {
        font-size: 0.9rem;
    }
}

.docker-containers {
    overflow-x: auto;
}

.docker-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.docker-table th {
    background: #667eea;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.docker-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.docker-table tr:hover {
    background-color: #f8f9fa;
}

.container-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.container-status.up {
    background: #d4edda;
    color: #155724;
}

.container-status.exited {
    background: #f8d7da;
    color: #721c24;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #dc3545;
    margin: 20px 0;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-details {
        grid-template-columns: 1fr;
    }
    
    .system-info {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card, .system-info-section, .docker-section {
    animation: fadeIn 0.6s ease-out;
}

/* Minikube spécial */
.minikube-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    font-size: 0.85rem;
}

.minikube-item {
    padding: 8px;
    background: #f8f9fa;
    border-radius: 5px;
    text-align: center;
}

.minikube-label {
    color: #666;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 3px;
}

.minikube-value {
    color: #333;
    font-weight: 600;
    font-size: 0.8rem;
}
