.navbar-main-container {
    background-color: #f8f9fa;
    background-color: rgba(248, 249, 250);
    padding: 20px 50px;
}

@media only screen and (max-width: 1199px) {
    .navbar-main-container {
        padding: 10px 10px;
    }
}

.mobile-logo {
    max-width: 120px;
    height: auto;
}

.search-bar-main-container {
    position: relative;
}

@media (min-width: 992px) {
    .search-bar-main-container {
        position: relative;
        width: 100%;
        min-width: 300px;
    }
}

.search-bar {
    display: flex;
    position: relative;
    align-items: center;
}

.search-bar input {
    color: #8a8a8a;
}

.search-bar input::placeholder {
    color: #a8a8a8;
}

.search-btn {
    border: none;
}

.search-btn:hover {
    cursor: pointer;
}

.autocomplete-results {
    display: none;
    box-sizing: border-box;
    position: absolute;
    width: auto;
    background-color: white;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.search-bar-main-container:focus-within .autocomplete-results,
.autocomplete-results:hover {
    display: block;
}

.autocomplete-results ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.autocomplete-results li {
    padding: 8px;
    cursor: pointer;
}

.autocomplete-results li:hover {
    background-color: #f8f9fa;
}

.light-text {
    left: 10px;
    opacity: 1;
}

.dark-text {
    right: 10px;
    opacity: 0;
}

.toggle-switch {
    position: relative;
    width: 100px;
    height: 34px;
    border: 2px solid #73B90A;
    border-radius: 20px;
    background-color: white;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-text {
    position: absolute;
    top: 6px;
    left: 35px;
    font-size: 12px;
    color: #73B90A;
    transition: all 0.3s ease;
}

.toggle-handle {
    position: absolute;
    left: 5px;
    top: 3px;
    width: 24px;
    height: 24px;
    background-color: #73B90A;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.navbar-main-container .btn {
    white-space: nowrap;
}

/* dark mode */

body.dark .toggle-switch {
    background-color: #2a2a2a;
}

body.dark .toggle-text {
    content: "🌙";
    left: auto;
    right: 40px;
}

body.dark .toggle-handle {
    left: calc(100% - 29px);
    background-color: #73B90A;
}

body.dark .search-bar-main-container {
    background-color: #1f1f1f;
}

body.dark .search-bar-main-container .form-control {
    background-color: #2a2a2a;
    color: #ffffff;
    border: 1px solid #444;
}

body.dark .search-bar-main-container .form-control::placeholder {
    color: #ffffff;
}

body.dark .search-bar-main-container .search-btn {
    background-color: #333;
    border-color: #444;
}

body.dark .search-bar-main-container .bi-search {
    fill: #ffffff;
}

body.dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,<svg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'><path stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/></svg>");
}