/* Стилі для Navbar */
.fixed-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    color: #333;
    padding: 10px 20px;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    flex-wrap: nowrap;
}

.navbar-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-title {
    margin-right: 20px;
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
}

.sidebar-toggle {
    background-color: #f0f0f0;
    color: #333;
    border: none;
    padding: 10px;
    cursor: pointer;
    white-space: nowrap;
    margin-left: 10px; /* Відстань від navbar-title */
}

.navbar-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}

.notifications-button {
    background-color: #f0f0f0;
    color: #333;
    border: none;
    padding: 10px;
    margin-right: 10px; /* Відстань від основного елемента */
    cursor: pointer;
    white-space: nowrap;
}

.user-menu {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.user-menu-button {
    background-color: #f0f0f0;
    color: #333;
    border: none;
    padding: 10px;
    cursor: pointer;
    white-space: nowrap;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 150px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    white-space: nowrap;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #e0e0e0;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f0f0f0;
}

.user-menu.show .dropdown-content {
    display: block;
}

.no-link-style {
    text-decoration: none;
    color: inherit;
}

.notifications-wrapper {
    position: relative;
    display: inline-block;
}
.notifications-dropdown {
    display: none;
    position: absolute;
    right: 0;
    background-color: #f9f9f9;
    min-width: 250px;
    max-width: 300px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    padding: 10px;
    white-space: normal;
    word-wrap: break-word;
}
.notifications-dropdown.show {
    display: block;
}

.notification-item {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}
.notification-item a {
    color: #333;
}
.notification-item:last-child {
    border-bottom: none;
}

/* Мобільна адаптивність */
@media (max-width: 768px),
       (max-width: 820px),
       (max-width: 864px),
       (max-width: 960px),
       (max-width: 1152px) {
    .navbar-left, .navbar-right {
        flex-grow: 0;
        justify-content: flex-start; /* Зберігаємо елементи в одній лінії */
    }

    .navbar-title {
        font-size: 16px;
    }

    .sidebar-toggle, .notifications-button, .user-menu-button {
        padding: 8px;
        font-size: 14px;
    }

    .notifications-button, .user-menu-button {
        margin-right: 10px; /* Відстань між кнопками */
    }

    .user-menu-button {
        width: auto;
        text-align: left;
    }

    .dropdown-content a {
        padding: 10px 12px;
    }
}
