body { font-family: Arial, sans-serif; max-width: 1200px; margin: 0 auto; padding: 20px; }
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.btn { background: #007cba; color: white; padding: 10px 15px; text-decoration: none; border-radius: 4px; }
.host { border: 1px solid #ddd; padding: 15px; margin: 10px 0; border-radius: 8px; cursor: pointer; }
.host:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.host-status, .probe-status { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 10px; }
.UP { background: #28a745; }
.WARNING { background: #ffc107; }
.DOWN { background: #dc3545; }
.UNKNOWN { background: #6c757d; }
.stat { display: inline-block; margin: 0 15px; padding: 10px 20px; border-radius: 20px; color: white; }
.stat.up { background: #28a745; }
.stat.down { background: #dc3545; }
.stat.warning { background: #ffc107; color: black; }
.stat.unknown { background: #6c757d; }
.login-form { max-width: 300px; margin: 100px auto; text-align: center; }
.login-form input { width: 100%; padding: 10px; margin: 10px 0; box-sizing: border-box; }
.error { background: #f8d7da; color: #721c24; padding: 10px; border-radius: 4px; margin-bottom: 20px; }
/* Dashboard amélioré */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.stat {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    color: white;
    font-weight: bold;
}

.stat-number { font-size: 2em; display: block; }
.stat-label { font-size: 0.9em; opacity: 0.9; }

.hosts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.host-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.host-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.host-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.host-status {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.host-link { color: #333; text-decoration: none; }
.host-link:hover { color: #007cba; }

.host-group {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
}

.host-time { 
    margin-left: auto; 
    font-size: 0.85em; 
    color: #666; 
}

.filters-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.filters-section select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.header-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.role { color: #007cba; font-weight: bold; }

.dashboard-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #888;
}
/* === HOST.PHP STYLES === */
.host-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 2px solid #eee; }
.host-title-section { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex: 1; }
.host-meta { margin: 5px 0; color: #666; font-size: 0.95em; }
.host-description { background: #f0f0f0; padding: 15px; border-left: 4px solid #007cba; margin: 15px 0; border-radius: 0 8px 8px 0; }

.host-form, .add-probe-form { background: #f8f9fa; padding: 30px; border-radius: 12px; margin: 25px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.form-row { display: flex; gap: 15px; align-items: end; flex-wrap: wrap; margin-bottom: 20px; }
.form-row input, .form-row select { flex: 1; min-width: 140px; padding: 12px; border: 1px solid #ddd; border-radius: 6px; }
.form-row input[type=number] { width: 100px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; padding: 12px; background: white; border: 1px solid #ddd; border-radius: 6px; cursor: pointer; }
.port-label { font-size: 0.85em; margin-left: 10px; color: #666; }
.port-label.default { color: #28a745; font-weight: 500; }

.probes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 20px; margin-top: 20px; }
.probe-card { border: 2px solid #e9ecef; padding: 25px; border-radius: 12px; background: white; transition: all 0.3s; }
.probe-card:hover { box-shadow: 0 5px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }
.probe-card.UP { border-left: 5px solid #28a745; }
.probe-card.DOWN { border-left: 5px solid #dc3545; background: #fff5f5; }
.probe-card.WARNING { border-left: 5px solid #ffc107; }

.probe-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.probe-status { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.probe-status.UP { background: #28a745; }
.probe-status.DOWN { background: #dc3545; }
.probe-status.WARNING { background: #ffc107; }
.probe-status.UNKNOWN { background: #6c757d; }

.probe-details { color: #666; font-size: 0.95em; margin-bottom: 20px; }
code { background: #e9ecef; padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }

.delete-host-form { margin: 0; }
.delete-probe-form { margin-top: 15px; text-align: right; }
.btn-small { padding: 6px 12px !important; font-size: 13px !important; }

.empty-probes { text-align: center; padding: 60px 40px; color: #666; background: #f8f9fa; border-radius: 12px; border: 2px dashed #dee2e6; }
.section-title { margin: 30px 0 20px 0; color: #333; }


.topology-form select, .topology-form button {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
/* Suppression hôte */
.host-title-section { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.delete-host-form { margin: 0; }
.btn-danger { background: #dc3545 !important; color: white !important; padding: 12px 24px; font-weight: bold; }
.host-header { margin-bottom: 30px; border-bottom: 2px solid #eee; padding-bottom: 20px; }
/* Formulaire sonde amélioré */
.add-probe-form { background: #f8f9fa; padding: 25px; border-radius: 12px; margin: 25px 0; }
.form-row { display: flex; gap: 15px; align-items: end; flex-wrap: wrap; margin-bottom: 20px; }
.form-row input, .form-row select { flex: 1; min-width: 120px; }
.form-row input[type=number] { width: 80px; }
#probe-port { background: #e9ecef; }
#default-port-label { font-size: 0.85em; margin-left: 10px; }
/* Bouton check */
.check-controls { text-align: center; margin: 30px 0; padding: 20px; background: #f8f9fa; border-radius: 12px; }
.btn-large { padding: 15px 30px !important; font-size: 16px !important; }
.btn-success { background: #28a745 !important; }
.check-status { display: block; margin-top: 10px; color: #666; font-style: italic; }
/* Sélection sondes création */
.probes-selection { 
    background: #f8f9fa; padding: 25px; border-radius: 12px; margin: 25px 0; 
    border: 2px dashed #dee2e6;
}
.probes-checkboxes {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 12px; margin-top: 15px;
}
.probes-checkboxes label {
    display: flex; align-items: center; gap: 12px; 
    padding: 12px; background: white; border-radius: 8px; 
    border: 2px solid #e9ecef; cursor: pointer; transition: all 0.2s;
    font-size: 15px;
}
.probes-checkboxes label:hover { border-color: #28a745; box-shadow: 0 2px 8px rgba(40,167,69,0.1); }
.probes-checkboxes input:checked + span { color: #28a745; font-weight: 600; }
.probes-checkboxes input[type="checkbox"] { width: 18px; height: 18px; accent-color: #28a745; }
/* Actions hôte */
.host-actions { display: flex; gap: 15px; margin-bottom: 25px; }
.check-log-entry .status-badge { padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: bold; }
.check-log-entry.UP .status-badge { background: #28a745; color: white; }
.check-log-entry.DOWN .status-badge { background: #dc3545; color: white; }
.check-log-entry.WARNING .status-badge { background: #ffc107; color: black; }
