/* Glassmorphism Header Styles */
.common-header {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.common-header .optech-header-top {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.common-header .optech-header-bottom {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 16px 16px;
}

.common-header .optech-header-bottom2 {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.common-header .optech-header-info-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.common-header .optech-header-info ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.common-header .optech-header-info ul li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.common-header .optech-header-info ul li i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.common-header .optech-header-info ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.common-header .optech-header-info ul li a:hover {
    color: rgba(255, 255, 255, 1);
}

.common-header .optech-header-info-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.common-header .cur_lun_login_item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.common-header .cur_lun_login_item span {
    display: flex;
    align-items: center;
}

.common-header .cur_lun_login_item select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    font-size: 14px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.common-header .cur_lun_login_item select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.common-header .cur_lun_login_item select option {
    background: rgba(0, 0, 0, 0.8);
    color: rgba(255, 255, 255, 0.9);
}

.common-header .login-btn {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.common-header .login-btn:hover {
    color: rgba(255, 255, 255, 1);
}

.common-header .site-navbar {
    padding: 20px 0;
}

.common-header .brand-logo img {
    max-height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.common-header .optech-header-icon {
    display: flex;
    align-items: center;
    gap: 15px;
}

.common-header .optech-header-search {
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.common-header .optech-header-search:hover {
    color: rgba(255, 255, 255, 1);
}

.common-header .optech-header-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.common-header .optech-header-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.common-header .mobile-menu-trigger {
    display: none;
}

.common-header .mobile-menu-trigger span,
.common-header .mobile-menu-trigger span::after,
.common-header .mobile-menu-trigger span::before {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Sticky menu styles */
.common-header.sticky-menu {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    margin: 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.common-header.sticky-menu .optech-header-top {
    margin-top: -57px;
    opacity: 0;
}

/* Responsive styles */
@media (max-width: 991px) {
    .common-header {
        margin: 10px;
    }
    
    .common-header .optech-header-top {
        display: none;
    }
    
    .common-header .optech-header-bottom {
        padding: 15px 0;
    }
    
    .common-header .optech-header-bottom2 {
        padding: 0 15px;
    }
    
    .common-header .mobile-menu-trigger {
        display: block;
    }
    
    .common-header .optech-header-icon {
        gap: 10px;
    }
    
    .common-header .optech-header-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .common-header {
        margin: 5px;
    }
    
    .common-header .optech-header-bottom2 {
        padding: 0 10px;
    }
    
    .common-header .brand-logo img {
        max-height: 40px;
    }
    
    .common-header .optech-header-btn {
        display: none;
    }
}

/* Dark theme compatibility */
.dark-theme .common-header {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.05);
}

.dark-theme .common-header .optech-header-top {
    background: rgba(0, 0, 0, 0.2);
}

.dark-theme .common-header .optech-header-bottom {
    background: rgba(0, 0, 0, 0.1);
}

/* Animation for header appearance */
.common-header {
    animation: headerSlideDown 0.6s ease-out;
}

@keyframes headerSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects for interactive elements */
.common-header .optech-header-search,
.common-header .optech-header-btn,
.common-header .login-btn {
    position: relative;
    overflow: hidden;
}

.common-header .optech-header-search::before,
.common-header .optech-header-btn::before,
.common-header .login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.common-header .optech-header-search:hover::before,
.common-header .optech-header-btn:hover::before,
.common-header .login-btn:hover::before {
    left: 100%;
}
