/* ==========================================================================
   CORE HIDING LOGIC - Hiding all native WP elements on empty state
   ========================================================================== */

.edit-php.post-type-jobus_job .wp-list-table,
.edit-php.post-type-jobus_job .tablenav.top,
.edit-php.post-type-jobus_job .tablenav.bottom,
.edit-php.post-type-jobus_job .subsubsub,
.edit-php.post-type-jobus_job .search-box,
.edit-php.post-type-jobus_job #posts-filter .wp-header-end,
.edit-php.post-type-jobus_job .page-title-action,
.edit-php.post-type-jobus_job .view-switch {
    display: none !important;
}

/* Page background adjustment */
body.edit-php.post-type-jobus_job {
    background: #f1f1f1 !important;
}

/* Totally center everything in the menu area */
.edit-php.post-type-jobus_job #posts-filter {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: calc(100vh - 120px) !important;
    width: 100% !important;
    float: none !important;
}

/* Wrapping fix for WP margins */
.edit-php.post-type-jobus_job .wrap {
    margin: 0 !important;
    padding: 0 !important;
}

/* Exact Card Styles - 700px */
.jbs-empty-state-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    max-width: 700px;
    width: 100%;
    margin: auto;
}

.jbs-empty-state-icon {
    width: 130px;
    height: 130px;
    margin: 0 auto 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border-radius: 4px;
}

.jbs-empty-state-icon img {
    max-width: 90px;
    height: auto;
}

.jbs-empty-state-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin: 0 0 12px 0;
    padding: 0;
}

.jbs-empty-state-content p {
    font-size: 18px;
    color: #888;
    margin-bottom: 45px;
}

.jbs-empty-state-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

/* Button & Icon Styling with Brand Color Variables */
.jbs-btn-import-ui {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.jbs-btn-create {
    background-color: var(--jbs-brand_color_1, #31795A);
    color: #fff !important;
}

.jbs-btn-import {
    background-color: var(--jbs-brand_color_2, #244034);
    color: #fff !important;
    position: relative;
}

.jbs-btn-icon {
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.jbs-icon-box {
    background: rgba(255, 255, 255, 0.2);
    width: 24px;
    height: 24px;
    justify-content: center;
    border-radius: 4px;
}

.jbs-icon-box .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.jbs-or-separator {
    color: #bbb;
    font-weight: 400;
    font-size: 18px;
    font-style: italic;
}

/* ==========================================================================
   MODAL POPUP STYLES
   ========================================================================== */

.jbs-modal-overlay {
    position: fixed;
    top: 32px;
    left: 160px;
    width: calc(100% - 160px);
    height: calc(100% - 32px);
    background: rgba(0, 0, 0, 0.4);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

/* WP Folded Sidebar */
body.folded .jbs-modal-overlay {
    left: 36px;
    width: calc(100% - 36px);
}

/* WP Mobile Topbar/Sidebar */
@media screen and (max-width: 782px) {
    .jbs-modal-overlay {
        top: 46px;
        left: 0;
        width: 100%;
        height: calc(100% - 46px);
    }
}

.jbs-modal-card {
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    position: relative;
}

.jbs-modal-icon {
    width: 80px;
    height: 80px;
    border: 3px solid #e2e8f0;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jbs-modal-icon .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #cbd5e1;
}

.jbs-modal-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #1a1a1a;
}

.jbs-modal-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 25px;
}

#jbs-import-status {
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.jbs-modal-stats {
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
    font-size: 13px;
    color: #475569;
}

.jbs-modal-stats strong {
    color: #1e293b;
    font-weight: 700;
}

.jbs-modal-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.jbs-modal-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.jbs-modal-confirm {
    background-color: var(--jbs-brand_color_1, #31795A);
    color: #fff;
}

.jbs-modal-cancel {
    background-color: #64748b;
    color: #fff;
}

.jbs-modal-step {
    display: none;
}

.jbs-modal-step.active {
    display: block;
}

.jbs-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f1f5f9;
    border-top: 4px solid var(--jbs-brand_color_1, #31795A);
    border-radius: 50%;
    margin: 0 auto 25px auto;
    animation: jbs-spin 1s linear infinite;
}

@keyframes jbs-spin {
    to {
        transform: rotate(360deg);
    }
}