body {
    margin: 0;
    overflow: hidden;
}

/* Add server monitoring styles */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

/* Improved server monitoring styles with better padding */
.server-card {
    background-color: var(--bg-medium);
    border-radius: 8px;
    padding: 24px; /* Increased padding */
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 10px; /* Added margin between cards */
}

.server-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.server-card h3 {
    margin-top: 0;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.server-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-online {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.status-offline {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.status-warning {
    background-color: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border: 1px solid #f1c40f;
}

.status-local {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid #3498db;
}

.server-stats {
    margin-top: 18px; /* Increased margin */
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0; /* Increased padding */
    border-bottom: 1px dotted var(--border-light);
}

.stat-label {
    color: var(--text-secondary);
}

.stat-value {
    font-weight: bold;
}

.player-list {
    margin-top: 18px; /* Increased margin */
    max-height: 150px;
    overflow-y: auto;
    border-radius: 6px; /* Increased border radius */
    background-color: var(--bg-light);
    padding: 5px; /* Added internal padding */
}

.player-item {
    padding: 10px 12px; /* Increased padding */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px; /* Added radius */
    transition: background-color 0.2s;
}

.player-item:last-child {
    border-bottom: none;
}

.player-item:hover {
    background-color: rgba(255, 255, 255, 0.05); /* Hover effect */
}

.player-info {
    display: flex;
    align-items: center;
}

.player-avatar {
    width: 24px;
    height: 24px;
    background-color: var(--color-primary);
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.load-indicator {
    width: 50px;
    height: 6px;
    background-color: var(--bg-light);
    border-radius: 3px;
    overflow: hidden;
}

.load-bar {
    height: 100%;
    border-radius: 3px;
}

.load-low {
    background-color: #2ecc71;
    width: 20%;
}

.load-medium {
    background-color: #f39c12;
    width: 50%;
}

.load-high {
    background-color: #e74c3c;
    width: 80%;
}

.refresh-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px; /* Increased margin */
    padding: 5px 0; /* Added padding */
}

.auto-refresh {
    display: flex;
    align-items: center;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin: 0 10px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-light);
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--color-primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.system-overview {
    background-color: var(--bg-medium);
    border-radius: 8px;
    padding: 24px 20px; /* Increased padding */
    margin-bottom: 24px; /* Increased margin */
    border: 1px solid var(--border-light);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; /* Increased gap */
}

.overview-stat {
    text-align: center;
}

.overview-value {
    font-size: 2rem;
    font-weight: bold;
    margin: 5px 0;
    color: var(--color-primary);
}

.overview-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.chart-container {
    height: 200px;
    background-color: var(--bg-medium);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}

.chart-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border: 1px dashed var(--border-light);
    border-radius: 4px;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.indicator-online {
    background-color: #2ecc71;
    box-shadow: 0 0 5px #2ecc71;
}

.indicator-offline {
    background-color: #e74c3c;
    box-shadow: 0 0 5px #e74c3c;
}

.indicator-local {
    background-color: #3498db;
    box-shadow: 0 0 5px #3498db;
}

.actions-bar {
    display: flex;
    gap: 12px; /* Increased gap */
    margin-top: 20px; /* Increased margin */
    padding: 5px 0; /* Added padding */
}

.last-updated {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
    text-align: right;
}

.content-width {
    max-width: 1200px;
    width: 100%;
}

.message {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
}

.badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 6px;
    text-transform: uppercase;
    vertical-align: middle;
}

.badge-local {
    background-color: #3498db;
    color: white;
}
