﻿/* Title Bar Styles */
.title-bar {
    background-color: #ffffff;
    padding: 20px 0;
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
}

    .title-bar .contained-width {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 30px;
    }

    /* Logo Section in Title Bar */
    .title-bar .logo {
        flex-shrink: 0;
    }

    .title-bar .img-logo {
       /* height: 50px;*/
        width: auto;
        display: block;
    }

/* Breadcrumbs/Title Section */
#breadcrumbs {
    flex: 1;
    padding-left: 20px;
}

    #breadcrumbs h1 {
        color: #2c3e50;
        margin: 0;
        font-size: 32px;
        font-weight: 400;
        font-family: Arial, sans-serif;
        line-height: 1.2;
    }

    /* Add "BOARD PORTAL" label above the title */
    #breadcrumbs::before {
        content: "BOARD PORTAL";
        display: block;
        font-size: 11px;
        color: #003366;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 5px;
    }

/* Search Panel Styles */
.searchPanel {
    flex-shrink: 0;
    min-width: 350px;
}

    .searchPanel > div[role="presentation"] {
        width: 100%;
    }

    .searchPanel .row {
        display: flex;
        align-items: stretch;
        background-color: #004b87;
        border-radius: 30px;
        overflow: hidden;
        /*box-shadow: 0 2px 8px rgba(0, 75, 135, 0.3);*/
        border: solid 3px #004b87;
    }

        .searchPanel .row > div:first-child {
            display: flex;
            align-items: center;
            flex: 1;
            position: relative;
        }

    /* Search Label */
    .searchPanel label {
        position: absolute;
        left: -9999px;
    }

    /* Search Input */
    .searchPanel .tbSearch {
        flex: 1;
        border: none;
        padding: 14px 24px;
        font-size: 16px;
        color: #004b87!important;
        outline: none;
        background-color: #fff;
        font-weight: 300;
    }

        .searchPanel .tbSearch::placeholder {
            color: rgba(255, 255, 255, 0.8);
        }

        .searchPanel .tbSearch:focus {
            color: #ffffff;
        }

    /* Search Button */
    .searchPanel button {
        background-color: transparent;
        border: none;
        padding: 0 20px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s;
        position: relative;
    }

        .searchPanel button::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 1px;
            height: 24px;
            background-color: rgba(255, 255, 255, 0.3);
        }

        .searchPanel button:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        .searchPanel button img {
            width: 20px;
            height: 20px;
            filter: brightness(0) invert(1);
        }

        .searchPanel button i {
            display: flex;
            align-items: center;
            justify-content: center;
        }

/* Mobile Styles */
@media (max-width: 992px) {
    .title-bar {
        padding: 15px 0;
    }

        .title-bar .contained-width {
            flex-direction: column;
            gap: 15px;
            align-items: stretch;
        }

        .title-bar .logo {
            order: 1;
            text-align: center;
        }

        .title-bar .img-logo {
            height: 45px;
        }

    .searchPanel {
        order: 2;
        min-width: auto;
        width: 100%;
        max-width: 100%;
    }

    #breadcrumbs {
        order: 3;
        padding-left: 0;
        text-align: center;
    }

        #breadcrumbs::before {
            font-size: 10px;
        }

        #breadcrumbs h1 {
            font-size: 24px;
        }
}

@media (max-width: 576px) {
    .title-bar .contained-width {
        padding: 0 15px;
    }

    .title-bar .img-logo {
        height: 40px;
    }

    .searchPanel .tbSearch {
        padding: 12px 18px;
        font-size: 14px;
    }

    .searchPanel button {
        padding: 0 15px;
    }

    #breadcrumbs h1 {
        font-size: 20px;
    }
}
