
    :root {
        --primary-color: {{ $themeColors['primary'] ?? '#20246b' }};
        --secondary-color: {{ $themeColors['secondary'] ?? '#ebf5ff' }};
        --tertiary-color: {{ $themeColors['tertiary'] ?? '#ffcf01' }};
    }

    a.nav-link.active.search-book {
        border-bottom: 3px solid white;
        border-radius: 2px;
    }

    .table_search tr th {
        color: var(--primary-color);
    }

    .table_search tr {
        border-bottom: 1px solid var(--primary-color);
    }

    span.input-group-text {
        background: var(--primary-color);
        color: white;
    }

    a {
        color: var(--primary-color);
        transition: 0.2s ease-in-out;
    }

    a:hover {
        color: #4A6F27;
    }

    .table-responsive {
        border: 1px solid var(--primary-color);
        border-radius: .6rem;
        margin-bottom: 2rem;
    }

    #prevPage,
    #nextPage {
        border: 1px solid #4A6F27;
        color: rgb(29, 56, 1);
        transition: 0.2s ease-in-out;
    }

    #prevPage:hover,
    #nextPage:hover {
        background: #4A6F27;
        color: white;
    }

    .container.mt-4 {
        max-width: 93vw;
    }

    #searchForm {
        display: flex;
        width: 100%;
    }

    tbody>tr>td:nth-of-type(3) {
        cursor: pointer;
        transition: 0.1s ease-in-out;
    }

    tbody>tr>td:nth-of-type(3):hover {
        text-decoration: underline;
        color: var(--primary-color);
    }

    .container.dis-container.active {
        display: flex;
    }

    .container.dis-container {
        position: fixed;
        top: 0;
        left: 0;
        max-width: 100vw;
        height: 100vh;
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: rgba(12, 13, 46, 0.66);
        background-size: cover;
        z-index: 1000;
    }

    .material-container {
        background-color: white;
        width: 80%;
        max-height: 100vh;
        height: 80%;
        padding: 2.5rem;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        flex-direction: column;
        border-radius: 2rem;
    }

    .material-container h2 {
        font-weight: 400;
        font-size: 2rem;
    }

    .material-innercontainer {
        display: flex;
        justify-content: space-around;
        width: 100%;
        position: relative;
        top: 1rem;
        align-items: center;


    }

    div.bookImage {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 22rem;


    }

    div.bookImage img {
        height: 100%;
        position: relative;
        z-index: 2;
    }

    .circle {
        width: 10rem;
        height: 10rem;
        background-color: #D9D9D9;
        position: absolute;

        border-radius: 50%;
        display: flex;
        z-index: 1;
    }

    .material-info h3 {
        font-size: 1rem;
        font-weight: 400;
    }

    .material-details .title {
        margin-bottom: 1rem;
        font-weight: 700;
        font-size: 2rem;
    }

    .material-details {
        width: 50%;
    }

    .mat-container {
        display: flex;
        align-items: center;
    }

    .mat-container h4 {
        margin-left: .5rem;
        font-size: 1rem;
        font-weight: 600;
    }

    .ekis {
        height: 2rem;
        position: relative;
        bottom: 1.5rem;
        right: 1rem;
        cursor: pointer;

    }

    .mat-head {
        display: flex;
        flex-direction: row-reverse;
        width: 100%;
        position: relative;
    }

    .mat-head h2 {
        text-align: center;
        width: 100%;

    }

    .backBtn {
        width: 7rem;
        z-index: 4;
        top: 9.5rem;
        left: 2rem;
        border-style: none;
        background-color: var(--primary-color);
        color: white;
        margin: 1rem 1rem 0 1rem;
        padding: .5rem 1rem;
        border-radius: .6rem;

    }

    .backBtn img {
        height: 1.5rem;
        margin-right: .5rem;
        filter: invert(1);

    }

    .backBtn.active {
        visibility: visible;
    }

    @media (max-width:700px) {

        .container_all {
            flex-direction: column;

        }

        .input-group {
            width: 100% !important;
        }

        .show,
        .category-filter,
        .btn-next {
            width: 100%;
        }

        .btn-next {
            justify-content: center;
            margin-top: 3rem;
            order: 1;
        }


        .material-innercontainer {
            flex-direction: column;
            gap: 2rem;
        }

        .material-details {
            width: 100%;
        }

        .material-container {
            height: 66%;
            width: 100%;
            position: relative;
            top: -5rem;
            /* or adjust based on your layout */
            overflow-y: auto;
            /* optional: for better scrollbar visibility */
        }

        .mat-head h2 {
            font-size: 1.8rem;
            font-weight: 600;
        }

        .material-info h3 {
            font-size: .9rem;
        }

        .material-info h4 {
            font-size: .9rem;
        }

        .ekis {
            right: 0;
        }

        .button_container {
            margin-top: 1rem;
        }

        .category-filter {
            margin-top: .5rem;
        }

        .material-details .title {
            font-size: 1.2rem;

        }

        .mat-head h2 {
            font-size: 1.5rem;
            margin: 1.5rem 0;
        }

        .circle {
            display: none;
        }

        .bookImage img {
            height: 9rem;

        }

    }

    /* NEW: Search Input Wrapper */
    .search-input-wrapper {
        position: relative;
        width: 100%;
        display: flex;
        align-items: center;
    }

    #searchInput {
        padding-right: 40px;
    }

    .search-clear-btn {
        position: absolute;
        right: 12px;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--primary-color);
        font-size: 1.2rem;
        padding: 5px 8px;
        display: none;
        transition: 0.2s ease-in-out;
    }

    .search-clear-btn:hover {
        color: #4A6F27;
        transform: scale(1.2);
    }

    .search-clear-btn.active {
        display: block;
    }