    .inmate-pagination { margin-top: 40px; }
    .inmate-pagination a { padding: 5px 10px; text-decoration: none; border: 1px solid #ccc; margin: 0 4px; }
    .inmate-pagination a.active { font-weight: bold; background-color: #f2f2f2; }
    .inmate-search-box { margin: 20px 0px 40px 0px; width: 100%; background-color:white; color:black;}
    
.search-button, .back-button {
    background-color: white;
    color: grey !important;
    border: 1px solid grey;
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.search-button:hover, .back-button:hover {
    background-color: grey;
    color: white !important;
}

    
.back-button {
    display: inline-block;
    background-color: white;
    color: grey !important;
    border: 1px solid grey;
    padding: 8px 16px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.back-button:hover {
    background-color: grey;
    color: white !important;
}



    .inmate-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        margin-top: 20px;
        max-width: 875px;
        gap: 50px;
    }

    .inmate-card {
        width: 25%; /* Adjust for the number of columns you want */
        border: 1px solid #ddd;
        border-radius: 5px;
        overflow: hidden;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        text-align: center; /* Center content inside cards */
    }

    .inmate-photo-container {
        width: 100%;
    }

    .inmate-photo {
        width: 100%;
    }

    .inmate-details {
        padding: 10px;
    }

    .inmate-name {
        font-size: 1em;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .booking-info {
        font-size: 0.9em;
        color: #555;
    }

    /* Style for the additional inmate information */
    .inmate-info {
        font-size: 0.9em;
        color: #333;
        margin-top: 15px;
    }

    .details-button {
        display: inline-block;
        padding: 8px 15px;
        margin: 15px 0 10px 0;
        background-color: #e0f2f1;
        color: #00897b;
        text-decoration: none;
        border-radius: 5px;
        border: 1px solid #00897b;
        font-size: 0.9em; /* Adjust font size to match the image */
    }

    .details-button:hover {
        background-color: #b2dfdb;
    }


/* Media query for mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    .inmate-card {
        width: 100%; /* Take up full width */
        text-align: left; /* Align text to the left */
        display: flex; /* Enable flexbox layout */
        flex-direction: row; /* Arrange items in a row */
        align-items: center; /* Vertically align items */
    }

    .inmate-photo-container {
        width: 40%; /* Photo takes up 40% of the card */
        height: auto; /* Adjust height automatically */
        padding-bottom: 0; /* Remove padding */
        position: relative; /* Needed for absolute positioning */
        border-radius: 5px; /* Add a border-radius */
        overflow: hidden; /* Clip any overflowing content */
    }

    .inmate-photo {
        position: static; /* Remove absolute positioning */
        width: 100%; /* Make the photo fill the container */
        height: auto;
        object-fit: cover; /* Maintain aspect ratio */
    }

    .inmate-details {
        width: 60%; /* Details take up 60% of the card */
        padding: 10px;
        text-align: left; /* Align the content to the left */
    }

    .inmate-name {
        font-size: 1.2em; /* Larger name for readability */
    }
}



/* Styles for details.php */

.details-inmate-card {
    margin: 20px auto; /* Center the card */
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: left;
}

.details-inmate-photo-container {
    width: 220px;
    margin: 0 auto 20px; /* Center the image */
}

.details-inmate-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px !important;
}

.details-inmate-details {
    padding: 20px;
}

.details-inmate-name {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #54595f !important;
}

.details-booking-info {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 10px;
}

.details-inmate-info {
    font-size: 1em;
    color: #444;
    margin-bottom: 15px;
}

.details-charges-heading {
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #54595f !important;
}

.details-charges-list {
    list-style: none;
    padding: 0;
}

.details-charges-list li {
    font-size: 1em;
    color: #555;
    margin-bottom: 5px;
}

.details-no-charges {
    font-style: italic;
    color: #777;
}
