body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 0;
}

header {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 1.5rem 2rem;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.server-list {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.server-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.server-item:last-child {
    border-bottom: none;
}

.server-name {
    font-size: 1.2rem;
    font-weight: 500;
}

.status {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    min-width: 110px;
    text-align: center;
}

.status-working { background-color: #2ecc71; } /* Vert */
.status-uncertain { background-color: #95a5a6; } /* Grey */
.status-non-functional { background-color: #333; } /* Dark Grey/Black */
.status-risky { background-color: #f1c40f; } /* Yellow */
.status-detected { background-color: #e74c3c; } /* Rouge */

.report-button-container, .back-link {
    text-align: center;
    margin-top: 2rem;
}

.button {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    margin: 0 5px; /* Add some space between buttons */
    border: none;
    cursor: pointer;
}

.button:hover {
    background-color: #2980b9;
}

.button-danger {
    background-color: #d9534f; /* Red for danger */
    border-color: #d43f3a;
}

.button-danger:hover {
    background-color: #c9302c;
    border-color: #ac2925;
}

.action-link-delete {
    color: #d9534f;
    text-decoration: none;
    font-weight: bold;
    padding: 5px;
}

.action-link-delete:hover {
    color: #c9302c;
    text-decoration: underline;
}

.actions-cell {
    text-align: center;
}

.report-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.report-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.report-form input,
.report-form select,
.report-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Important */
}

footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1rem;
    color: #777;
}

.message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    text-align: center;
}

.message-info {
    background-color: #eaf5fd;
    color: #3498db;
    border: 1px solid #aed6f1;
}

.message-error {
    background-color: #fdedec;
    color: #e74c3c;
    border: 1px solid #f5b7b1;
}

.back-link a {
    color: #3498db;
    text-decoration: none;
}
.back-link a:hover {
    text-decoration: underline;
}

/* Clickable List */
.clickable-list .server-item {
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease-in-out;
}

.clickable-list .server-item:hover {
    background-color: #f8f9f9;
    cursor: pointer;
}

/* Details Page */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.details-summary ul {
    list-style: none;
    padding-left: 0;
}

.details-summary li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
}

.status-dot.status-risky {
    background-color: #f1c40f;
}

.report-log table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.report-log th,
.report-log td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.report-log th {
    font-weight: bold;
    background-color: #f9fafb;
}

.report-log tbody tr:last-child td {
    border-bottom: none;
}

.status-sm {
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
}

.back-link a {
    color: #3498db;
    text-decoration: none;
    font-size: 1.1rem;
}

