/* =========================================================
   ERP PREMIUM HEADER CSS
========================================================= */

:root{
    --erp-primary: rgb(40, 110, 176);
    --erp-primary-light: rgb(54, 135, 212);
    --erp-text: #111827;
    --erp-white: #ffffff;
}

/* =========================================================
   HEADER
========================================================= */

.erp-header{
    position: fixed;
    top: 18px;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 0 20px;
    transition: 0.4s ease;
}

.erp-header-container{
    max-width: 1280px;
    margin: auto;
}

/* =========================================================
   HEADER WRAP
========================================================= */

.erp-header-wrap{
    min-height: 88px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(18px);
    border-radius: 100px;
    padding: 0 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(40,110,176,0.08);
    box-shadow: 0 12px 40px rgba(40,110,176,0.08);
    transition: 0.4s ease;
}

/* =========================================================
   STICKY
========================================================= */

.erp-header.sticky .erp-header-wrap{
    min-height: 76px;
    box-shadow: 0 18px 45px rgba(40,110,176,0.12);
}



/* =========================================================
   NAVIGATION
========================================================= */

.erp-navigation{
    display: flex;
    align-items: center;
}

.erp-nav-menu{
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.erp-nav-menu li{
    position: relative;
}

/* =========================================================
   LINKS
========================================================= */

.erp-nav-menu li a{
    position: relative;
    text-decoration: none;
    color: var(--erp-text);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: 0.3s ease;
}

.erp-nav-menu li a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 0%;
    height: 2px;
    background: var(--erp-primary);
    border-radius: 30px;
    transition: 0.3s ease;
}

.erp-nav-menu li a:hover::after,
.erp-nav-menu li a.active::after{
    width: 100%;
}

.erp-nav-menu li a:hover,
.erp-nav-menu li a.active{
    color: var(--erp-primary);
}

/* =========================================================
   DROPDOWN
========================================================= */

.erp-nav-dropdown{
    position: relative;
}

.erp-nav-arrow{
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
}

.erp-nav-arrow i{
    font-size: 11px;
    transition: 0.3s ease;
}

.erp-nav-dropdown:hover .erp-nav-arrow i{
    transform: rotate(180deg);
}

/* =========================================================
   DESKTOP SUBMENU
========================================================= */

.erp-dropdown-menu{
    position: absolute;
    top: 108%;
    left: 0;
    width: 255px;
    background: var(--erp-white);
    border-radius: 18px;
    padding: 10px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.25s ease;
    border: 1px solid rgba(40,110,176,0.08);
    box-shadow: 0 15px 35px rgba(40,110,176,0.10);
    z-index: 999;
}

.erp-nav-dropdown:hover .erp-dropdown-menu{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.erp-dropdown-menu li{
    display: block;
    margin: 0;
    padding: 0;
}

.erp-dropdown-menu li a{
    display: flex;
    align-items: center;
    width: 100%;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--erp-text);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.erp-dropdown-menu li a::after{
    display: none;
}

.erp-dropdown-menu li a:hover{
    background: rgba(40,110,176,0.06);
    color: var(--erp-primary);
    padding-left: 22px;
}

/* =========================================================
   RIGHT SIDE
========================================================= */

.erp-header-actions{
    display: flex;
    align-items: center;
    gap: 14px;
}

/* =========================================================
   BUTTON
========================================================= */

.erp-demo-btn{
    background: linear-gradient(
        135deg,
        var(--erp-primary),
        var(--erp-primary-light)
    );
    color: var(--erp-white);
    text-decoration: none;
    padding: 6px 6px 6px 18px;
    border-radius: 60px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px;
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 10px 25px rgba(40,110,176,0.18);
    transition: all 0.35s ease;
}

.erp-demo-icon{
    width: 34px;
    height: 34px;
    background: var(--erp-white);
    color: var(--erp-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.35s ease;
}

.erp-demo-btn:hover{
    background: linear-gradient(
        135deg,
        #000000,
        #1a1a1a
    );
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.22);
}

.erp-demo-btn:hover .erp-demo-icon{
    background: #ffffff;
    color: #000000;
    transform: rotate(-45deg);
}

/* =========================================================
   MOBILE TOGGLE
========================================================= */

.erp-mobile-toggle{
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.erp-mobile-toggle span{
    display: block;
    width: 27px;
    height: 3px;
    background: var(--erp-primary);
    margin: 5px 0;
    border-radius: 30px;
    transition: 0.3s ease;
}

/* =========================================================
   MOBILE
========================================================= */

@media(max-width:991px){

    .erp-header{
        top: 10px;
        padding: 0 12px;
    }

    .erp-header-wrap{
        min-height: 74px;
        padding: 0 18px;
        border-radius: 22px;
    }

    .erp-header-logo img{
        width: 135px;
    }

    .erp-mobile-toggle{
        display: block;
    }

    /* MOBILE MENU */

    .erp-navigation{
        position: absolute;
        top: 110%;
        left: 0;
        width: 100%;
        background: #ffffff;
        border-radius: 20px;
        padding: 14px;
        display: none;
        border: 1px solid rgba(40,110,176,0.08);
        box-shadow: 0 18px 40px rgba(0,0,0,0.08);
        overflow: hidden;
    }

    .erp-navigation.active{
        display: block;
        animation: erpFadeDown 0.3s ease;
    }

    /* MOBILE MENU LIST */

    .erp-nav-menu{
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .erp-nav-menu li{
        width: 100%;
    }

    .erp-nav-menu li a{
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        padding: 13px 0;
        font-size: 14px;
        border-bottom: 1px solid rgba(40,110,176,0.06);
    }

    /* MOBILE ARROW */

    .erp-nav-arrow{
        margin-left: 6px;
        display: inline-flex;
        align-items: center;
    }

    .erp-nav-arrow i{
        font-size: 10px;
    }

    /* REMOVE BORDER WHEN OPEN */

    .erp-nav-dropdown.active > a{
        border-bottom: none !important;
    }

    .erp-nav-menu li:last-child > a{
        border-bottom: none;
    }

    /* MOBILE SUBMENU */

    .erp-dropdown-menu{
        position: static;
        width: 100%;
        background: rgba(40,110,176,0.04);
        border-radius: 10px;
        padding: 6px;
        margin-top: 6px;
        margin-bottom: 8px;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        box-shadow: none;
    }

    .erp-nav-dropdown.active .erp-dropdown-menu{
        display: block;
    }

    .erp-dropdown-menu li a{
        padding: 10px 12px;
        font-size: 13px;
        border: none !important;
        border-radius: 8px;
        line-height: 1.4;
    }

    .erp-dropdown-menu li a:hover{
        background: rgba(40,110,176,0.08);
        padding-left: 16px;
    }

    .erp-demo-btn{
        display: none;
    }

}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media(max-width:575px){

    .erp-header-wrap{
        padding: 0 14px;
    }

    .erp-header-logo img{
        width: 120px;
    }

}

/* =========================================================
   ANIMATION
========================================================= */

@keyframes erpFadeDown{

    from{
        opacity: 0;
        transform: translateY(-10px);
    }

    to{
        opacity: 1;
        transform: translateY(0);
    }

}

/* =========================================================
   MOBILE BUTTON
========================================================= */

.erp-mobile-btn-wrap{
    display: none;
}

/* MOBILE */

@media(max-width:991px){

    .erp-mobile-btn-wrap{
        display: block;
        margin-top: 16px;
    }

    /* FULL WIDTH BUTTON */

    .erp-mobile-btn-wrap .erp-demo-btn{

        width: 100%;

        justify-content: space-between;

        display: flex;

    }

    /* HIDE TOP BUTTON */

    .erp-header-actions > .erp-demo-btn{
        display: none;
    }

}