/**
 * List2Play Servers Admin Styles
 */

.list2play-server-selection-actions {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.list2play-servers-checkbox-list {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 1rem;
    background: #fff;
    border-radius: 4px;
}

.list2play-server-checkbox-list.sortable-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.list2play-server-checkbox-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
    background: #fff;
    cursor: move;
    transition: background-color 0.2s;
}

.list2play-server-checkbox-item:hover {
    background: #f5f5f5;
}

.list2play-server-checkbox-item.ui-sortable-helper {
    background: #e3f2fd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.list2play-server-checkbox-item:last-child {
    border-bottom: none;
}

.list2play-server-checkbox-item .drag-handle {
    cursor: move;
    margin-right: 0.5rem;
    color: #999;
    font-size: 1.2rem;
    user-select: none;
    padding: 0 0.25rem;
}

.list2play-server-checkbox-item .drag-handle:hover {
    color: #666;
}

.list2play-server-checkbox-item input[type="checkbox"] {
    margin-right: 0.75rem;
}

.list2play-server-checkbox-item label {
    flex: 1;
    cursor: pointer;
    font-weight: 500;
}

.list2play-server-checkbox-item .server-id {
    color: #666;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

.list2play-server-checkbox-item .server-status {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.list2play-server-checkbox-item .server-status.online {
    background: #4caf50;
    color: #fff;
}

.list2play-server-checkbox-item .server-status.offline {
    background: #f44336;
    color: #fff;
}

.list2play-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.list2play-error-message {
    padding: 1rem;
    background: #ffebee;
    color: #c62828;
    border-radius: 4px;
    margin: 1rem 0;
}

.list2play-success-message {
    padding: 1rem;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 4px;
    margin: 1rem 0;
}

.list2play-save-selection-wrapper {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
    clear: both;
}

