body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
}

/* LAYOUT */
.page-container {
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    padding-inline: 20px;
}

.job-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* FORMS */
.job-card input,
.job-card textarea,
.job-card select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    margin-top: 8px;
}

.job-card textarea {
    min-height: 150px;
    resize: none;
}

/* TYPOGRAPHY */
.page-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
}

.job-title {
    font-size: 28px;
    font-weight: bold;
}

/* IMAGES */
.job-images {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.job-images img {
    flex: 1 1 250px;
    width: 100%;
    max-width: 100%;
    height: 180px;
    object-fit: cover;
}

.job-image {
    cursor: pointer;
    transition: transform .2s;
}

.job-image:hover {
    transform: scale(1.03)
}

.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.image-modal.active {
    display: flex;
}

.expanded-image {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
}

.close-image {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 45px;
    cursor: pointer;
}

/* STATUS */
.status-badge {
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
}

/* Job status */
.status-badge.status-open { background: green; }
.status-badge.status-pending { background: gray; }
.status-badge.status-closed { background: gray; }
.status-badge.status-completed { background: gray; }

/* Application Status */ 
.status-badge.status-pending { background: gray; }
.status-badge.status-accepted { background: green; }
.status-badge.status-rejected { background: #d9534f; }


.btn {
    padding: 12px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

/* BUTTON COLORS */
.apply {
    background: #1e5bb8;
    color: white;
}

.message {
    background: #e0e0e0;
    color: #333;
}

.btn:hover {
    opacity: 0.9;
}

#id_title {
    padding: 4px 8px;
    font-size: 16px;
}

#id_description {
    overflow: hidden;
    resize: none;
    min-height: 120px;
}

/* HEADER */
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

/* INFO */
.job-info {
    text-align: center;
    font-size: 18px;
}

.job-info p {
    margin: 8px 0;
}

.delete-check {
    display: block;
    margin-top: 8px;
    font-size: 14px;
}
/* SECTION */
.job-section h3 {
    margin-bottom: 10px;
}

.job-section p {
    line-height: 1.6;
}

/* POSTED BY */
.posted-by {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.profile {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.view-profile {
    margin-left: 5px;
    color: #2a6edb;
    text-decoration: none;
}

.view-profile:hover {
    text-decoration: underline;
}

/* OWNER LINKS */
.owner-links {
    text-align: center;
    margin-top: 20px;
}

.owner-links a {
    color: #2a6edb;
    text-decoration: none;
    margin: 0 5px;
}

.owner-links a:hover {
    text-decoration: underline;
}

.owner-links form {
    display: inline;
    margin: 0;
    padding: 0;
}

.owner-links button {
    background: none;
    border: none;
    color: #2563eb;
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-decoration: none;
}

.owner-links button:hover {
    color: #1d4ed8;
}

/* BACK LINK */
.back-link {
    text-align: center;
    margin-top: 20px;
}

.back-link a {
    color: #555;
    text-decoration: none;
}

.back-link a:hover {
    text-decoration: underline;
}

/* DIVIDER */
hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

/* BUTTONS */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.action-buttons a,
.action-buttons button {
    background-color: #0073b1;
    color: white;
    display: inline-block;
    padding: 6px 6px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    font-family: inherit;
    text-decoration: none;
    margin: 10px;
    box-sizing: border-box;
}

.action-buttons a {
    background: #0073b1;
    color: white;
}

.action-buttons .report {
    background: rgb(153, 49, 49);
    color: white;
}

.action-buttons .report:hover {
    background-color: rgba(153, 49, 49, 0.731);
}

.action-buttons a:hover {
    background-color: #0073b19f;
}

.action-buttons span {
    color: white;
    border: none;
    padding: 6px 6px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s;
    height: 100%;
    margin: 10px;
}

.action-buttons .message {
    padding: 6px 6px;
    background-color: #0073b1;
    align-items: right;
}

.messages {
    text-align: center;
}

.messages .success {
    background-color: #d4edda;
    color: #155724;
}

.messages .error {
    background-color: #f8d7da;
    color: #721c24;
}

@media (max-width: 600px) {
    .job-images img {
        flex-basis: 100%;
    }

    .page-title {
        font-size: 26px;
    }

    .job-title {
        font-size: 22px;
    }

    .job-card {
        padding: 15px;
    }

    .job-header,
    .posted-by,
    .action-buttons {
        align-items: flex-start;
    }

    .action-buttons a,
    .action-buttons span,
    .action-buttons .report,
    .action-buttons .apply {
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .owner-links {
        display: flex;
        flex-direction: column;
    }
}