/* Фильтр - обновленный с большим скруглением */
.ujb-filter {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 16px; /* Увеличено с 8px до 16px */
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.ujb-filter-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.ujb-field {
    position: relative;
}

.ujb-field input,
.ujb-field select {
    width: 100%;
    padding: 12px 16px; /* Увеличены отступы */
    border: 1px solid #ddd;
    border-radius: 12px; /* Увеличено с 4px до 12px */
    font-size: 14px;
    line-height: 1.5;
    height: 48px; /* Немного увеличена высота */
    box-sizing: border-box;
    background: white;
    transition: all 0.2s ease;
}

.ujb-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 12px 40px 12px 16px; /* Увеличен отступ справа для стрелки */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.ujb-field input:hover,
.ujb-field select:hover {
    border-color: #999;
}

.ujb-field input:focus,
.ujb-field select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

/* Чекбоксы */
.ujb-checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.ujb-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 0;
}

.ujb-checkbox:first-child {
    font-weight: bold;
    color: #0073aa;
}

.ujb-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0073aa; /* Цвет чекбокса в современных браузерах */
}

/* Кнопки - обновленные с большим скруглением */
.ujb-actions {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

.ujb-button {
    padding: 14px 28px; /* Увеличены отступы */
    border: none;
    border-radius: 40px; /* Сильно скругленные (почти пилюли) */
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.ujb-button-primary {
    background: #0073aa;
    color: white;
    flex: 2;
    box-shadow: 0 4px 10px rgba(0,115,170,0.2);
}

.ujb-button-primary:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,115,170,0.3);
}

.ujb-button-reset {
    background: #f1f1f1;
    color: #555;
    flex: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.ujb-button-reset:hover {
    background: #e5e5e5;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Остальные стили остаются без изменений */
.ujb-results {
    margin-top: 30px;
}

.ujb-count {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.ujb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ujb-card {
    background: white;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 12px; /* Увеличено скругление карточек */
    transition: all 0.3s;
    height: fit-content;
}

.ujb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,115,170,0.15);
    border-color: #0073aa;
}

.ujb-card-category {
    display: inline-block;
    padding: 4px 10px;
    background: #e3f2fd;
    color: #0073aa;
    border-radius: 20px; /* Скругленные категории */
    font-size: 12px;
    margin-bottom: 10px;
}

.ujb-card-title {
    margin: 0 0 15px 0;
    font-size: 18px;
}

.ujb-card-title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.ujb-card-title a:hover {
    color: #0073aa;
}

/* Общие стили для элементов карточки */
.ujb-card-company,
.ujb-card-location,
.ujb-card-salary {
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ujb-card-company,
.ujb-card-location {
    color: #666;
}

.ujb-card-salary {
    color: #2e7d32;
    font-weight: bold;
}

/* Кружочек рубля */
.ujb-ruble-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #2e7d32;
    color: white;
    font-weight: bold;
    font-size: 12px;
    border-radius: 50%;
    margin-right: 4px;
    box-shadow: 0 2px 4px rgba(46, 125, 50, 0.2);
    line-height: 1;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ujb-ruble-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(46, 125, 50, 0.3);
}

/* Кнопка "Еще вакансии" */
.ujb-load-more {
    text-align: center;
    margin: 30px 0;
}

.ujb-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 40px;
    background: #f8f9fa;
    color: #0073aa;
    border-radius: 40px; /* Сильно скругленная */
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid #0073aa;
}

.ujb-load-more-btn:hover {
    background: #0073aa;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,115,170,0.3);
}

.ujb-load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.ujb-load-more-btn .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.ujb-load-more-btn.loading .spinner {
    display: inline-block;
}

.ujb-load-more-btn.loading .text {
    opacity: 0.7;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ujb-no-results {
    text-align: center;
    padding: 50px;
    background: #f8f9fa;
    border-radius: 16px; /* Увеличено скругление */
    color: #666;
}

.ujb-no-results p:first-child {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .ujb-filter-row {
        grid-template-columns: 1fr;
    }
    
    .ujb-checkbox-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .ujb-actions {
        flex-direction: column;
    }
    
    .ujb-button {
        width: 100%;
        border-radius: 12px; /* Чуть меньше скругление на мобильных */
    }
}