/* ==========================
   Thème BLEU (steam-blue)
   => plus proche du client Steam actuel
   ========================== */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
    /* Police possible : font-family: "Motiva Sans", Arial, sans-serif; */
}

.steam-blue,
.steam-green {
    min-height: 100dvh; /* dvh = mieux sur mobile */
    display: flex;
    flex-direction: column;
}

.steam-blue > .container,
.steam-green > .container {
    flex: 1 0 auto;
}

.steam-blue {
    background-color: #1b2838;
    color: #c7d5e0;
    /* Police possible : font-family: "Motiva Sans", Arial, sans-serif; */
}

.steam-blue .card {
    background-color: #2a475e;
    border: 1px solid #000;
    margin-bottom: 1rem;
    color: #c7d5e0;
}

.steam-blue .card-header {
    background-color: #17212f;
    color: #66c0f4; /* bleu clair du client actuel */
    font-weight: bold;
}

.steam-blue .badge {
    font-weight: normal;
}

.steam-blue .table {
    color: #c7d5e0;
}

.steam-blue .table-secondary {
    background-color: #2a475e !important;
}

.steam-blue .list-group-item {
    background-color: #2a475e;
    border: none;
}

/* Liens, boutons, hover, etc. */
.steam-blue a,
.steam-blue .btn {
    color: #66c0f4;
}
.steam-blue a:hover,
.steam-blue .btn:hover {
    color: #ffffff;
}

.steam-blue .datacenters-table {
    width: 100%;
    background-color: #2a475e;
    color: #c7d5e0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #000;
    border-radius: 8px;
    overflow: hidden;
}

.steam-blue .datacenters-table tbody tr.table-secondary td {
    background-color: #1f2d3c !important; /* plus sombre que #2a475e */
    color: #66c0f4 !important;           /* texte bleu clair */
    font-weight: bold;
}

/* Les lignes paires qui ne sont pas .table-secondary */
.steam-blue .datacenters-table tbody tr:not(.table-secondary):nth-child(even) td {
    background-color: #25384a; /* un ton plus sombre que #2a475e */
}

.steam-blue .datacenters-table th,
.steam-blue .datacenters-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #17212f;
}

.steam-blue .datacenters-table thead th {
    background-color: #17212f;
    color: #66c0f4;
}

/* Carte "service-status-card" pour steam-blue */
.steam-blue .service-status-card {
    background-color: #17212f;
    border-radius: 6px;
    color: #c7d5e0;
}
.steam-blue .service-status-card .card-header {
    background-color: #0f161f;
    color: #66c0f4;
}
.steam-blue .service-status-card .card-body {
    font-weight: bold;
    font-size: 1.1rem;
}

/* ==========================
   Thème VERT (steam-green)
   => plus proche de l’ancien client
   ========================== */
.steam-green {
    background-color: #2e3b2f; /* un vert-gris de fond */
    color: #c0d0c0;
    /* Police possible : font-family: Tahoma, sans-serif; */
}

.steam-green .card {
    background-color: #3c4c3e;
    border: 1px solid #111;
    margin-bottom: 1rem;
    color: #c0d0c0;
}

.steam-green .card-header {
    background-color: #232e20;
    color: #f3e005; /* vert clair */
    font-weight: bold;
}

.steam-green .badge {
    font-weight: normal;
}

.steam-green .table {
    color: #c0d0c0;
}

.steam-green .table-secondary {
    background-color: #3c4c3e !important;
}

.steam-green .list-group-item {
    background-color: #3c4c3e;
    border: none;
}

/* Liens, boutons, hover, etc. */
.steam-green a,
.steam-green .btn {
    color: #8fbf8f;
}
.steam-green a:hover,
.steam-green .btn:hover {
    color: #ffffff;
}

/* Auto-refresh badge plus visible */
.auto-refresh-badge {
    background-color: #66c0f4;
    color: #0b1014;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    margin-right: 8px;
}

.steam-green .datacenters-table {
    width: 100%;
    background-color: #3c4c3e;
    color: #cce0d5;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #111;
    border-radius: 8px;
    overflow: hidden;
}

.steam-green .datacenters-table tbody tr.table-secondary td {
    background-color: #2b3a2c !important; /* plus sombre que #3c4c3e */
    color: #f3e005 !important;           /* jaune-vert vif */
    font-weight: bold;
}

/* Zébrage pour les lignes paires */
.steam-green .datacenters-table tbody tr:not(.table-secondary):nth-child(even) td {
    background-color: #354435; /* un ton plus sombre que #3c4c3e */
}

.steam-green .datacenters-table th,
.steam-green .datacenters-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #1b2c1f;
}

.steam-green .datacenters-table thead th {
    background-color: #1b2c1f;
    color: #f3e005;
}

/* Carte "service-status-card" pour steam-green */
.steam-green .service-status-card {
    background-color: #232e20;
    border-radius: 6px;
    color: #c0d0c0;
}
.steam-green .service-status-card .card-header {
    background-color: #1a2418;
    color: #f3e005;
}
.steam-green .service-status-card .card-body {
    font-weight: bold;
    font-size: 1.1rem;
}

/* ==========================
   Thème général (steam)
   ========================== */

.load-idle {
    background-color: #17a2b8;  /* un turquoise style Bootstrap “info” */
    color: #fff;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: 600;
}

.load-low {
    background-color: #28a745; /* success */
    color: #fff;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: 600;
}

.load-medium {
    background-color: #ffc107; /* warning */
    color: #000;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: 600;
}

.load-high {
    background-color: #dc3545; /* danger */
    color: #fff;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: 600;
}
.load-surge {
    background-color: #ff8700; /* danger */
    color: #000000;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: 600;
}
.load-critical {
    background-color: #ff0018; /* danger */
    color: #fff;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: 600;
}


.icon-gauge {
    width: 20px;
    height: 20px;
    /*vertical-align: middle; !* ou top/middle selon le rendu souhaité *!*/
}

.icon-gauge-large {
    width: 40px;
    height: 40px;
    /*vertical-align: middle; !* ou top/middle selon le rendu souhaité *!*/
}

.icon-gauge-small {
    width: 15px;
    height: 15px;
    /*vertical-align: middle; !* ou top/middle selon le rendu souhaité *!*/
}

.futuristic-link {
    display: inline-block;
    color: #00f7ff;
    font-weight: bold;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.futuristic-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, #00f7ff, #7afff0);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.futuristic-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.futuristic-link:hover {
    color: #ffffff;
    text-shadow: 0 0 5px #00f7ff, 0 0 10px #00f7ff;
}

.neon-link {
    color: #0ff;
    font-weight: bold;
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: all 0.4s ease;
    text-shadow:
            0 0 5px #0ff,
            0 0 10px #0ff,
            0 0 20px #0ff,
            0 0 40px #0ff;
    animation: glow-pulse 2s infinite ease-in-out;
    perspective: 600px;
}

.neon-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #0ff;
    bottom: -3px;
    left: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease-in-out;
}

.neon-link:hover::after {
    transform: scaleX(1);
}

.neon-link:hover {
    transform: rotateX(5deg) rotateY(10deg);
    text-shadow:
            0 0 10px #0ff,
            0 0 20px #0ff,
            0 0 30px #0ff,
            0 0 50px #0ff;
}

@keyframes glow-pulse {
    0%, 100% {
        text-shadow:
                0 0 5px #0ff,
                0 0 10px #0ff,
                0 0 20px #0ff,
                0 0 40px #0ff;
    }
    50% {
        text-shadow:
                0 0 2px #0ff,
                0 0 5px #0ff,
                0 0 10px #0ff,
                0 0 20px #0ff;
    }
}

/* ==========================
   BETA badge
   ========================== */
.beta-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
    letter-spacing: 1px;
    box-shadow: 0 0 8px rgba(255, 75, 43, 0.6);
    transition: all 0.3s ease-in-out;
    animation: beta-flicker 2.5s infinite ease-in-out;
    cursor: default;
}

@keyframes beta-flicker {
    0%, 100% {
        text-shadow: 0 0 2px white, 0 0 4px #ff4b2b, 0 0 6px #ff416c;
    }
    50% {
        text-shadow: 0 0 4px white, 0 0 8px #ff4b2b, 0 0 12px #ff416c;
    }
}

.beta-badge:hover {
    background: linear-gradient(135deg, #ff4b2b, #ff416c);
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(255, 75, 43, 0.8);
}
