/* Element selectors */
body {
    font-family: system-ui, -apple-system, sans-serif;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px 40px;
    background: #ffffff;
    color: #374151;
}
h1 {
    color: #111827;
}
a {
    color: #2563eb;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
label {
    display: block;
    margin-top: 12px;
    font-weight: 600;
    color: #374151;
}
input[type="text"],
input[type="password"],
input[type="email"] {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
}

/* Header */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 -20px 40px;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}
.brand {
    font-size: 1.2em;
    font-weight: 700;
    color: #111827;
}
.site-nav p {
    margin: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid #2563eb;
    border-radius: 6px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
    font-size: 1em;
    text-decoration: none;
    cursor: pointer;
}
.btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    text-decoration: none;
}
.btn-secondary {
    background: #ffffff;
    color: #111827;
    border: 1px solid #d1d5db;
}
.btn-secondary:hover {
    background: #f9fafb;
}
form .btn {
    margin-top: 16px;
}

/* Class selectors */
.error {
    color: #dc2626;
}
.success {
    color: #16a34a;
}
.infos {
    margin-top: 30px;
    padding: 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9em;
}
.infos dt {
    color: #6b7280;
    font-weight: bold;
    margin-top: 10px;
}
.infos dd {
    margin-left: 0;
}
.n-most-visitors {
    margin-top: 30px;
}

/* ID selectors */
#visitsChart {
    margin-top: 30px;
    max-width: 100%;
}
#countdown {
    margin-top: 30px;
    font-size: 1.5em;
    text-align: center;
}

/* Line status badges */
.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: capitalize;
}
.status-up {
    background: #dcfce7;
    color: #16a34a;
}
.status-down {
    background: #fee2e2;
    color: #dc2626;
}
.status-pending {
    background: #f3f4f6;
    color: #6b7280;
}
