/* ==================================================
   Cencraft Server Status – FINAL FLEX LAYOUT
   ================================================== */

/* Container */
.server-status-grid {
    padding: 20px;
}

/* FLEX GRID (gap-safe) */
.server-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: stretch;
    margin: 0;
    padding: 0;
}

/* SERVER CARD */
.server-status {
    flex: 0 1 calc(33.333% - 10px);
    min-width: 220px;

    position: relative;
    padding: 20px;
    border-radius: 10px;
    background-color: #f8f9fa;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.server-status:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1200px) {
    .server-status {
        flex: 0 1 calc(50% - 10px);
    }
}

@media (max-width: 600px) {
    .server-status {
        flex: 0 1 100%;
    }
}

/* ONLINE / OFFLINE */
.online {
    background-color: #28a745;
    color: white;
}

.offline {
    background-color: #dc3545;
    color: white;
}

/* TEXT */
.status-title {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.status-detail {
    font-size: 1em;
    margin-bottom: 5px;
}

/* WHITELIST BADGE */
.whitelisted-banner {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff6666;
    color: black;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
}

/* LAST UPDATED */
.last-updated {
    font-size: 14px;
    color: #aaa;
    text-align: center;
    margin-top: 10px;
}

/* MODAL FIX */
#playersModal.modal {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

#playersModal .modal-dialog {
    max-width: 400px;
    width: 90%;
    margin: 0;
}

#playersModal .modal-body {
    max-height: 400px;
    overflow-y: auto;
}
.server-note {
    margin-top: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.15);
    border-left: 4px solid #ffc107;
    font-size: 0.95em;
    font-style: italic;
    line-height: 1.3;
}

