/* Job Post Plugin Styles */
.job-details {
    border: 1px solid #ddd;
    padding: 15px;
    background-color: #f9f9f9;
    margin-bottom: 20px;
}

.apply-job-form {
    width: 100%;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    box-sizing: border-box; /* Ensures padding is included in the width */
}

.apply-job-form form {
    width: 100%; /* Makes the form itself full width */
}

.apply-job-form label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 10px;
    width: 100%;
}

.apply-job-form textarea {
    width: 100%;
    height: 120px;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.apply-job-form input[type="submit"] {
    display: block;
    background-color: #0C71CF;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: auto;  /* Align button to the right */
    width: auto;        /* Adjust button width to its content */
	margin-top: -30px;
}

.apply-job-form input[type="submit"]:hover {
    background-color: #0958a3;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .apply-job-form input[type="submit"] {
        width: 100%; /* Full width on mobile */
        margin-left: 0; /* Reset left margin for mobile */
			margin-top: -10px;
    }
}


/* Base Table Styling */
.job-applications-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.job-applications-table th,
.job-applications-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.job-applications-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.job-applications-table td {
    font-size: 16px;
}

/* Specific Row Styles (for Job Title, User, Proof, etc.) */
.job-applications-table th:nth-child(1), 
.job-applications-table td:nth-child(1) {
    width: 25%;
}

.job-applications-table th:nth-child(2), 
.job-applications-table td:nth-child(2) {
    width: 15%;
}

.job-applications-table th:nth-child(3), 
.job-applications-table td:nth-child(3) {
    width: 15%;
}

.job-applications-table th:nth-child(4), 
.job-applications-table td:nth-child(4) {
    width: 15%;
}

.job-applications-table th:nth-child(5), 
.job-applications-table td:nth-child(5) {
    width: 10%;
}

.job-applications-table th:nth-child(6), 
.job-applications-table td:nth-child(6) {
    width: 20%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .job-applications-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling */
    }

    .job-applications-table th, 
    .job-applications-table td {
        display: block;
        text-align: right;
        padding: 10px 5px;
    }

    .job-applications-table th {
        display: none;
    }

    .job-applications-table tr {
        margin-bottom: 10px;
        border-bottom: 1px solid #ddd;
    }

    .job-applications-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 10px;
        font-weight: bold;
        text-align: left;
    }

    .job-applications-table td {
        position: relative;
        padding-left: 50%; /* Adjust padding to accommodate labels */
    }
}

/* Hover Effect */
.job-applications-table tr:hover {
    background-color: #f5f5f5; /* Highlight rows on hover */
}

/* Button Styling */
input[type="submit"] {
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #0056b3;
}

/* Filter Form Styling */
.job-filter-form {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.job-filter-form label {
    font-size: 16px;
    font-weight: bold;
    margin-right: 5px;
}

.job-filter-form select, 
.job-filter-form input[type="submit"] {
    padding: 8px 12px;
    font-size: 16px;
}

.job-filter-form input[type="submit"] {
    background-color: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
}

.job-filter-form input[type="submit"]:hover {
    background-color: #005a8d;
}


/* Job List Table */
.job-list-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.job-list-table th, .job-list-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.job-list-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.job-list-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.job-list-table a {
    text-decoration: none;
    color: #0073aa;
    font-weight: bold;
}

.job-list-table a:hover {
    color: #005a8d;
}

/* Filter Container */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.filter-option {
    margin-right: 15px;
    margin-bottom: 15px;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    transition: background-color 0.3s;
}

.filter-option:hover {
    background-color: #e0e0e0;
}

.filter-button {
    padding: 10px 20px;
    margin-left: 10px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filter-button:hover {
    background-color: #0056b3;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .filter-container {
        flex-direction: column;
    }

    .filter-option {
        width: 100%;
        margin-right: 0;
    }

    .job-filter-form {
        flex-direction: column; /* Stack filter form fields */
        gap: 10px;
    }
}

/* User Applications Table */
.user-applications-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.user-applications-table th, .user-applications-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.user-applications-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.user-applications-table tr:hover {
    background-color: #f5f5f5;
}

/* Responsive styles */
@media (max-width: 768px) {
    .user-applications-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .user-applications-table th, .user-applications-table td {
        display: block;
        padding: 10px 5px;
        text-align: left;
        border: none;
        position: relative;
    }

    .user-applications-table th {
        display: none;
    }

    .user-applications-table tr {
        margin-bottom: 15px;
        border-bottom: 1px solid #ddd;
    }

    .user-applications-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 10px;
        font-weight: bold;
    }
}

/* Status Colors */
.user-applications-table td.status-approved {
    color: green;
}

.user-applications-table td.status-rejected {
    color: red;
}

.user-applications-table td.status-pending {
    color: orange;
}

