.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    background: #0f141a;
    color: #ffffff;
    box-shadow: 0 20px 20px rgba(0, 0, 0, 0.4);
    padding: 0 3vw;
    height: 8vh;
    border-radius: 0 0 20px 20px;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    height: 100%;
}

.navbar-brand {
    position: relative;
    top: 1vh;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
}

.logo {
    width: max(90px, 7vw);
    height: auto;
    display: block;
}

.logo:hover{
    transform: scale(1.03);
    filter: brightness(1.1);
}

.navbar-icons {
    position: relative;
    display: flex;
    align-items: center;
    gap: max(16px, 1.5vw);
}

#guideIcon:focus-visible {
    outline: 2px solid #69b7ff;
    outline-offset: 2px;
}

.nav-icon {
    width: max(35px, 2vw);
    height: max(35px, 2vw);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s ease;
}

.profile-icon-wrap {
    width: max(40px, 2.25vw);
    height: max(40px, 2.25vw);
    flex: 0 0 max(40px, 2.25vw);
    border-radius: 50%;
    overflow: hidden;
}

.profile-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.7);
    object-position: 30% 0%;
}

.nav-button {
    width: max(70px, 5vw);
    height: max(35px, 2.5vw);
    display: flex;
    border-radius: 1vh;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background-color: #236bbd;
    font-size: max(15px, 1vw);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.profile-icon:hover,
.nav-icon:hover {
    filter: brightness(1.10);
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-button:hover,
.profile-button:hover{
    filter: brightness(1.10);
    transition: all 0.2s ease;
}

.profile-menu {
    position: relative;
}

.profile-container {
    position: relative;
    display: inline-block;
}

.profile-dropdown {
    position: absolute;
    top: 80%;
    left: 0;
    right: 0;
    border-radius: 0 0 12px 12px;
    background: linear-gradient(180deg, #1a1f2e 0%, #131a24 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    padding: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.profile-dropdown.open {
    opacity: 1;
    max-height: 200px;
    padding-top: 1vh;
}

.profile-dropdown-item {
    display: block;
    padding: 12px 16px;
    color: #eef3fb;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.15s ease;
}

.profile-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.profile-dropdown-danger:hover {
    background: rgba(255, 90, 90, 0.12);
    color: #ffb8be;
}