@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

body {
    margin: 0;
    padding: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.top-bar {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.top-bar-content {
    width: 80%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    justify-content: space-between;
    max-width: 1400px;
}

.logo {
    margin-right: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width:64px;
    height:40px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.logo img:hover {
    filter: drop-shadow(0 6px 12px rgba(79, 70, 229, 0.4));
}

.menu {
    position: relative;
}

.menu-item {
    cursor: pointer;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 15px;
    border-radius: 12px;
    padding-right: 8px;
    padding-left: 8px;
    padding-bottom: 2px;
    padding-top:2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.menu-item:hover {
    transform: translateY(-2px);
    background-color: rgba(79, 70, 229, 0.1);
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.3), inset 0 0 20px rgba(79, 70, 229, 0.2);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: rgba(15, 15, 35, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px;
    border-radius: 16px;
    z-index: 1001;
    min-width: 280px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: dropdownFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#account-dropdown-menu {
    right: 0;
    left: auto;
    min-width: 220px;
}

.dropdown-item {
    padding: 16px 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 12px;
    font-family: "Inter", sans-serif;
    margin-bottom: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(124, 58, 237, 0.2));
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
}

.dropdown-item:hover .arrow {
    transform: translateX(4px);
    color: #a78bfa;
}

.title-subtitle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.title {
    font-size: 15px;
    font-weight: 600;
    color: white;
}

.subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.arrow {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-container {
    margin-left: auto;
}

#login-button {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

#login-button:hover {
    background: linear-gradient(135deg, #5b52e8, #8b46eb);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

#login-button:active {
    transform: translateY(0);
}

.login-popup {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.login-popup-content {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    margin: 15% auto;
    padding: 32px;
    width: 320px;
    border-radius: 20px;
    font-family: "Inter", sans-serif;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.close {
    color: rgba(255, 255, 255, 0.7);
    float: right;
    font-size: 28px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.close:hover,
.close:focus {
    color: #f87171;
    text-decoration: none;
    cursor: pointer;
    transform: scale(1.1);
}

.topbar {
    width: 100%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar a {
    color: white;
    text-decoration: none;
    padding: 0 10px;
    transition: all 0.3s ease;
}

.topbar a:hover {
    color: #a78bfa;
}

.external-links {
    display: flex;
    align-items: center;
    margin-left: 12px;
}

.ext-separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 12px 0 0;
    font-weight: 300;
    font-size: 16px;
    user-select: none;
}

.ext-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 8px;
    border-radius: 8px;
}

.ext-link:hover {
    color: #66B2FF;
    background-color: rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3), inset 0 0 20px rgba(79, 70, 229, 0.2);
}

.ext-link:hover img {
    transform: scale(1.05);
}

#account-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

#account-menu-item img {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#account-menu-item:hover img {
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.3), inset 0 0 20px rgba(79, 70, 229, 0.2);
    transform: scale(1.25);
}

@media (max-width: 1300px){
    .top-bar-content {
        width: 100%;
        padding: 0 16px;
    }

    .dropdown-menu {
        min-width: 260px;
    }

    #account-dropdown-menu {
        min-width: 200px;
    }
}

@media (max-width: 1079px) {
    .top-bar-content {
        width: 100%;
        padding: 0 16px;
    }

    .ext-link img {
        display: none;
    }

    .dropdown-menu {
        min-width: 260px;
    }

    #account-dropdown-menu {
        min-width: 200px;
    }
}

@media(max-width: 900px){

    .external-links{
        display:none;
    }
}

@media (max-width: 768px) {
    
    .top-bar-content {
        padding: 0 12px;
    }

    .logo {
        font-size: 20px;
        margin-right: 12px;
    }

    .menu-item {
        padding: 10px 16px;
        font-size: 14px;
    }

    .dropdown-menu {
        min-width: 240px;
        left: -50px;
    }

    #account-dropdown-menu {
        min-width: 180px;
        right: -20px;
    }
}