thead{
            background: #3b3bd6;
        }

        tbody td
        {
            font-size: 13px;
        }
                .highlight {
            background-color: yellow;
            font-weight: bold;
            border-radius: 3px;
        }
        .field_w_search {
            border: 1px solid maroon;
        }
        .not-logged-in-message {
            text-align: center;
            font-size: 14px;
            color: #666;
            padding: 10px;
            background-color: #f0f0f0;
            border-radius: 4px;
        }
        /* Modal Styles */
        .image-modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            justify-content: center;
            align-items: center;
        }
        .image-modal-content {
            max-width: 90%;
            max-height: 90%;
            border-radius: 5px;
        }
        .image-modal-close {
            position: absolute;
            top: 20px;
            right: 35px;
            color: white;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
        }
        .image-modal-close:hover {
            color: #ccc;
        }


        .image-card-body {
            max-height: 250px; /* Set a fixed height */
            overflow: hidden;
        }

        .img-fluid {
            display: block;
            width: 100%;
            height: 150px; /* Fixed height */
            object-fit: cover;
            background-color: #f0f0f0;
            position: relative;
        }

        .image-placeholder {
            width: 100%;
            height: 150px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            color: gray;
            background-color: #e0e0e0;
            border-radius: 5px;
        }

        .highlighted {
            background-color: yellow;
            font-weight: bold;
        }

        
        .result-heading{color: #0d4f9d;margin-bottom: 0px;}
        .form-group{margin-bottom: 0rem;}

        /* Grid styles for images */
        .image-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
        }

        .card {
            transition: all 0.3s ease-in-out;
        }

        .card-body{padding: 5px;}

        .card-title{padding: 5px;}

        .card:hover {
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }

        .image-card {
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            transition: transform 0.2s ease;
        }

        .image-card:hover {
            transform: translateY(-5px);
        }

        .image-card img {
            width: 100%;
            height: auto;
            display: block;
        }

        .image-info {
            padding: 10px;
        }

        .image-info h6 {
            font-size: 16px;
            margin: 0 0 5px;
        }

        .image-info p {
            margin: 5px 0;
            font-size: 14px;
            color: #555;
        }

        .image-info a {
            color: #007bff;
            text-decoration: none;
        }

        .image-info a:hover {
            text-decoration: underline;
        }

        main h6{padding: 10px;color: #2a2a7b;}

        .alert{padding: 5px;margin-top: 60px;}
        ul li{margin-bottom: 5px;}


        label{padding: 0px;color: #4141a3;height: 0.5em;}

        @keyframes loading {
            0% {
                background-position: 200% 0;
            }
            100% {
                background-position: -200% 0;
            }
        }

        .pagination{margin-top: 20px;margin-bottom: 20px;}

        .pagination-wrapper {
            display: block; /* Ensures pagination spans the available width */
            text-align: center; /* Center aligns the pagination links */
            margin: 0 auto; /* Centers the block within its parent */
        }

        .pagination-wrapper .pagination {
            flex-wrap: wrap; /* Allows pagination links to wrap to the next line */
            justify-content: center; /* Ensures pagination links stay centered */
        }

        .pagination-wrapper .page-item {
            margin: 5px; /* Adds spacing between pagination links */
        }

        .not-logged-in-message {
            position: absolute;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: bold;
            color: #6d696a;
            text-align: center;
        }
        
        #sortDropdown{padding: 5px;border-color: maroon;}
        .sort-wrapper {
            display: flex;
            align-items: center;
            gap: 8px;
            justify-content: flex-end;  /* This aligns the content to the right */
            margin-left: auto;         /* This pushes the container to the right */
        }

        .form-select-sm {
            width: auto;
            min-width: 120px;     /* Ensures the dropdown isn't too narrow */
        }
        
        b{color:maroon;}

        .form-control {padding: 3px;font-size: 12px;}

        /* Add opacity and center "Login to view" message on top of image */
        .login-overlay {
            background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
            opacity: 1; /* Fully visible overlay */
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            font-size: 18px;
        }

        .lazy-image {
            transition: opacity 0.3s ease-in-out;
        }

        .lazy-image.broken-image {
            opacity: 0.5; /* Apply opacity to broken images */
        }

        /* Additional styling for broken image */
        .broken-image {
            background-color: #f8f9fa;
            border: 1px dashed #ccc;
        }
        .login-overlay {
            background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
            border-radius: 5px;
            pointer-events: none; /* Prevent clicks on the overlay */
            top: 0px;
        }

        .login-overlay span {
            font-size: 16px;
            font-weight: bold;
            color: white;
        }



        .image-modal {
            display: none;
            position: fixed;
            z-index: 1050;
            padding-top: 100px;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.9);
            justify-content: center;
            align-items: center;
        }

        .image-container {
            position: relative;
            max-width: 90%;
            max-height: 80vh;
        }

        .image-modal-content {
            max-width: 100%;
            max-height: 80vh;
            display: block;
        }

        .image-modal-close {
            position: absolute;
            top: 15px;
            right: 35px;
            color: #f1f1f1;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
        }

        .modal-overlay {
            display: none; /* Hidden by default */
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
            justify-content: center;
            align-items: center;
            z-index: 1051; /* Above the image */
        }

        /* Download Button */
            .image-download-btn {
                position: absolute;
                top: 15px;
                left: 35px;
                background: #fff;
                color: #000;
                text-decoration: none;
                padding: 6px 12px;
                font-size: 14px;
                border-radius: 4px;
                z-index: 1060;
                box-shadow: 0 0 5px rgba(0,0,0,0.3);
                transition: background 0.2s ease;
            }

            .image-download-btn:hover {
                background-color: #e0e0e0;
            }



            .overlay-text {
                font-size: 24px;
                font-weight: bold;
                color: white;
            }


            #sidebar {
                position: fixed;
                top: 55px;
                left: -75%; /* Initially hidden */
                width: 75%; /* Sidebar width */
                height: 100%;
                background-color: #84b4e8;
                transition: left 0.3s ease-in-out;
                z-index: 10000;
                padding: 5px;
                overflow-y: auto;
            }

            #sidebar.active {
                left: 0; /* Show sidebar */
            }

            #sidebarOverlay {
                position: fixed;
                top: 55px;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
                z-index: 9999;
                display: none; /* Initially hidden */
            }

            #sidebar.active + #sidebarOverlay {
                display: block; /* Show overlay when sidebar is active */
            }


            select,input{width: 100%;}

            label { padding: 0px; }



            .card-header{padding: 5px;}

            #searchInput {background: white !important;padding: 10px !important;}

            .date input, .date select, .date button{font-size: 12px;}

            #sidebar select {padding: 5px !important;}


            .filter-box {
                background-color: #f8f9fa;
                border: 1px solid #5696b6;
                border-radius: 8px;
                padding: 10px;
                margin-bottom: 15px;
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            }

            .filter-box label {
                font-weight: 600;
                margin-bottom: 8px;
                color: #024ea0;
            }

            .filter-box .form-select,
            .filter-box .form-control {
                border-radius: 6px;
                border: 1px solid #ced4da;
            }

            .filter-box .btn-outline-secondary {
                border-radius: 6px;
                padding: 5px 10px;
                font-size: 12px;
            }

            .filter-box .btn-outline-secondary:hover {
                background-color: #6c757d;
                color: #fff;
            }

            .filter-box .btn-secondary {
                border-radius: 6px;
                padding: 8px 12px;
                font-size: 14px;
            }

            #loadMoreContainer{
                padding-bottom:30px; 
                display: flex;
                justify-content: center; 
            }

            .procurement-filter select, .procurement-filter input {
            padding: 5px;}

            .modal-backdrop{display: none;}

            .tender-badge {
                font-size: 0.65rem;
                font-style: italic;
                border-radius: 5px;
                font-weight: 600;
                border: 1px solid gray;
                transition: 0.2s ease;
            }

            .tender-badge:hover {
                border-color: #000;
            }