/* TopBar Component - Based on Figma Design */
.topbar-container {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 10px 60px;
    position: relative;
    width: 100%;
    background: #ffffff;
}

.topbar-navbar {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    position: relative;
    flex-shrink: 0;
    width: 100%;
}

.topbar-logo {
    height: 22px;
    position: relative;
    flex-shrink: 0;
    width: 165px;
}

.topbar-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.topbar-nav {
    flex-basis: 0;
    background: #f8f8f8;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    align-items: center;
    justify-content: space-between;
    max-width: 500px;
    min-height: 1px;
    min-width: 1px;
    overflow: hidden;
    padding: 16px 32px;
    position: relative;
    border-radius: 50px;
    flex-shrink: 0;
    font-size: 16px;
    line-height: 0;
    text-align: left;
    white-space: nowrap;
}

.topbar-nav-link {
    font-family: 'Epilogue', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: normal;
    position: relative;
    flex-shrink: 0;
    color: #061c3d;
    text-align: left;
    white-space: pre;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.topbar-nav-link:hover {
    color: #1649ff;
    background: rgba(22, 73, 255, 0.1);
}

.topbar-nav-link.active {
    font-family: 'Epilogue', sans-serif;
    font-weight: 600;
    color: #1649ff;
}

.topbar-button {
    background: #1649ff;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: center;
    max-width: 300px;
    padding: 0 32px;
    position: relative;
    border-radius: 7px;
    flex-shrink: 0;
    height: 48px;
    text-transform: capitalize;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 48px;
    color: #ffffff;
    text-align: center;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.topbar-button:hover {
    background: #0b63e5;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 73, 255, 0.3);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background: #061c3d;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .topbar-container {
        padding: 10px 40px;
    }
    
    .topbar-nav {
        max-width: 400px;
        padding: 12px 24px;
    }
}

@media (max-width: 768px) {
    .topbar-container {
        padding: 10px 20px;
    }
    
    .topbar-navbar {
        position: relative;
    }
    
    .topbar-nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 0;
        max-width: none;
        margin: 0;
        z-index: 999;
    }
    
    .topbar-nav.active {
        display: flex;
    }
    
    .topbar-nav-link {
        padding: 12px 16px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .topbar-nav-link:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .topbar-button {
        display: none;
    }
    
    .topbar-logo {
        width: 140px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .topbar-container {
        padding: 8px 16px;
    }
    
    .topbar-logo {
        width: 120px;
        height: 16px;
    }
    
    .mobile-menu-toggle {
        width: 20px;
        height: 20px;
    }
}