    @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800;900&display=swap');

    :root {
        --primary-color: #990199;
        /* Blue accent for contrast against black */
        --bg-color: #000000;
        /* Set background to Black */
        --border-color: #e2e8f0;
        --text-color: #1e293b;
        /* Zebra striping colors */
        --row-odd: #ffffff;
        --row-even: #f1f5f9;
        --row-hover: #f1f5f9;
        /* Header colors */
        --header-bg: #B567B5;
        --header-text: white;
        --detail-bg: #ffffff;
        --nav-highlight: #990199;
        /* Matching black theme */
        --footer-bg: #0f172a;
    }

    /* Prevent page-level horizontal overflow */
    html,
    body {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    body {
        font-family: 'Poppins', sans-serif;
        background-color: var(--bg-color);
        /* Layered background:
               1. A gradient from solid black on the left to transparent on the right 
               2. The fixed background image 
            */
        background-image:
            linear-gradient(to right, var(--bg-color) 0%, var(--bg-color) 35%, rgba(0, 0, 0, 0.6) 70%, transparent 100%),
            url('https://res.cloudinary.com/dhlerngui/image/upload/f_auto,q_auto,w_500/v1771384850/prison2_kzyiol.png');
        background-position: center, right center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-size: cover, 50%;
        color: var(--text-color);
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    /* Top Navigation Styling */
    .top-nav {
        background-color: #ffffff;
        padding: 0 40px;
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        position: sticky;
        top: 0;
        z-index: 1000;
        margin-bottom: 40px;
    }

    .nav-logo-link {
        text-decoration: none;
        cursor: default;
    }

    .logo-image {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: flex;
        gap: 30px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .nav-links a {
        text-decoration: none;
        color: var(--text-color);
        font-size: 0.9rem;
        font-weight: 600;
        transition: color 0.2s;
    }

    .nav-links a:hover {
        color: var(--nav-highlight);
    }

    .nav-links a.active {
        color: var(--nav-highlight);
        border-bottom: 2px solid var(--nav-highlight);
        padding-bottom: 4px;
    }

    .mobile-toggle {
        display: none;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        color: var(--text-color);
    }


    /* Header Text Styling */
    .title-header {
        width: 75%;
        max-width: 1400px;
        margin: 100px auto 100px auto;
        text-align: left;
        position: relative;
        z-index: 10;
    }

    .title-header h1 {
        font-family: 'Lato', sans-serif;
        font-weight: 900;
        font-size: 3.5rem;
        color: #ffffff;
        margin: 0;
        text-transform: uppercase;
        letter-spacing: -2px;
        line-height: 1.1;
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    }

    .title-header p {
        font-family: 'Lato', sans-serif;
        font-weight: 400;
        font-size: 1rem;
        line-height: 1.6;
        color: #ffffff;
        max-width: 700px;
        margin: 15px 0 0 0;
        text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
    }

    .container {
        position: relative;
        z-index: 10;
        width: 95%;
        max-width: 1400px;
        margin: 0 auto 80px auto;
        background: white;
        padding: 24px;
        border-radius: 5px;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
        box-sizing: border-box;
    }

    .header-section {
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .header-text h2 {
        margin: 0;
        font-weight: 600;
        color: #0f172a;
    }

    .toolbar {
        display: flex;
        width: 100%;
        justify-content: flex-start;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .search-container {
        width: 100%;
        max-width: 400px;
        position: relative;
    }

    .search-input {
        width: 100%;
        padding: 10px 16px;
        padding-left: 42px;
        border-radius: 8px;
        border: 1px solid var(--border-color);
        font-size: 0.9rem;
        font-family: inherit;
        outline: none;
        transition: border-color 0.2s, box-shadow 0.2s;
        box-sizing: border-box;
        background-color: #ffffff;
    }

    .search-input:focus {
        border-color: var(--nav-highlight);
        box-shadow: 0 0 0 3px rgba(153, 0, 153, 0.1);
    }

    .search-icon {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #94a3b8;
        pointer-events: none;
        z-index: 5;
    }

    .export-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: white;
        color: var(--text-color);
        border: 1px solid var(--border-color);
        padding: 10px;
        height: 40px;
        width: 40px;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s;
    }

    .export-btn:hover {
        border-color: var(--nav-highlight);
        background: #fdf2ff;
    }

    .export-btn svg {
        color: var(--nav-highlight);
    }

    /* Pagination Controls Styling */
    .controls-bar {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        padding: 8px 0;
        margin-top: 12px;
    }

    .pagination {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .pagination {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .page-btn {
        background: white;
        border: 1px solid var(--border-color);
        padding: 4px 12px;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 600;
        color: var(--text-color);
        transition: all 0.2s;
    }

    .page-btn:hover:not(:disabled) {
        border-color: var(--nav-highlight);
        color: var(--nav-highlight);
        background: #fdf2ff;
    }

    .page-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

    .page-info {
        font-weight: 600;
        color: #64748b;
        font-size: 0.85rem;
    }

    .rows-per-page {
        color: #64748b;
        font-weight: 500;
        font-size: 0.85rem;
    }

    .rows-per-page select {
        padding: 4px 8px;
        border-radius: 4px;
        border: 1px solid var(--border-color);
        outline: none;
        cursor: pointer;
        color: var(--text-color);
        font-weight: 600;
        margin-left: 4px;
    }

    .rows-per-page select {
        padding: 2px 6px;
        border-radius: 4px;
        border: 1px solid var(--border-color);
        outline: none;
        cursor: pointer;
        font-family: inherit;
        color: var(--text-color);
        font-weight: 600;
        margin-left: 4px;
    }

    .table-wrapper {
        width: 100%;
        overflow-x: auto;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        -webkit-overflow-scrolling: touch;
        max-height: 80vh;
        overflow-y: auto;
    }

    table {
        border-collapse: separate;
        border-spacing: 0;
        width: 100%;
        min-width: 1650px;
        table-layout: auto;
    }

    th {
        background-color: var(--header-bg);
        color: var(--header-text);
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        padding: 12px;
        text-align: left;
        border-bottom: none;
        white-space: normal;
        cursor: help;
        background-clip: padding-box;
        outline: 1px solid var(--header-bg);
    outline-offset: -1px;
    }

    thead th {
        position: sticky;
        top: 0;
        z-index: 20;
        border-bottom: none;    
    }

    thead tr {
        background-color: var(--header-bg);
    }

    th {
        background-color: inherit;
        /* Make the cells inherit the row's color */
    }


    thead tr th:nth-child(3),
    tbody tr td:nth-child(3) {
        max-width: 150px;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    thead tr th:nth-child(4),
    tbody tr td:nth-child(4) {
        max-width: 50px;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    head tr th:nth-child(12),
    tbody tr td:nth-child(12) {
    width: 1%;
    white-space: nowrap;
    overflow: visible; /* Ensure content isn't hidden */
    max-width: none;   
    }


    .main-row {
        cursor: pointer;
        transition: background-color 0.2s;
        background-color: var(--row-odd);
    }

    .main-row td {
        padding: 12px;
        border-bottom: 1px solid var(--border-color);
        font-size: 0.85rem;
        white-space: normal;
    }

    .zebra-bg {
        background-color: var(--row-even) !important;
    }

    .main-row:hover {
        background-color: var(--row-hover) !important;
    }

    .details-row {
        display: none;
        background-color: var(--detail-bg);
    }

    .details-content {
        padding: 24px;
        border-bottom: 1px solid var(--border-color);
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        animation: fadeIn 0.3s ease;
        max-width: 88vw;
        box-sizing: border-box;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .detail-item {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .detail-label {
        font-weight: 700;
        color: #64748b;
        display: block;
        margin-bottom: 4px;
    }

    .header-content {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .filter-select {
        appearance: none;
        background-color: white;
        border: 1px solid var(--border-color);
        border-radius: 4px;
        padding: 3px 6px;
        font-size: 0.7rem;
        font-family: inherit;
        cursor: pointer;
        outline: none;
        max-width: 120px;
        color: var(--text-color);
    }

    th .filter-select {
        border-color: rgba(255, 255, 255, 0.3);
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
    }

    th .filter-select option {
        background-color: white;
        color: var(--text-color);
    }

    .filter-active {
        border-color: #ffffff !important;
        background-color: rgba(255, 255, 255, 0.2) !important;
        color: #ffffff !important;
    }

    .indicator {
        font-size: 0.7rem;
        color: var(--nav-highlight) !important;
        font-weight: bold;
        margin-left: 4px;
    }

    .row-num-cell {
        font-weight: 600;
        color: #94a3b8;
        width: 35px;
    }

    .share-container-bottom {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin-top: 16px;
        padding-top: 12px;
        border-top: 1px solid var(--border-color);
    }

    .share-label {
        font-size: 0.75rem;
        font-weight: 600;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .btn-share {
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        background-color: var(--nav-highlight);
        border: none;
        height: 32px;
        width: 32px;
        border-radius: 50%;
        cursor: pointer;
        transition: transform 0.2s, opacity 0.2s;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .btn-share:hover {
        transform: translateY(-2px);
        opacity: 0.8;
    }

    .btn-share svg {
        width: 16px;
        height: 16px;
    }

    #toast {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: #334155;
        color: white;
        padding: 12px 24px;
        border-radius: 8px;
        font-size: 0.9rem;
        display: none;
        z-index: 2000;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

        /* Footer Styling */
        .site-footer {
            background-color: #000;
            border-top: 3px solid var(--nav-highlight);
            color: #fff;
            padding: 80px 40px 40px 40px;
            position: relative;
            z-index: 10;
            margin-top: auto;
        }

        .footer-grid {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 2fr 1fr 1fr;
            gap: 40px;
        }

        .footer-logo-text {
            font-family: 'Poppins', sans-serif;
            font-weight: 900;
            font-size: 1.8rem;
            color: #fff;
            text-transform: uppercase;
            letter-spacing: -1px;
            display: block;
            margin-bottom: 10px;
        }

        .footer-brand p {
            color: #94a3b8;
            font-size: 0.8rem;
            line-height: 1.6;
            margin-top: 15px;
            max-width: 800px;
        }

        .footer-social {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .footer-social a {
            color: #94a3b8;
            transition: color 0.2s;
        }

        .footer-social a:hover {
            color: var(--nav-highlight);
        }

        .footer-social svg {
            width: 20px;
            height: 20px;
        }

        .footer-heading {
            font-weight: 700;
            font-size: 0.9rem;
            margin-bottom: 20px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--nav-highlight);
        }


.footer-bottom {
    max-width: 1400px;
    margin: 40px auto 0 auto;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    /* This pushes the first child to the left and the last to the right */
    justify-content: space-between; 
    align-items: center;
    color: #64748b;
    font-size: 0.8rem;
    flex-wrap: wrap; /* Keeps it from breaking on small screens */
}

.footer-links {
    display: flex;
    gap: 5px; /* Adds space between the individual links */
}
        .footer-bottom a {
            color: #64748b;
            font-size: 0.75rem;
        }

    @media screen and (max-width: 768px) {

        /* Mobile View: Make background image fit the whole screen */
        body {
            background-image:
                linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.8) 100%),
                url('https://res.cloudinary.com/dhlerngui/image/upload/f_auto,q_auto,w_500/v1771384850/prison2_kzyiol.png');
            background-size: cover, cover;
            background-position: center;
        }
    }
           
    @media screen and (max-width: 1000px) {

        .top-nav {
            padding: 0 20px;
        }

        .mobile-toggle {
            display: block;
        }

        .nav-links {
            position: absolute;
            top: 80px;
            left: 0;
            width: 100%;
            background-color: #ffffff;
            flex-direction: column;
            gap: 0;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-in-out;
        }

        .nav-links.active {
             max-height: 450px; border-bottom: 1px solid #eee;
            padding-bottom: 0px
        }

        .nav-links li {
            width: 100%;
            border-top: 1px solid var(--border-color);
        }

        .nav-links a {
            display: block;
            padding: 18px 20px !important;
            /* Uniform padding for all links */
            width: 100%;
            box-sizing: border-box;
        }

        .nav-links a.active {
            border-left: 4px solid var(--nav-highlight);
            border-bottom: none !important;
            /* Prevents height discrepancy */
            padding-bottom: 18px !important;
            /* Matching standard links */
        }

        .title-header h1 {
            font-size: 2.5rem;
        }

        /* Container and Toolbar adjustments for mobile */
        .container {
            width: 96%;
            padding: 12px 6px;
            margin-bottom: 60px;
            /* Increased mobile spacing */
        }

        .toolbar {
            flex-wrap: nowrap;
            /* Keep search bar and download icon side-by-side */
            gap: 8px;
        }

        .search-container {
            max-width: none;
            flex: 1;
            /* Allow search bar to grow and fill space */
        }

        .export-btn {
            flex-shrink: 0;
            /* Keep the button size consistent */
        }


        .header-section {
            padding: 15px;
        }

        .controls-bar {
            flex-direction: column;
            /* Stack vertically */
            gap: 16px;
        }

        .rows-per-page {
            order: 1;
            /* Dropdown on top */
        }

        .pagination {
            order: 2;
            /* Pagination below */
        }

            .footer-grid {
                grid-template-columns: 1fr;
                gap: 24px;
            }
            .site-footer {
                padding: 40px 20px 20px 20px;
            }
            .footer-bottom {
                flex-direction: column;
                gap: 12px;
                text-align: center;
            }

    }


    
