.dayz-server-status {
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

.server-group-display {
    margin-bottom: 30px;
}

.server-group-title {
    padding: 15px 20px;
    margin: 0 0 15px 0;
    border-radius: 5px;
    font-size: 1.4em;
    font-weight: bold;
    text-align: center;
}

.server-group-servers {
    display: block;
}

.dayz-server {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f9f9f9;
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.server-name {
    margin: 0;
    color: #333;
    font-size: 1.2em;
}

.server-status {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.server-status.online {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.server-status.offline {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.server-error {
    font-weight: normal;
    text-transform: none;
    font-size: 11px;
}

.server-details {
    margin-bottom: 10px;
}

.server-ports {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.port-info {
    font-size: 12px;
    color: #666;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
}

.server-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.info-item .label {
    font-weight: bold;
    color: #666;
}

.info-item .value {
    color: #333;
}

.info-item.players-list {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
}

.players-list .value {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.player {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.player-more {
    background: #6c757d;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-style: italic;
}

.server-last-updated {
    font-size: 12px;
    color: #888;
    text-align: right;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.dayz-server-status-footer {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.refresh-servers,
.clear-cache {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
}

.refresh-servers:hover,
.clear-cache:hover {
    background: #005a87;
}

.refresh-servers.loading,
.clear-cache.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.server-status.updating {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Responsive design */
@media (max-width: 768px) {
    .server-info {
        grid-template-columns: 1fr;
    }
    
    .server-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .server-status {
        align-self: flex-start;
    }
    
    .server-ports {
        flex-direction: column;
        gap: 5px;
    }
    
    .info-item {
        flex-direction: column;
        gap: 2px;
    }
    
    .dayz-server-status-footer {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .refresh-servers,
    .clear-cache {
        width: 100%;
    }
}

/* Multi-column layout for server groups */
@media (min-width: 768px) {
    .server-group-servers.grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .server-group-servers.grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .server-group-servers.grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}