/*------------------------------------------------------------------------
# mod_header_bar - Header Notification Bar
# ------------------------------------------------------------------------
# author    Infyways Solutions
# copyright Copyright (C) 2024 Infyways Solutions. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://www.infyways.com
# Technical Support:  Forum - http://support.infyways/com
-------------------------------------------------------------------------*/

/* Base styles */
.jx-header-notification {
    line-height: 1.5;
    position: fixed;
    left: 0;
    z-index: 10500;
    width: 100%;
    display: none;
    transition: all 0.5s ease 0s;
    box-sizing: border-box;
}

.jx-header-notification * {
    box-sizing: border-box;
}

.jx-headerTop {   
    top: 0;
}

.jx-headerBottom {   
    bottom: 0;
}

/* Content layout */
.jx-hnb_content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.jx-hnb_message {
    flex-grow: 1;
}

/* Button container */
.jx-hnb_button {
    display: flex;
    align-items: center;
}

.jx-hnb_close {
    margin-left: auto;
}

/* Close button styles */
.jx-close-notify {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: inherit !important;
    font-size: 16px;
    margin-left: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jx-close-notify:hover {
    background-color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

/* Button styles */
a.jx-hnbc_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    line-height: 1.5;
    box-sizing: border-box;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

a.jx-hnbc_button:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

a.jx-hnbc_button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Position modifiers */
.jx-header-notification.jx-headerPushed {
    position: relative;
    display: block;
}

/* Responsive styles */
@media only screen and (max-width: 767px) {
    .jx-header-notification {
        padding-right: 15px !important;
        padding-left: 15px !important;
    }
    
    .jx-hnb_content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .jx-hnb_button {
        justify-content: center;
        margin-top: 10px;
    }
    
    a.jx-hnbc_button {
        width: 100%;
    }
    
    .jx-hnb_close {
        position: absolute;
        top: 10px;
        right: 10px;
        margin-left: 0;
    }
}

/* Animation effects */
@keyframes jx-bounce-in {
    0% { transform: translateY(-20px); opacity: 0; }
    60% { transform: translateY(5px); opacity: 1; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes jx-slide-down {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(0); }
}

@keyframes jx-slide-up {
    0% { transform: translateY(100%); }
    100% { transform: translateY(0); }
}