/* 
    Author of this APU SFF 2.0 Website/Project/System/Maintainer: Khoo Lay Bin TP083872 (https://khoolb.com), Khoo Lay Yang TP070513 (https://www.dkly.net)
    Date: 2025-11-5
    Description: - Style for student navigation bar
                 - Mobile bottom nav
                     - bottom nav
                     - top logo and notifications btn
                 - Desktop top fixed nav
                     - top fixed nav with acc modal
*/

body {
    overflow-x: hidden;
    padding-top: 75px;
    padding-bottom: 100px;
    max-width: 100%;
    width: 100%;
    margin: 0px;
    position: relative;
}

@media (min-width: 700px) {
    body {
        padding-top: 0px;
        padding-bottom: 0px;
    }

    .main-content {
        padding-top: 65px;
    }
}

.desktop-nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: none;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    z-index: 1000;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.desktop-nav-container.scrolled {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.75));
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.desktop-nav-logo {
    height: 40px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.desktop-nav-logo img {
    height: 30px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 15px rgba(0, 0, 0, 0.8));
    transition: filter 0.3s ease;
}

.desktop-nav-container.scrolled .desktop-nav-logo img {
    filter: none;
}

.desktop-nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.desktop-search-bar {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0 15px;
    border-radius: 100px;
    width: 320px;
    height: 43px;
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px) saturate(180%);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 30px rgba(255, 255, 255, 0.2);
}

.desktop-search-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    pointer-events: none;
}

.desktop-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-family: inherit;
    min-width: 60px;
    position: relative;
    z-index: 1;
}

.desktop-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.desktop-search-input:focus {
    color: #ffffff;
}

.desktop-search-btn {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.desktop-search-btn .search-icon {
    width: 18px;
    height: 18px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.desktop-search-btn .search-text {
    display: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.desktop-search-bar:hover .search-icon,
.desktop-search-bar:focus-within .search-icon {
    display: none;
}

.desktop-search-bar:hover .search-text,
.desktop-search-bar:focus-within .search-text {
    display: block;
    color: #ffffff;
}

.desktop-search-bar:hover .search-text::before,
.desktop-search-bar:focus-within .search-text::before {
    content: '|  ';
    opacity: 0.4;
}

.desktop-nav-main {
    display: flex;
    align-items: center;
    padding: 4px 6px;
    border-radius: 50px;
    gap: 2px;
    height: 36px;
    position: relative;
    overflow: hidden;
}

.desktop-nav-btn {
    background: transparent;
    border: none;
    padding: 6px 12px;
    border-radius: 25px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    position: relative;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
    box-sizing: border-box;
}

.desktop-nav-btn img {
    width: 18px;
    height: 18px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.desktop-nav-btn span {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.desktop-nav-btn:hover img {
    opacity: 1;
}

.desktop-nav-btn:hover span {
    color: #ffffff;
}

.desktop-nav-btn.active {
    height: 37px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1), inset 0 1px 3px rgba(255, 255, 255, 0.1);
}

.desktop-nav-btn.active img {
    opacity: 1;
}

.desktop-nav-btn.active span {
    color: #ffffff;
}

.desktop-notification-btn {
    background: transparent;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    text-decoration: none;
    box-sizing: border-box;
}

.desktop-notification-btn img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.desktop-notification-btn:hover img {
    opacity: 1;
}

.desktop-account-btn {
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all 0.2s ease;
    padding: 0;
    overflow: hidden;
    flex-shrink: 0;
    text-decoration: none;
    box-sizing: border-box;
}

.desktop-account-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.nav-icon {
    filter: invert(1);
    opacity: 0.6;
}

.mobile-nav-bottom {
    position: fixed;
    bottom: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    z-index: 1000;
}

.mobile-nav-main {
    flex: 1;
    max-width: 100%;
    border-radius: 100px;
    padding: 10px 6px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.mobile-nav-search {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.mobile-nav-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    z-index: 1000;
}

.mobile-nav-notification {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.mobile-nav-btn {
    background: transparent;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-decoration: none;
    font-family: inherit;
    box-sizing: border-box;
}

.mobile-nav-btn img {
    width: 22px;
    height: 22px;
    position: relative;
    z-index: 1;
}

.mobile-nav-btn span {
    font-size: 12px;
    margin-top: 4px;
    font-weight: 600;
    color: #ffffff;
}

.mobile-search-btn {
    width: 55px;
    height: 55px;
}

.mobile-search-btn img {
    width: 25px;
    height: 25px;
}

.mobile-notification-btn {
    width: 50px;
    height: 50px;
}

.mobile-notification-btn img {
    width: 22px;
    height: 22px;
}

.mobile-nav-logo {
    height: 50px;
    display: flex;
    align-items: center;
}

.mobile-nav-logo img {
    height: 35px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 15px rgba(0, 0, 0, 0.8));
}

@media (min-width: 700px) {
    .desktop-nav-container {
        display: flex;
    }

    .mobile-nav-bottom,
    .mobile-nav-top {
        display: none;
    }
}