/* ==========================================================================
   Classic Lodges Jobs Portal
   ========================================================================== */

/* ---- Portal Header ---- */
.ir-portal-header {
    background-color: #2d2d2b;
    color: #fff;
    padding: 2rem 0 3rem;
    position: relative;
    padding-top:12rem;
}
.ir-panel-content {
    padding: 1rem 1.25rem;
}

#form_ir_candidate_registration {
    margin-top:2rem;
}

.ir-portal-header--hr {
    background-color: #3a4a3b;
}

.ir-portal-header--candidate {
    background-color: #3a3a50;
}

.ir-portal-title {
    color: #fff !important;
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.ir-portal-subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.page-content .wp-editor-tools {
    display:none;
}

.ir-portal-user {
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    margin-bottom: 0;
}

.ir-logout-link {
    color: #fff;
    text-decoration: underline;
}

/* ---- Portal Content ---- */
.ir-portal-content {
    padding: 2rem 0 4rem;
}

/* ---- Portal Nav Sidebar ---- */
.ir-portal-nav {
    background: #f5f4f2;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.ir-portal-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ir-portal-nav ul li {
    border-bottom: 1px solid #e0dfdb;
}

.ir-portal-nav ul li:last-child {
    border-bottom: none;
}

.ir-portal-nav ul li a {
    display: block;
    padding: 0.65rem 0.5rem;
    color: #2d2d2b;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.ir-portal-nav ul li a:hover,
.ir-portal-nav ul li.active a {
    color: #7A847B;
    font-weight: bold;
}

.ir-hr-notice-sidebar {
    margin-top: 1.5rem;
    background: #fff3cd;
    border-left: 3px solid #f0b429;
    padding: 0.75rem;
    font-size: 0.8rem;
    color: #5c4a00;
}

/* ---- Dashboard Header Row ---- */
.ir-dashboard-header {
    margin-bottom: 1.5rem;
}

.ir-dashboard-hotel {
    font-size: 1.5rem;
    color: #2d2d2b;
    margin-bottom: 0;
}

/* ---- Stat Cards ---- */
.ir-stats-row {
    margin-bottom: 2rem;
}

.ir-stat-card {
    background: #fff;
    border: 1px solid #e0dfdb;
    border-radius: 6px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}

.ir-stat-card__number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2d2d2b;
    line-height: 1;
}

.ir-stat-card__label {
    font-size: 0.85rem;
    color: #797574;
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---- Panel ---- */
.ir-panel {
    background: #fff;
    border: 1px solid #e0dfdb;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.ir-panel .ir-btn {
    background-color:#474d4a;
    font-size: 0.7rem !important;
    margin-bottom: 0.2rem;
}

.ir-panel__header {
    background: #f5f4f2;
    border-bottom: 1px solid #e0dfdb;
    padding: 1rem 1.25rem;
}

.ir-panel__header h3 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    color: #2d2d2b;
}

/* ---- Filter Form ---- */
.ir-filter-form {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e8e7e5;
    background: #faf9f8;
    margin-bottom:1rem;
}

.ir-search-input {
    margin-bottom: 0 !important;
    height: 2.4rem;
}

.ir-filter-select {
    margin-bottom: 0 !important;
    height: 2.4rem;
}

.ir-hotel-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ir-hotel-switcher label {
    white-space: nowrap;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 0;
}

.ir-hotel-switcher select {
    margin-bottom: 0;
}

/* ---- Tables ---- */
.ir-table-wrapper {
    overflow-x: auto;
}

.ir-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    margin-bottom:0rem;
}

.ir-table th {
    background: #f5f4f2;
    color: #565451;
    font-weight: 600;
    padding: 0.6rem 1rem;
    text-align: left;
    border-bottom: 2px solid #e0dfdb;
    white-space: nowrap;
}

.ir-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.ir-table tr:last-child td {
    border-bottom: none;
}

.ir-table tr:hover td {
    background: #faf9f8;
}

.ir-ref {
    font-size: 0.75rem;
    color: #797574;
    display: block;
}

/* ---- Status Badges ---- */
.ir-status {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ir-status--live {
    background: #d4edda;
    color: #155724;
}

.ir-status--draft {
    background: #f8d7da;
    color: #721c24;
}

.ir-app-status {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 30px;
    font-weight: 600;
    background: #e2e3e5;
    color: #383d41;
}

.ir-app-status--pending { background: #fff3cd; color: #856404; }
.ir-app-status--reviewed { background: #cce5ff; color: #004085; }
.ir-app-status--shortlisted { background: #d4edda; color: #155724; }
.ir-app-status--rejected { background: #f8d7da; color: #721c24; }

/* ---- Notices ---- */
.ir-notice {
    padding: 1rem 1.25rem;
    border-radius: 4px;
    background: #f5f4f2;
    border-left: 3px solid #A19D9C;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.ir-notice--warning {
    background: #fff3cd;
    border-color: #f0b429;
    color: #5c4a00;
}

.ir-notice--error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.ir-notice--success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.ir-notice--closed {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.ir-hr-notice {
    background: #fff3cd;
    border-left: 3px solid #f0b429;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0 1rem;
    font-size: 0.85rem;
    color: #5c4a00;
}

/* ---- Application Cards ---- */
.ir-application-card {
    padding: 1.25rem;
    border-bottom: 1px solid #e8e7e5;
}

.ir-application-card:last-child {
    border-bottom: none;
}

.ir-application-card h5 {
    font-size: 1rem;
    color: #2d2d2b;
    margin-bottom: 0.4rem;
}

.ir-applied-date {
    font-size: 0.8rem;
    color: #797574;
    margin-bottom: 0.4rem;
}

.ir-statement {
    background: #faf9f8;
    border-left: 3px solid #e0dfdb;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.ir-hr-data {
    background: #fffbf0;
    border: 1px dashed #f0b429;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
}

/* ---- Back Link ---- */
.ir-back-link {
    display: inline-block;
    font-size: 0.85rem;
    color: #565451;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.ir-back-link:hover {
    color: #2d2d2b;
}

/* ---- Buttons ---- */
.ir-btn {
    font-size: 0.875rem !important;
}

.ir-btn--primary {
    background-color: #2d2d2b !important;
    color: #fff !important;
}

.ir-btn--primary:hover {
    background-color: #565451 !important;
}

/* ---- Jobs Listing (Public) ---- */
.ir-jobs-listing {
    padding: 1.5rem 0;
}

.ir-jobs-page .ir-filter-form {
    background: #f5f4f2;
    padding: 1.25rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    border: none;
}

.ir-job-card {
    background: #fff;
    border: 1px solid #e0dfdb;
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
}

.ir-job-card:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

.ir-job-card__title {
    font-size: 1.15rem;
    color: #2d2d2b;
    margin-bottom: 0.5rem;
}

.ir-job-card__meta {
    margin-bottom: 0.4rem;
}

.ir-meta-tag {
    display: inline-block;
    font-size: 0.75rem;
    background: #f5f4f2;
    border: 1px solid #e0dfdb;
    border-radius: 30px;
    padding: 0.15rem 0.6rem;
    margin-right: 0.3rem;
    margin-bottom:0.3rem;
    color: #565451;
}

.ir-job-card__wage {
    font-weight: 600;
    font-size: 0.95rem;
    color: #2d2d2b;
    margin-bottom: 0.25rem;
}

.ir-job-card__closing {
    font-size: 0.8rem;
    color: #797574;
    margin-bottom: 0;
}

.ir-job-card__excerpt {
    font-size: 0.875rem;
    color: #565451;
    border-top: 1px solid #e8e7e5;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.ir-no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #797574;
}

/* ---- Single Job Page ---- */
.ir-job-header {
    background-color: #2d2d2b;
    background-image:url('../img/gp-corporate-header.webp');
}

.ir-job-header h1 {
    color: #fff !important;
}

.ir-job-hotel {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.ir-job-content {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    margin-top:2rem;
}

.ir-apply-box {
    background: #f5f4f2;
    border-radius: 6px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom:2rem;
}

.ir-apply-box h4 {
    margin-bottom: 0.5rem;
}

.ir-job-summary {
    background: #f5f4f2;
    border-radius: 6px;
    padding: 1.25rem;
    position: sticky;
    top: 2rem;
}

.ir-job-summary h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #797574;
    margin-bottom: 1rem;
}

.ir-job-summary__list {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
}

.ir-job-summary__list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0dfdb;
    font-size: 0.875rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.ir-job-summary__list li:last-child {
    border-bottom: none;
}

.ir-job-summary__label {
    color: #797574;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
}

.ir-job-summary__value {
    font-weight: 600;
    color: #2d2d2b;
    text-align: right;
}

.ir-job-summary__value.ir-closed {
    color: #dc3545;
}

/* ---- Responsive ---- */
@media (max-width: 639px) {
    .ir-portal-header {
        padding: 1.25rem 0 2.5rem;
    }
    .ir-portal-title {
        font-size: 1.5rem;
    }
    .ir-stat-card__number {
        font-size: 2rem;
    }
    .ir-table {
        font-size: 0.8rem;
    }
    .ir-table th,
    .ir-table td {
        padding: 0.5rem 0.6rem;
    }
}

/* ---- Pagination ---- */
.ir-pagination {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0 1rem;
    flex-wrap: wrap;
}
.ir-pagination__item {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border: 1px solid #2d2d2b;
    color: #2d2d2b;
    font-size: 0.875rem;
    text-decoration: none;
}
.ir-pagination__item--active,
.ir-pagination__item:hover {
    background: #2d2d2b;
    color: #fff;
}

/* ---- Pre-apply questions ---- */
.ir-question {
    padding: 0.9rem 0;
    border-bottom: 1px solid #e8e7e5;
}
.ir-question:last-child {
    border-bottom: none;
}
.ir-question__text {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d2d2b;
}
.ir-question__option {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-right: 1.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

/* ---- Job status toggle button ---- */
.ir-toggle-status {
    min-width: 5.5rem;
}
.ir-toggle--live {
    border-color: #e67e22;
    color: #e67e22;
}
.ir-toggle--live:hover {
    background: #e67e22;
    color: #fff;
}
.ir-toggle--draft {
    border-color: #27ae60;
    color: #27ae60;
}
.ir-toggle--draft:hover {
    background: #27ae60;
    color: #fff;
}

/* ---- Danger Zone (delete account) ---- */
.ir-panel--danger .ir-panel__header {
    background: #fdf2f2;
    border-bottom-color: #f5c6c6;
}
.ir-panel--danger .ir-panel__header h3 {
    color: #c0392b;
}
.ir-panel--danger .ir-panel-content {
    padding: 1rem 1.25rem;
}
.ir-panel--danger .ir-panel-content p {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #555;
}
.ir-danger-zone {
    border-top: 1px solid #f5c6c6;
    padding-top: 1rem;
    margin-top: 0.5rem;
}
.ir-danger-zone summary {
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #c0392b;
    user-select: none;
    padding: 0.25rem 0;
}
.ir-danger-zone summary:hover {
    text-decoration: underline;
}
.ir-delete-account-form {
    margin-top: 1rem;
}
.ir-delete-account-form label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d2d2b;
}
.ir-delete-account-form input[type="text"] {
    display: inline-block;
    width: auto;
    margin-right: 0.75rem;
    font-family: monospace;
    letter-spacing: 0.05em;
}
