
body {
    font-family: Arial, sans-serif;
    background-color: #f4f7fa;
    margin: 0;
    padding: 0;
}
h2.section-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}
/* ===============================
   DASHBOARD TABLE ENHANCEMENTS
   =============================== */

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0 35px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.data-table th,
.data-table td {
    padding: 6px 10px; /* ↓ Reduced from 12px 14px */
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    font-size: 13px; /* ↓ Slightly smaller text */
    line-height: 1.3; /* Compact line spacing */
}

.data-table th {
    background: linear-gradient(180deg, #007bff 0%, #005ecb 100%);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.3px;
    position: sticky;
    top: 0;
    z-index: 2;
    height: 38px; /* Keeps header thin but legible */
}

.data-table th a {
    color: #fff;
    text-decoration: none;
}

.data-table th a:hover {
    text-decoration: underline;
}

.data-table tbody tr:nth-child(even) td {
    background-color: #f9fbfd;
}

.data-table tbody tr:hover td {
    background-color: #eef6ff;
}

.data-table td a {
    text-decoration: none;
}

.data-table .paid td {
    background-color: #e7fbe9 !important;
}

.data-table .completed td {
    background-color: #fff7d1 !important;
}

/* --- Search box style improvement --- */
.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px auto 10px; /* ↓ Reduced top/bottom gap */
    max-width: 600px;
}

.search-form {
    display: flex;
    width: 100%;
    gap: 8px; /* Slightly tighter spacing */
}


.search-form input {
    flex: 1;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: box-shadow 0.2s ease;
}

.search-form input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 6px rgba(0,123,255,0.3);
}

.search-form button {
    background-color: #007bff;
    border: none;
    color: white;
    font-size: 15px;
    border-radius: 6px;
    padding: 12px 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: #005ecb;
}

/* --- Buttons inside table --- */
.data-table .button {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 4px;
    margin: 2px;
}

.data-table td:last-child {
    white-space: nowrap;
}

/* --- Mobile Responsive View --- */
@media screen and (max-width: 768px) {
    .data-table, .data-table thead, .data-table tbody, .data-table th, .data-table td, .data-table tr {
        display: block;
    }

    .data-table thead tr {
        display: none;
    }

    .data-table tr {
        margin-bottom: 1rem;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 1px 5px rgba(0,0,0,0.08);
        overflow: hidden;
    }

    .data-table td {
        padding: 10px 16px;
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        text-align: left;
    }

    .data-table td::before {
        content: attr(data-label);
        position: absolute;
        top: 8px;
        left: 16px;
        font-weight: 600;
        color: #555;
    }

    .data-table td:last-child {
        border-bottom: none;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: flex-start;
        padding-top: 6px;
    }

    .data-table td .button {
        flex: 1 1 auto;
        min-width: 45%;
        margin: 4px 0;
        text-align: center;
    }

    .section-title {
        font-size: 18px;
        margin: 25px 0 10px;
        color: #0056b3;
        text-align: center;
    }

    .search-form input, .search-form button {
        font-size: 14px;
    }
}

/* --- Section titles --- */
.section-title {
    font-size: 22px;
    color: #333;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid #007bff;
    display: inline-block;
    padding-bottom: 4px;
}
/* ==============================
   PAGINATION STYLES
   ============================== */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 15px 0 40px;
}

.page-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.page-btn:hover:not(:disabled) {
    background-color: #005ecb;
}

.page-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.page-info {
    font-size: 14px;
    color: #333;
}

/* Pagination looks tidy on mobile */
@media screen and (max-width: 768px) {
    .pagination-controls {
        flex-direction: column;
        gap: 6px;
    }
    .page-btn {
        width: 100%;
    }
}
/* ==============================
   PAGINATION WITH PAGE NUMBERS
   ============================== */

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 45px;
}

.page-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.page-btn:hover:not(:disabled),
.page-number:hover:not(.active) {
    background-color: #005ecb;
}

.page-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.page-number {
    background-color: #e9ecef;
    border: none;
    color: #333;
    padding: 7px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.page-number.active {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 0 3px rgba(0,0,0,0.1);
}

/* Mobile-friendly pagination */
@media screen and (max-width: 768px) {
    .pagination-controls {
        flex-direction: column;
        gap: 10px;
    }

    .page-numbers {
        justify-content: center;
        flex-wrap: wrap;
    }

    .page-number {
        padding: 6px 10px;
        font-size: 13px;
    }

    .page-btn {
        width: 100%;
    }
}
/* ===============================
   Inline Job Details Popup
   =============================== */

.job-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
}

.job-popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    min-width: 320px;
    max-width: 450px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    animation: popupFade 0.2s ease-in-out;
    position: relative;
}

@keyframes popupFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-popup {
    position: absolute;
    right: 12px;
    top: 8px;
    font-size: 20px;
    cursor: pointer;
    color: #888;
}

.close-popup:hover {
    color: #000;
}

.job-popup-icon {
    margin-left: 5px;
    cursor: pointer;
    font-size: 15px;
}

.job-popup-icon:hover {
    opacity: 0.8;
}

.popup-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.popup-table th, .popup-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    text-align: left;
}

.popup-table th {
    background-color: #f1f5ff;
}

.job-category {
    margin-bottom: 10px;
}

.category-toggle {
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    background: #343a40;
    color: #fff;
    cursor: pointer;
}

.category-toggle:hover {
    background: #23272b;
}

.job-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 12px;
    margin-top: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.job-button {
    padding: 12px 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: #007bff;
    color: #fff;
    cursor: pointer;
    text-align: center;
    line-height: 1.3;
}

.job-button:hover {
    background: #0056b3;
}

.job-button small {
    display: block;
    font-weight: normal;
    font-size: 12px;
    opacity: 0.9;
}


.no-data {