.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1vh 2vh;
    background-color: aliceblue;
    color: black;
    width: auto;
    height: auto;
    user-select: none;
    white-space: nowrap;
    position: relative;

    border-bottom: 0.5vh solid transparent;
    border-image: linear-gradient(to right, #1e00e1 0%, #1e00e1 25%, #fe0000 50%, #e4680a 75%, #e4680a 100%) 1;
    z-index: 500;
}

.logo {
    flex: 1;
}

.logo a {
    display: inline-flex;
    vertical-align: middle;
}

.logo img {
    height: 10vh;
    width: auto;
}

.tabs {
    display: flex;
    font-size: 3.5vh;
    gap: 0px 2vw;
}

.notification-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

/* Bell Button */
.notification-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.bell-icon {
    width: 2.8vh;
    height: 2.8vh;
    min-width: 22px;
    min-height: 22px;
    color: #333;
    transition: transform 0.2s ease;
}

.notification-btn:hover .bell-icon {
    transform: scale(1.1);
}

/* Red Unread Badge Dot */
.unread-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 10px;
    height: 10px;
    background-color: #fe0000;
    border-radius: 50%;
    border: 2px solid aliceblue;
    display: none;
}

.unread-dot.active {
    display: block;
}

/* Dropdown Menu */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 320px;
    max-height: 400px;
    background-color: aliceblue; /* Matches navbar theme */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: 1px solid #d0e1f9;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 1000;
    overflow: hidden; /* Fixes bottom-most item clipping through round edges */
}

.notification-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Header inside dropdown */
.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    font-weight: bold;
    font-size: 14px;
    border-bottom: 1px solid #d0e1f9;
    color: #333;
}

.mark-all-read {
    background: none;
    border: none;
    color: #1e00e1;
    font-size: 12px;
    cursor: pointer;
}

.mark-all-read:hover {
    text-decoration: underline;
}

/* List container */
.notification-list {
    overflow-y: auto;
    max-height: 330px;
}

/* Notification Item */
.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    color: inherit;
    white-space: normal;
}

/* Fixes sharp edges penetrating round corners on hover */
.notification-item:first-of-type {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.notification-item:last-child {
    border-bottom: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.notification-item:hover {
    background-color: #dbeaff; /* Soft hover matching aliceblue */
}

.notification-item.unread {
    background-color: #edf2ff;
}

.notification-item.unread:hover {
    background-color: #dbeaff;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

.notification-message {
    font-size: 12px;
    color: #555;
    line-height: 1.4;
}

.notification-time {
    font-size: 10px;
    color: #888;
    margin-top: 2px;
}

.no-notifications {
    padding: 20px 16px; /* Added horizontal padding to match items */
    text-align: center;
    color: #666;
    font-size: 13px;
}

/* Mobile responsiveness adjustments */
@media screen and (max-width: 900px) {
    .notification-wrapper {
        flex: 0;
    }

    .notification-dropdown {
        position: fixed;
        top: 70px;
        left: 5% ;
        right: 5%;
        width: 90%;
        margin: 0 auto;
    }
}

/* Hamburger Icon Styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 10;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: black;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger Animation when Active */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Responsiveness & Smooth Animation */
@media screen and (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    .tabs {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: aliceblue;
        align-items: center;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
        border-top: 1px solid #d0e1f9;

        /* Smooth transition properties */
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transition: max-height 0.50s ease-in-out, opacity 0.45s ease-in-out, padding 0.45s ease-in-out;
        padding: 0 2vh;
    }

    .tabs.active {
        max-height: 600px;
        opacity: 1;
        pointer-events: auto;
    }

    .tabs a {
        width: 100%;
        text-align: center;
        padding: 1.5vh 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

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

    .lang-selection {
        flex: 0;
    }
}