:root {
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    color-scheme: dark;
}

body {
    margin: 0;
    background: #0b1020;
    color: #e6e7ee;
}

header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    gap: 10px;
    background: #111833;
    border-bottom: 1px solid #1e2a55;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #111833;
    border-top: 1px solid #1e2a55;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#desktopHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#mobileHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-weight: 700;
}

.muted {
    color: #a2a9c3;
    font-size: 12px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    align-content: center;
    padding-bottom: 60px;
}

.container-wide {
    max-width: 1400px;
}

.card {
    background: #0f152d;
    border: 1px solid #1e2a55;
    border-radius: 14px;
    padding: 16px;
}

.grid {
    display: grid;
    gap: 12px;
}

.row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 10px;
}

.col-3 {
    grid-column: span 3;
}

.col-4 {
    grid-column: span 4;
}

.col-6 {
    grid-column: span 6;
}

.col-8 {
    grid-column: span 8;
}

.col-12 {
    grid-column: span 12;
}

label {
    display: block;
    font-size: 12px;
    color: #a2a9c3;
    margin-bottom: 6px;
}

input,
select {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #1a2347;
    background: #0b1020;
    color: #e6e7ee;
}

button {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #2c7be5;
    background: #2c7be5;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

button.ghost {
    background: transparent;
    color: #e6e7ee;
    border-color: #1e2a55;
}

button.danger {
    background: #ef4444;
    border-color: #ef4444;
}

button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.hidden {
    display: none !important;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: end;
}

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

.table th,
.table td {
    padding: 10px;
    border-bottom: 1px solid #1a2347;
    text-align: left;
    vertical-align: top;
}

.table th {
    font-size: 12px;
    color: #a2a9c3;
    font-weight: 600;
}

.pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 12px;
    background: #1a2347;
}

.status-OK {
    color: #22c55e;
}

.status-WARNING {
    color: #eab308;
}

.status-CRITICAL {
    color: #ef4444;
}

.status-UP {
    color: #22c55e;
}

.status-DOWN {
    color: #ef4444;
}

.status-UNKNOWN {
    color: #a2a9c3;
}

.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 10px;
}

.nowrap {
    white-space: nowrap;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

#logo {
    width: 100%;
    max-width: 15em;
    height: auto;
    margin: auto;
}

.centered {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.otp-input {
    width: 20px;
    height: 20px;
    text-align: center;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #1a2347;
    background: #0b1020;
    color: #e6e7ee;
}

#userContainer {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1px;
}

#langSelect {
    background: #0b1020;
    border: 1px solid #1a2347;
    color: #e6e7ee;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
}

#langSelect option {
    background: #0b1020;
    color: #e6e7ee;
}

#PauseCard {
    margin-bottom: .5rem !important;
}

.title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-Title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 7px;
}

.red {
    padding: 4px 10px;
    border-radius: 8px;
    background: red;
    color: white;
}

.green {
    padding: 4px 10px;
    border-radius: 8px;
    background: green;
    color: white;
}

#auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 400px;
    height: 300px;
    z-index: 10;
    padding: 2em 6em;
    box-shadow: 0 0 1em 1em rgba(26, 35, 71, 0.3);
    background-color: rgba(26, 35, 71, 0.3);
}

#loginCard {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    background-color: var(--menu-bg-color, #06062b);
    background-image: url('https://web.sukyan.ninja/img/company/ppm-visuel.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    background-position: bottom center;
    overflow: hidden;
}

#langMenuAuth {
    position: absolute;
    top: 20px;
    right: 20px;
}

#email {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #1a2347;
    background: #0b1020;
    color: #e6e7ee;
    min-width: 250px;
    height: 20px;
}


.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    align-items: center;
    display: flex;
    gap: 6px;
}

.dropdown-content {
    display: none;
    position: absolute;
    margin-top: auto;
    left: auto !important;
    right: 0 !important;
    background-color: white;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    z-index: 1;
    overflow: hidden;
}

.dropdown-content .dropdown-item {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background 0.2s;
}

.dropdown-content .dropdown-item:hover {
    background-color: #f1f1f1;
}

/* Affichage quand actif */
.dropdown.show .dropdown-content {
    top: 100% !important;
    inset: 0px auto auto 0px;
    display: block;
}

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}