body {
    font-family: Arial, sans-serif;
   
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    height: 100vh;
    flex-direction: column;
    min-height: 100vh; /* Обеспечивает растяжение на всю высоту экрана */
    height: 100%;
    align-items: center;
}




.main-container {
    
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: 100vh;
    top :100px;
}

.sidebar {
    min-width: 150px;
    max-width: 3000px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    overflow-y: auto;
    height: 100%;
}

.sidebar h3 {
    margin-top: 0;
}

.container {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 93%;
}

.search-container {
    position: relative;
    margin-bottom: 20px;
}

#job-search {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    max-height: 150px;
    overflow-y: auto;
    z-index: 10;
}

.suggestions div {
    padding: 8px;
    cursor: pointer;
}

.suggestions div:hover {
    background-color: #f0f0f0;
}

.detail {
    min-width: none;
    max-width:800px;
    
    max-height: 300px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.detail h3 {
    margin: 0;
    color: #333;
}

.detail p {
    margin: 5px 0;
}

.salary {
    font-weight: bold;
    color: #2ecc71;
}

.city-list {
    max-height: 300px;
    overflow-y: scroll;
    border: 1px solid #ddd;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.no-vacancies {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    color: #333;
}




/* По умолчанию скрываем кнопку на ПК */
.toggle-sidebar {
    display: none;
    position: absolute;
    right: 20px;
    z-index: 1000;
    padding: 10px 15px;
    background-color: #07209c;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Отображаем боковую панель на ПК */
@media (min-width: 768px) {
    .sidebar {
        display: block;
    }
}


/* Скрываем боковую панель и показываем кнопку на мобильных устройствах */
@media (max-width: 767px) {
    .sidebar {
        width:95%;
        display: none;
        position: absolute;
        top: 60;
        left: 0;
        height: 100%;
        z-index: 999;
        background-color: #fff;
    }

    .toggle-sidebar {
        display: block;
    }

    .sidebar.visible {
        display: block;
    }
}


