/* Header Bar New Styles */

.mod-skin-dark:not(.mod-skin-light) {
    background-color: #121031;
}
.mod-skin-dark .indications-top-header {
    background-color: rgb(18 16 49 / 80%) !important;
    border-bottom: 1px solid #29274d;
}
@media (min-width: 1024px) {
    .nav-function-top .page-content-wrapper {
        margin-top: 48px;
    }
}
/* Hide the default sidebar logic if it interferes */
.page-sidebar, header.page-header {
    display: none !important;
}

/* Adjust page content wrapper to account for fixed header */
.page-content-wrapper {
    margin-left: 0 !important;
}

/* Fix for body padding if needed */
body {
    padding-top: 0 !important;
}

.header-new-container  .stocksearchInput {
    width: 160px;
}
.header-new-container .header-nav ul li {
    margin-right: 44px;
}

@media (max-width: 1300px) {
    .header-new-container .header-nav ul li {
        margin-right: 32px;
    }
}
@media (max-width: 1024px) {
    .header-new-container .header-nav ul li {
        margin-right: 24px;
    }
}


@media (min-width: 1300px) {
    .nav-function-top .page-content-wrapper {
        margin-top: 98px;
    }
    .header-new-container  .stocksearchInput {
        width: 180px;
    }

}
@media (min-width: 1024px) {
    .nav-function-top .page-content-wrapper {
        margin-top: 98px;
    }

}

.header-new-nav-link {
    color: #A7A7B8 !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 14px;
    white-space: nowrap;
}

.header-new-nav-link:hover, .header-new-nav-link.active {
    color: #FFFFFF !important;
}

.header-new-nav-link.active i, .header-new-nav-link.active span, .header-new-nav-link.active svg {
    color: #37e3a3; /* Goldesel Green */

}
.header-new-nav-link i, .header-new-nav-link svg {
   margin-right: 7px;
}
#nachrichtencenter-lg-gt  {
    position: relative;
}
#nachrichtencenter-lg-gt .badge-icon {
z-index: 2000;
}
/* Submenu Styles */
.header-nav-item-with-submenu {
    position: relative;
}

.header-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background-color: #121031;
    border-radius: 8px;
    box-shadow: 0 12px 12px rgba(0, 0, 0, 0.3);
    list-style: none;
    padding: 8px 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1000;
}

.header-nav-item-with-submenu:hover .header-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-submenu li {
    margin-right: 0 !important;
}

.header-submenu-link {
    display: block;
    padding: 10px 20px;
    color: #A7A7B8 !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s, background-color 0.2s;
}

.header-submenu-link:hover {
    color: #FFFFFF !important;
    background-color: rgba(255, 255, 255, 0.05);
}

.premium-crown-icon {
    color: #ffc107 !important;
    margin-left: 6px;
    font-size: 12px;
}

.header-new-container {
    background-color: #121031;
    height: 68px;
    z-index: 2000; /* High z-index to stay on top */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    top:30px;
}

.header-new-content {
    max-width: 1800px;
    width: 100%;
    padding: 0 32px;
}

.search-input-custom::placeholder {
    color: #888;
}



.mobile-menu-overlay {
    display: none;
}

/* Mobile Menu Styles */
@media only screen and (max-width: 1023px) {
    .header-new-container {
        padding: 0 16px;
    }
    .header-new-content {
        padding: 0 0px;
    }
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border: none;
        cursor: pointer;
        margin-left: 10px;
    }

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #121031;
        z-index: 3000;
        display: flex;
        flex-direction: column;
        padding: 20px;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    }

    .mobile-menu-overlay.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
    }

    .mobile-menu-close {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-nav-item {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
        font-size: 16px;
        font-weight: 500;
        text-decoration: none;
        display: flex;
        align-items: center;
    }
    
    .mobile-nav-item i, .mobile-nav-item svg {
        width: 24px;
        text-align: center;
        margin-right: 15px;
    }
    
    .mobile-nav-item:last-child {
        border-bottom: none;
    }

    .mobile-nav-item.active {
        color: #37e3a3;
    }
    
    .premium-badge-mobile {
        color: #ffc107; 
        margin-bottom: 20px; 
        font-weight: bold; 
        display: flex; 
        align-items: center;
    }
    
    .btn-subscribe-mobile {
        background-color: #37e3a3;
        color: #121031;
        border: none;
        border-radius: 20px;
        padding: 10px 20px;
        font-weight: bold;
        width: 100%;
        margin-bottom: 20px;
    }
}
