/* ======================================================
   JOB POST CREATION PAGE STYLES
   ====================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

.job-wrapper {
    width: 85%;
    margin: 40px auto;
    background: #9cbfe0;
    padding: 20px 40px;
    border-radius: 8px;
}

h2 {
    margin-bottom: 30px;
    font-size: 32px;
}

label {
    font-weight: bold;
    font-size: 20px;
    display: block;
    margin-bottom: 6px;
}

/* TWO COLUMN LAYOUT */
.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 25px;
}

/* Single column row */
.form-row {
    margin-bottom: 20px;
}

.input-box,
.input-box-full,
textarea {
    width: 100%;
    padding: 12px;
    background: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    color: black;
}

textarea {
    height: 130px;
}

/* Job-type & location buttons */
.button-row {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.type-btn,
.location-btn {
    background: #666;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
}

/* checkbox label */
.checkbox-group label {
    font-size:16px;

    display: block;
    margin-bottom: 10px;
}
.benefits-checkbox {
    transform: scale(1.4);   /* increase size */
    margin-right: 8px;       /* space from text */
    cursor: pointer;
}


.form-actions {
    margin-top: 35px;
    display: flex;
    gap: 30px;
}

.save-btn {
    background: #fff;
    color: #000;
    padding: 12px 35px;
    border-radius: 6px;
    border: none;
    font-size: 16px;
}

.close-btn {
    background: #444;
    color: #fff;
    padding: 12px 35px;
    border-radius: 6px;
    border: none;
    font-size: 16px;
}

/* ======================================================
   JOB LIST PAGE STYLES
   ====================================================== */
   /* Alerts */
.alert {
    padding: 14px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: bold;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
    border-left: 5px solid #16a34a;
}

.alert.error {
    background: #fee2e2;
    color: #7f1d1d;
    border-left: 5px solid #dc2626;
}

.new-job-btn.disabled { opacity: 0.5; cursor: not-allowed; }

/* Page Background */
body-page.list {
    background: #463e3e;
    font-family: Arial, sans-serif;
    color: white;
}

/* Main container */
.job-list-wrapper {
    width: 85%;
    margin: 40px auto;
    background: #fff;
    padding: 25px 40px;
    border-radius: 8px;
}

/* Titles */
h2 {
    font-size: 32px;
    margin-bottom: 5px;
}

.subtitle {
    color: #222;
    margin-bottom: 20px;
}

/* Search bar */
.search-wrapper {
    position: relative;
    margin-bottom: 20px;
    width: 250px;
}

.clear-search-btn {
    position: absolute;
    right: 10px;
    top: 9px;
    font-size: 14px;
    text-decoration: none;
    color: #666;
    cursor: pointer;
}

.clear-search-btn:hover {
    color: #000;
}

.search-box {
    width: 100%;
    padding: 10px 35px;
    border-radius: 6px;
    border: 1px solid gray;
    background: white;
    color: black;
}

.search-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #333;
    font-size: 16px;
}

/* Top bar: Search + New Job */
.top-bar {
    display: flex;
    justify-content: space-between;
}

.new-job-btn {
    display: inline-flex;              
    align-items: center;               
    justify-content: center;            

    background: #2563eb;               
    color: #ffffff;

    padding: 12px 30px;
    border-radius: 10px;

    font-weight: 600;
    font-size: 16px;

    text-decoration: none;
    border: none;

    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.25s ease-in-out;
}

/* Hover */
.new-job-btn:hover {
    background: #1e40af;               
    box-shadow: 0 8px 18px rgba(30, 64, 175, 0.45);
    transform: translateY(-2px);
}

/* Active (click) */
.new-job-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(30, 64, 175, 0.35);
}


/* Filter row layout */
.filter-row {
    display: flex;
    gap: 30px;
    align-items: flex-end;
    margin: 20px 0;
}

/* Each filter block */
.filter-item {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

/* Label */
.filter-item label {
    font-size: 16px;
    margin-bottom: 6px;
    font-weight: bold;
}

/* Select dropdown */
.filter-select {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #999;
    font-size: 15px;
    background: #fff;
    cursor: pointer;
}


/* Table styling */
.job-table {
    width: 100%;
    border-collapse: collapse;
    background: #d8e8f6; /* lighter blue */
    color: black;
}

.job-table th,
.job-table td {
    padding: 12px;
    border: 1px solid #999;
    text-align: left;
}

/* Status Badge */
.status-badge {
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: bold;
    color: white;
}

.status-badge.published {
    background: #1ad8c2; 
}

.status-badge.draft {
    background: #919fbb; 
    color: #fff;
}


/* Toggle switch */
.switch {
    position: relative;
    width: 46px;
    height: 22px;
    display: inline-block;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    background: #cbd5e1;
    border-radius: 30px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.3s;
}

.slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 2px;
    background: #ffffff;
    border-radius: 50%;
    transition: 0.3s;
}

.switch input:checked + .slider {
    background: #2563eb;
}

.switch input:checked + .slider:before {
    transform: translateX(22px);
}

/* Action Icons */
.action-buttons a {
    font-size: 20px;
    margin-right: 10px;
    cursor: pointer;
    text-decoration: none;
}


/*Job View Page*/

/* Container */
.job-view-container {
    background: #9cbfe0;
    padding: 30px 40px;
    border-radius: 10px;
    color: black;
}

/* Page Wrapper */
.page-wrapper {
    width: 85%;
    margin: 40px auto;
    background: #9cbfe0;
    padding: 30px 40px;
    border-radius: 10px;
}

/* Header Section */
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.job-title {
    font-size: 28px;
    font-weight: bold;
}

.job-company {
    font-size: 18px;
    margin-top: 5px;
    color: #333;
}

.job-meta {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    font-size: 18px;
}

.meta-item {
    display: flex;
    align-items: center;
}

/* Section Title */
.section-title {
    font-size: 20px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 10px;
}

/* Text Sections */
.job-description,
.job-requirements,
.job-benefits {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Apply Box */
.apply-box {
    background: #ffffff;
    padding: 25px;
    margin-top: 40px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    border: 2px solid #ccc;
}

/* Apply Button */
.apply-button {
    margin-top: 20px;
    padding: 12px 35px;
    border-radius: 8px;
    border: none;
    font-size: 18px;
    background: #007bff;
    color: white;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: 0.25s ease-in-out;
}

.apply-button:hover {
    background: #005ec4;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

/* Footer */
.footer-line {
    margin-top: 40px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #333;
}


/* =============================
   SAVE/EDIT PAGES TOPICS STYLES
   ============================= */

.job-form {
    margin-top: 25px;
}
