/* MultiArc Frontend Monitor – Base Styles (Fixed & Optimized) */

:root {
    --server-padding: 20px;         /* Centralized padding value for map band calculations */
}

/* Main wrapper – no fixed width, fully responsive */
.multiarc-monitor-wrapper {
    display: flex;
    flex-direction: column;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;                /* Base font size – presets can override */
}

/* Core server block – full width, proper box-sizing */
.multiarc-server {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    background: #111;
    color: #eee;
    padding: var(--server-padding);
    border: 2px solid #444;
    border-radius: 12px;
}

/* Game icon – top-right corner overlay */
.multiarc-server-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    padding: 4px;
    pointer-events: none;
    z-index: 10;
}

/* Header section */
.multiarc-header {
    width: 100%;
    padding-bottom: 5px;
    box-sizing: border-box;
    margin-bottom: 10px;
    text-align: center;
}

.multiarc-status {
    display: block;                    /* Full width of header */
    width: 100%;                       /* Explicit for clarity */
    margin-bottom: 8px;

    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8em;
    text-align: center;                /* Center the text inside the full-width badge */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    box-sizing: border-box;
}

.multiarc-status.online {
    background: #0f0;
    color: #000;
}

.multiarc-status.offline {
    background: #c00;
    color: #fff;
}

.multiarc-header h3 {
    margin: 8px 0 4px 0;
    font-size: 1.3em;
    font-weight: 700;
    color: #0f0;
    word-wrap: break-word;
    line-height: 1.2;
}

.multiarc-game-name {
    font-size: 0.95em;
    color: #0dd;
    font-weight: 600;
    margin: 6px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.multiarc-server-address {
    font-size: 0.85em;
    color: #aaa;
    margin-top: 6px;
    opacity: 0.9;
}

/* Full-width Map Band – Critical Fix */
.multiarc-map-wrapper {
    text-align: center;
    padding: 15px 0;
    background: #222;
    margin-left: calc(-1 * var(--server-padding));
    margin-right: calc(-1 * var(--server-padding));
    width: calc(100% + 2 * var(--server-padding));
    border-top: 2px solid #444;
    border-bottom: 2px solid #444;
    box-sizing: border-box;
}

.multiarc-map-image {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 2px solid #444;
}

/* Server info (Map/Mode line) */
.multiarc-server-info {
    text-align: center;
    margin: 12px 0;
}

.multiarc-server-info p {
    margin: 6px 0;
    line-height: 1.4;
    font-size: 0.95em;
}

/* Players section */
.multiarc-players {
    padding: 0 12px 12px;
}

.multiarc-players h4 {
    margin: 12px 0 8px;
    color: #0dd;
    font-size: 1em;
    border-bottom: 1px solid #333;
    padding-bottom: 4px;
    text-align: center;
}

.multiarc-players-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
    margin-top: 8px;
}

.multiarc-players-table th,
.multiarc-players-table td {
    padding: 5px 6px;
    text-align: left;
}

.multiarc-players-table th {
    color: #0dd;
    font-weight: bold;
}

.multiarc-players-table th.text-right,
.multiarc-players-table td.text-right {
    text-align: right;
}

.multiarc-players-table tbody tr {
    border-bottom: 1px dashed #333;
}

.multiarc-players-table tbody tr:last-child {
    border-bottom: none;
}

.multiarc-players-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Player table grid – customizable via editor */
.multiarc-players-table {
    border-collapse: collapse;
    border: 1px solid #444; /* outer border */
}

.multiarc-players-table th,
.multiarc-players-table td {
    border: 1px dashed #333; /* inner grid */
}

.multiarc-players-table th:first-child,
.multiarc-players-table td:first-child {
    border-left: none;
}

.multiarc-players-table thead th {
    border-top: none;
}

.multiarc-players-table tbody tr:last-child td {
    border-bottom: none;
}