.states-manager {
    max-width: 1200px;
    background: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 20px;
}

.states-search {
    margin-bottom: 20px;
}

.states-search-input {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
}

.no-results-message {
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin: 15px 0;
    text-align: center;
    color: #6c757d;
}

.states-counter {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-weight: 500;
}

.country-section {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    transition: opacity 0.3s ease;
}

.country-section h2 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.states-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.states-list li {
    padding: 5px;
    transition: opacity 0.2s ease;
}

.states-list li label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
}

.states-list li label:hover {
    background: #f8f9fa;
}

.states-list li input[type="checkbox"] {
    margin-right: 8px;
}

.country-controls {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

.toggle-country {
    padding: 5px 10px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.toggle-country:hover {
    background: #e9ecef;
}

.restore-states {
    margin-right: 10px !important;
}

@media (max-width: 768px) {
    .states-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}