﻿/*  BDT CHANGES TO COMMON [me-bootstrap-global.css] and all related to master layout */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #333;
    --primary-dark: #0c0c10;
    --primary-light: #4a4a4a;
    --accent-color: #d0bd36;
    --accent-light: #e0cd46;
    --accent-dark: #b8a629;
    --accent-hover: var(--accent-dark);
    --secondary: #2d3748;
    --secondary-light: #4a5568;
    --text-muted: #666666;
    --border-color: #cccccc;
    --border-light: var(--border-color);
    --background-light: #f8f9fa;
    --white: #ffff;
    --links: #08c;
    --red: #ff2c2c;
    --success: #38a169;
    --warning: #ed8936;
    --danger: #e53e3e;
    --info: #3182ce;
    --surface: #f7fafc;
    --surface-dark: #edf2f7;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-dark: rgba(255, 255, 255, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --border-radius: 4px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: var(--transition);
    --header-height: 60px;
    --primary: var(--primary-color);
}

#m_global_header,
div.m_footer {
    background-color: #1d1d1d;
    min-height: 3rem;
}

    .nav-logo,
    div.m_home a,
    div.m_bdt a {
        height: 30px;
        width: 150px;
        background-image: url('/images/global_header_bdt.png');
    }

#m_content_wrapper {
    min-height: calc(100vh - 10rem);
}

.bar {
    background-color: #b4b4b4;
}
a.nav-link {
    padding: 0.75rem 1rem 0.5rem 1rem;
}
a.nav-login,
a.nav-logoff {
    margin-left: auto;
    color: #58595b;
    height: 30px;
    width: 60px;
    background-position: 0px 0px;
    background-repeat: no-repeat;
    text-indent: -9999px;
}
a.nav-login {
    background-image: url('/images/global/login.png');
}
a.nav-logoff {
    background-image: url('/images/global/logoff.png');
}

    a.nav-login:hover,
    a.nav-logoff:hover {
        color: #b4b4b4;
        background-position: 0px bottom;
    }

a.nav-link,
a.nav-link:link,
a.nav-link:visited {
    color: #b4b4b4;
    text-decoration: none;
    
}

    a.nav-link:hover {
        color: #E00; 
        /*text-decoration: underline;*/
    }


header ul.nav-menu.active {
    padding-top:1px;
}


#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background-color: #0077b6; /* flat blue */
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

    #btn-back-to-top.show {
        opacity: 1;
        visibility: visible;
    }

    #btn-back-to-top:hover {
        background-color: #005f8e; /* slightly darker on hover */
    }

    #btn-back-to-top i {
        font-size: 18px;
    }

    /* Optional focus style for accessibility */
    #btn-back-to-top:focus {
        outline: 2px solid #fff;
        outline-offset: 2px;
    }

    #btn-back-to-top.at-bottom {
        position: fixed;
    }
    /* Mobile adjustments */
    @media (max-width: 768px) {
        #btn-back-to-top {
        width: 44px;
        height: 44px;
        bottom: 15px;
        right: 15px;
    }

        #btn-back-to-top i {
            font-size: 16px;
        }
}




@media only screen and (max-width: 768px) {
    ul.nav-menu.active a.nav-link,
    ul.nav-menu.active a.nav-link:link,
    ul.nav-menu.active a.nav-link:visited,
    ul.nav-menu.active a.nav-link:hover {
        color: #58595b;
    }
}




div.m_footer_nav {
    margin-right: 0;
}
.footer, 
.footer a:link, 
.footer a:visited {
    color: #b4b4b4;
    text-decoration: none;
}
    .footer a:hover {
        color: #b4b4b4;
        text-decoration: underline;
    }


/*  BDT EXTRAS  */


@media only screen and (max-width: 500px) {
    .flex-xs-column-reverse {
        flex-direction: column-reverse !important;
    }
}

    .sub-navbar-wrapper {
        border-top: 1px solid #4c4c4c;
        background-color: #1d1d1d;
        min-height: 2.5rem;
    }

    .sub-navbar {
        font-size: 0.65rem;
        color: #484848;
        line-height: .8rem;
        font-weight:400;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.2rem 0;
        z-index: 1;
        color: #b4b4b4;
    }

        .sub-navbar a,
        .sub-navbar a:link,
        .sub-navbar a:visited {
            color: #E00;
            text-decoration: none;
            white-space: nowrap;
            margin: 0.3rem;
            display: inline-flex;
            color: #000000;
            border: 1px solid #bbbbbb;
            text-decoration: none;
            padding: 0.3rem;
            height: 100%;
            min-width: 20px;
            width: auto;
            line-height: 1.2rem;
            text-align: center;
            background: #e3e3e3;
            filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee');
            background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));
            background: -webkit-linear-gradient(top, #ffffff, #eeeeee);
            background: -moz-linear-gradient(top, #ffffff, #eeeeee);
            background: -ms-linear-gradient(top, #ffffff, #eeeeee);
            background: -o-linear-gradient(top, #ffffff, #eeeeee);
            background: linear-gradient(top, #ffffff, #eeeeee);
            -webkit-border-radius: 4px;
            -moz-border-radius: 4px;
            -ms-border-radius: 4px;
            -o-border-radius: 4px;
            border-radius: 4px;
        }

            .sub-navbar a:hover {
                color: #E00;
                /*text-decoration: underline;*/
            }


        .sub-navbar .nav-tab,
        .sub-navbar .nav-menu {
        }

        .sub-navbar .fa {
            margin-right: 0.25em;
        }

        .sub-navbar em {
            margin: 0.3rem;
            display: inline-block;
            color: #fff;
            padding: 0.25rem;
            height: 100%;
        }

        .sub-navbar .user {
            margin-left: auto;
        }

            .sub-navbar .user a,
            .sub-navbar .nav-tab a {
                white-space: nowrap;
                margin: 0.3rem;
                display: inline-block;
                color: #000000;
                border: 1px solid #bbbbbb;
                text-decoration: none;
                padding: 0.3rem;
                height: 100%;
                min-width: 20px;
                width: auto;
                line-height: 1.2rem;
                text-align: center;
                background: #e3e3e3;
                filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee');
                background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));
                background: -webkit-linear-gradient(top, #ffffff, #eeeeee);
                background: -moz-linear-gradient(top, #ffffff, #eeeeee);
                background: -ms-linear-gradient(top, #ffffff, #eeeeee);
                background: -o-linear-gradient(top, #ffffff, #eeeeee);
                background: linear-gradient(top, #ffffff, #eeeeee);
                -webkit-border-radius: 4px;
                -moz-border-radius: 4px;
                -ms-border-radius: 4px;
                -o-border-radius: 4px;
                border-radius: 4px;
            }

            .sub-navbar .user a {
                margin: 0.3rem 0 0.3rem 0.8rem;
            }


                .sub-navbar .user a.current,
                .sub-navbar .user a.current:hover,
                .sub-navbar .user a.current:focus {
                    color: #e0e0e0;
                    background: #3d3d3d;
                }

        .sub-navbar .nav-tab a.current,
        .sub-navbar .nav-tab a.current:hover,
        .sub-navbar .nav-tab a.current:focus {
            color: #E00;
            background: #fff;
            outline: none;
        }

        .sub-navbar .user a:hover, .sub-navbar .user a:focus, .nav-tab .user a:hover, .sub-navbar .nav-tab a:focus {
            color: #E00;
            background: #fff;
            outline: none;
        }

        .sub-navbar a.disabled {
            opacity: 0.6;
        }

        .sub-navbar div {
            display: inline-block;
        }



    @supports (flex-wrap: wrap) {
        .sub-navbar {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            flex-wrap: nowrap;
        }

        .sub-navbar {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
        }
    }




    #me-nav div.user {
        float: none;
    }
}


    #me-content {
        float: left;
        width: 100%;
        padding: 0 1rem;
        min-height: 1px;
    }
    /*.sub-navbar  div.user {
            float: none;
        }*/



