* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f4f6f8;
    color: #2c3e50;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    padding: 32px 40px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

h1 {
    font-size: 24px;
    margin-bottom: 4px;
}

.subtitle {
    color: #7f8c8d;
    margin-top: 0;
    margin-bottom: 28px;
}

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

.connected-as {
    font-size: 13px;
    color: #7f8c8d;
    margin: 4px 0 0 0;
}

.logout-link {
    font-size: 14px;
    color: #7f8c8d;
    text-decoration: none;
}

.logout-link:hover {
    text-decoration: underline;
}

.help-text {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.sla-table th, .sla-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.sla-table th {
    color: #7f8c8d;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sla-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    min-width: 90px;
    text-align: center;
}

.device-table th, .device-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #ecf0f1;
    font-size: 14px;
}

.device-table input[type="text"] {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #dcdfe1;
    border-radius: 4px;
}

.filter-input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid #dcdfe1;
    border-radius: 6px;
    font-size: 14px;
}

.save-btn, .login-box button {
    background: #2980b9;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}

.save-btn:hover, .login-box button:hover {
    background: #2471a3;
}

.legend {
    font-size: 13px;
    color: #7f8c8d;
}

.legend .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 6px 0 14px;
    vertical-align: middle;
}

.legend .dot:first-child {
    margin-left: 0;
}

.last-update {
    font-size: 12px;
    color: #b2bec3;
    margin-top: 20px;
}

.success {
    background: #eafaf1;
    color: #1e8449;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.error {
    background: #fdedec;
    color: #c0392b;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.empty-msg {
    color: #7f8c8d;
}

/* Page de connexion */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    width: 300px;
}

.login-box input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    margin: 16px 0;
    border: 1px solid #dcdfe1;
    border-radius: 6px;
    font-size: 14px;
}
