/* Общие стили для всего сайта */
body {
    font-family: Roboto, sans-serif;
    font-size: 14px;
    background: #F9F9F9; /* Light Gray */
    color: #333333; /* Dark Gray */
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Montserrat, sans-serif;
    color: #2E4A62; /* Dark Blue-Gray */
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #F9F9F9; /* Light Gray */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.container-fluid {
    background: #F9F9F9; /* Light Gray */
}


/* Навигация */
.navbar {
    background: #F9F9F9; /* Dark Blue-Gray */
    padding: 0;
    height: 40px;
}

.navbar-brand {
    font-family: Montserrat, sans-serif;
    font-size: 1.8rem;
    color: #F9F9F9 !important; /* Light Gray */
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: #F4A261 !important; /* Warm Orange */
}

.nav-link {
    color: #2E4A62;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    line-height: 40px;
    padding: 0 15px;
}

.nav-link:hover {
    color: #F4A261 !important; /* Warm Orange */
}

.dropdown-menu {
    background: #F9F9F9; /* Light Gray */
    border: none;
}

.city-dropdown {
    width: 300px;
    padding: 10px;
    background: #F9F9F9; /* Light Gray */
}

.city-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.city-list .dropdown-item {
    color: #2E4A62; /* Dark Blue-Gray */
    font-family: Roboto, sans-serif;
    font-size: 14px;
}

.city-list .dropdown-item:hover {
    background: #F4A261; /* Warm Orange */
    color: #F9F9F9; /* Light Gray */
}

/* Хлебные крошки */
.breadcrumb {
    background: #E8ECEF; /* Slightly darker gray for distinction */
    padding: 10px 15px;
    margin-bottom: 20px;
    font-size: 10px;
    border-radius: 4px; /* Subtle rounding for visual distinction */
}

.breadcrumb-item a {
    color: #2E4A62; /* Dark Blue-Gray */
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #F4A261; /* Warm Orange */
}

/* Фильтр */
.filter-sidebar {
    border-right: 2px solid #2E4A62; /* Dark Blue-Gray */
    padding: 20px;
    background: #F9F9F9; /* Light Gray */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-sidebar h5 {
    font-family: Montserrat, sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2E4A62; /* Dark Blue-Gray */
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control, .form-check-input, .form-check-label {
    font-family: Roboto, sans-serif;
    font-size: 14px;
}

.form-control {
    border: 1px solid #2E4A62; /* Dark Blue-Gray */
    padding: 10px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #F4A261; /* Warm Orange */
    box-shadow: 0 0 5px rgba(244, 162, 97, 0.3);
}

.form-check-input:checked {
    background-color: #2E4A62; /* Dark Blue-Gray */
    border-color: #2E4A62; /* Dark Blue-Gray */
}

.btn-primary {
    background: #2E4A62; /* Dark Blue-Gray */
    border: none;
    padding: 10px 20px;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #F4A261; /* Warm Orange */
}

.btn-secondary {
    background: #2E4A62; /* Dark Blue-Gray */
    border: none;
    padding: 10px 20px;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    transition: background 0.3s ease;
}

.btn-secondary:hover {
    background: #F4A261; /* Warm Orange */
}

/* Карточки вакансий */
.vacancy-card {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    background: #F9F9F9; /* Light Gray */
    padding: 10px;
}

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

.card-title {
    font-family: Montserrat, sans-serif;
    font-weight: bold;
    font-size: 1.4rem;
    color: #2E4A62; /* Dark Blue-Gray */
    margin-bottom: 10px;
}

.card-title a {
    color: #2E4A62; /* Dark Blue-Gray */
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #F4A261; /* Warm Orange */
}

.card-text {
    font-family: Roboto, sans-serif;
    font-size: 12px;
    color: #333333; /* Dark Gray */
    margin-bottom: 5px;
}

.short-description {
    font-family: Roboto, sans-serif;
    font-size: 12px;
    color: #333333; /* Dark Gray */
    margin-bottom: 5px;
}

.short-description ul {
    margin: 0;
    padding-left: 15px;
}

.short-description li {
    margin-bottom: 3px;
}

.card-body {
    padding: 0;
}

/* Выделение зарплаты */
.salary-highlight {
    font-family: Montserrat, sans-serif;
    font-size: 1.6rem;
    color: #2E4A62; /* Dark Blue-Gray */
    display: inline-block;
    margin-bottom: 5px;
}

/* Кнопки без акцента */
.btn-success, .btn-outline-success {
    background: #2E4A62; /* Dark Blue-Gray */
    border: none;
    padding: 5px 10px;
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    color: #F9F9F9; /* Light Gray */
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.btn-success:hover, .btn-outline-success:hover {
    background: #F4A261; /* Warm Orange */
    opacity: 1;
}

/* Плашки */
.badge {
    font-family: Montserrat, sans-serif;
    font-size: 10px;
    padding: 3px 8px;
    margin-left: 5px;
    opacity: 0.7;
    background-color: #2E4A62; /* Dark Blue-Gray */
    color: #F9F9F9; /* Light Gray */
    white-space: normal;
    word-wrap: break-word;
}

.bg-success {
    background-color: #2E4A62 !important; /* Dark Blue-Gray */
}

.bg-info {
    background-color: #2E4A62 !important; /* Dark Blue-Gray */
}

/* Страница вакансии */
.vacancy-details {
    background: #F9F9F9; /* Light Gray */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.vacancy-details p {
    font-family: Roboto, sans-serif;
    font-size: 14px;
    color: #333333; /* Dark Gray */
    margin-bottom: 10px;
}

/* Спойлер "Описание" */
.short-description.collapsed {
    font-family: Roboto, sans-serif;
    font-size: 12px;
    color: #333333; /* Dark Gray */
    opacity: 0.7;
}

/* Админ-панель */
.table {
    background: #F9F9F9; /* Light Gray */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.table th {
    font-family: Montserrat, sans-serif;
    background: #2E4A62; /* Dark Blue-Gray */
    color: #F9F9F9; /* Light Gray */
    padding: 12px;
}

.table td {
    font-family: Roboto, sans-serif;
    font-size: 14px;
    padding: 12px;
}

.btn-danger {
    background: #2E4A62; /* Dark Blue-Gray */
    border: none;
    padding: 8px 15px;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    transition: background 0.3s ease;
}

.btn-danger:hover {
    background: #F4A261; /* Warm Orange */
}

.form-label {
    font-family: Montserrat, sans-serif;
    color: #2E4A62; /* Dark Blue-Gray */
}

.form-control, .form-select, .form-check-label {
    font-family: Roboto, sans-serif;
    font-size: 14px;
}

.alert-success {
    background-color: #2E4A62; /* Dark Blue-Gray */
    color: #F9F9F9; /* Light Gray */
}

.alert-danger {
    background-color: #2E4A62; /* Dark Blue-Gray */
    color: #F9F9F9; /* Light Gray */
}

/* Логин-страница */
.login-form {
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
    background: #F9F9F9; /* Light Gray */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Футер */
footer {
    background: #2E4A62; /* Dark Blue-Gray */
    color: #F9F9F9; /* Light Gray */
    padding: 20px 0;
    text-align: center;
    margin-top: 20px;
}

footer p {
    font-family: Roboto, sans-serif;
    font-size: 14px;
    margin: 0;
}

/* SEO-текст */
.seo-text {
    background: #F9F9F9; /* Light Gray */
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

/* Теглайн */
.tagline {
    font-family: Roboto, sans-serif;
    font-size: 1rem;
    color: #333333; /* Dark Gray */
    margin-bottom: 1rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .filter-sidebar {
        display: none;
    }

    .filter-sidebar.collapsible {
        display: block;
        border: none;
        padding: 0;
        background: none;
        box-shadow: none;
    }

    .filter-sidebar.collapsible .collapse {
        display: none;
    }

    .filter-sidebar.collapsible .collapse.show {
        display: block;
        padding: 20px;
        background: #F9F9F9; /* Light Gray */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .filter-sidebar.collapsible .btn {
        width: 100%;
        background: #2E4A62; /* Dark Blue-Gray */
        color: #F9F9F9; /* Light Gray */
        border: none;
        padding: 10px;
        font-size: 14px;
        margin-bottom: 10px;
    }

    .container {
        padding: 15px;
    }

    .navbar-brand {
        font-family: Montserrat, sans-serif;
        font-size: 1.5rem;
    }

    .card-title {
        font-family: Montserrat, sans-serif;
        font-size: 1.2rem;
    }

    .vacancy-details h1 {
        font-family: Montserrat, sans-serif;
        font-size: 1.8rem;
    }

    .form-control, .form-select {
        font-family: Roboto, sans-serif;
        font-size: 12px;
    }

    .btn-primary, .btn-secondary, .btn-success, .btn-danger {
        font-family: Montserrat, sans-serif;
        padding: 8px 15px;
        font-size: 12px;
    }

    .salary-highlight {
        font-family: Montserrat, sans-serif;
        font-size: 1.4rem;
    }

    .city-dropdown {
        width: 100%;
    }

    /* Адаптивность формы поиска */
    .row.justify-content-center.mb-4 {
        padding: 0 10px;
    }

    .input-group .form-control {
        font-family: Roboto, sans-serif;
        width: 80%;
    }

    .input-group .btn-primary {
        font-family: Montserrat, sans-serif;
        width: 20%;
    }

    /* Адаптивность плашек */
    .badge-container {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        margin-top: 5px;
    }

    .badge {
        font-family: Montserrat, sans-serif;
        flex: 0 0 auto;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Контейнер для плашек в карточках */
.card-body .badge-container {
    margin-left: 0;
}