/* General styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Admin Page Styles */
.admin-page {
    width: 80%;
    margin: 30px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    color: #333;
    font-size: 2rem;
}

h3 {
    color: #333;
    margin-bottom: 15px;
}

label {
    font-weight: bold;
}

input[type="text"], input[type="email"], input[type="phone"], textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

textarea {
    resize: vertical;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

.add-job-form, .remove-job-section, .applications-section {
    margin-bottom: 30px;
}

ul#job-list {
    list-style-type: none;
    padding: 0;
}

ul#job-list li {
    background-color: #f9f9f9;
    padding: 12px;
    margin: 5px 0;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

ul#job-list li a {
    color: red;
    text-decoration: none;
}

ul#job-list li a:hover {
    text-decoration: underline;
}

/* Table for displaying job applications */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

a {
    color: #4CAF50;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------------- */
/* Apply Page Styles (apply.php) */
.apply-form {
    max-width: 600px;
    margin: 20px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.apply-form h3 {
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.apply-form label {
    font-size: 1rem;
}

.apply-form input, .apply-form select, .apply-form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.apply-form button {
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.apply-form button:hover {
    background-color: #45a049;
}

.apply-form .file-input {
    padding: 5px;
    font-size: 1rem;
}

.apply-form .file-input input[type="file"] {
    padding: 5px;
    font-size: 1rem;
}

/* ------------------------------------------------------------------- */
/* Job Listing Page Styles (jobs_list.php) */
.job-listing {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#job-list {
    list-style-type: none;
    padding: 0;
}

#job-list li {
    background-color: #f9f9f9;
    padding: 12px;
    margin: 5px 0;
    border-radius: 5px;
}

#job-list li a {
    color: #4CAF50;
    text-decoration: none;
}

#job-list li a:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------------- */
/* Job Details Page Styles (job_details.php) */
.job-details {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.job-details h2 {
    color: #333;
}

.job-details p {
    font-size: 1.2rem;
    color: #555;
    margin-top: 10px;
}

.job-details .apply-button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

.job-details .apply-button:hover {
    background-color: #45a049;
}
