/* ==========================================================================
   1. GLOBAL STYLES & VARIABLES
   ========================================================================== */
:root {
    /* Colors */
    --wjp-color-primary: #4f46e5;
    --wjp-color-primary-dark: #4338ca;
    --wjp-color-primary-light: #e0e7ff;
    --wjp-color-primary-bg: #eef2ff;
    --wjp-color-secondary: #0ea5e9;
    --wjp-color-success: #10b981;
    --wjp-color-success-text: #065f46;
    --wjp-color-success-bg: #d1fae5;
    --wjp-color-warning: #f59e0b;
    --wjp-color-warning-text: #b45309;
    --wjp-color-warning-bg: #fef3c7;
    --wjp-color-danger: #ef4444;
    --wjp-color-danger-text: #991b1b;
    --wjp-color-danger-bg: #fee2e2;
    --wjp-color-slate: #475569;
    --wjp-color-slate-bg: #e2e8f0;

    /* Text */
    --wjp-text-dark: #1e293b;
    --wjp-text-medium: #475569;
    --wjp-text-light: #64748b;
    --wjp-text-lighter: #94a3b8;
    --wjp-text-white: #ffffff;

    /* Backgrounds & Borders */
    --wjp-bg-body: #f8fafc;
    --wjp-bg-card: #ffffff;
    --wjp-bg-light: #f1f5f9;
    --wjp-bg-hover: #f8fafc;
    --wjp-border-color: #e2e8f0;

    /* Misc */
    --wjp-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --wjp-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --wjp-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --wjp-border-radius: 0.75rem;
    --wjp-border-radius-sm: 0.5rem;

    /* Fonts */
    --wjp-font-family: 'Inter', sans-serif;
    --wjp-font-weight-normal: 400;
    --wjp-font-weight-medium: 500;
    --wjp-font-weight-semibold: 600;
    --wjp-font-weight-bold: 700;
    --wjp-font-size-xs: 0.75rem;
    --wjp-font-size-sm: 0.875rem;
    --wjp-font-size-base: 1rem;
    --wjp-font-size-lg: 1.125rem;
    --wjp-font-size-xl: 1.25rem;
    --wjp-font-size-2xl: 1.5rem;
    --wjp-font-size-3xl: 1.875rem;
}

#wjp-dashboard-wrapper div#wpjobportaladmin-data {
    font-family: var(--wjp-font-family);
    background-color: var(--wjp-bg-body);
    color: var(--wjp-text-medium);
}

#wjp-dashboard-wrapper div#wpjobportaladmin-data * {
    box-sizing: border-box;
}

#wjp-dashboard-wrapper div#wpjobportaladmin-data a {
    text-decoration: none;
}
#wjp-dashboard-wrapper div#wpjobportaladmin-data a.wjp-view-all-link{
    width: fit-content;
}

/* Style for 'No Records' messages */
#wjp-dashboard-wrapper .wjp-no-records {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--wjp-text-light);
    font-style: italic;
}

#wjp-dashboard-wrapper table .wjp-no-records td {
    border-bottom: none;
}
/*--------------------------------------------------------------------------------------------------*/







/* ==========================================================================
   2. LAYOUT & CORE COMPONENTS
   ========================================================================== */
/* Main Layout */
#wjp-dashboard-wrapper .wjp-main-content {
    flex-grow: 1;
  
}

/* Header */
#wjp-dashboard-wrapper div#wjp-header {
        display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(90deg, rgba(79, 70, 229, 1) 0%, rgba(14, 23, 199, 1) 50%, rgba(80, 35, 210, 1) 100%);
    padding: 20px 20px;
    min-height: 200px;
    border-radius: 10px;
}
#wjp-dashboard-wrapper div#wjp-header div.wjp-header-actions,
#wjp-dashboard-wrapper .wjp-header-title{
        margin-top: 35px;
}
#wjp-dashboard-wrapper div#wjp-header div.wjp-header-title div.wjp-h2 {
    font-size: var(--wjp-font-size-3xl);
    font-weight: var(--wjp-font-weight-bold);
    color: #fff;
    margin: 0;
}

#wjp-dashboard-wrapper div#wjp-header div.wjp-header-title p {
    margin-top: 15px;
    color: #fff;
}

#wjp-dashboard-wrapper div#wjp-header div.wjp-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Buttons */
#wjp-dashboard-wrapper a.wjp-btn,
#wjp-dashboard-wrapper button.wjp-btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--wjp-border-radius-sm);
    font-weight: var(--wjp-font-weight-medium);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    box-shadow: var(--wjp-shadow);
    font-family: var(--wjp-font-family);
    font-size: var(--wjp-font-size-sm);
}

#wjp-dashboard-wrapper a.wjp-btn {
    font-size: var(--wjp-font-size-base);
}

#wjp-dashboard-wrapper button.wjp-btn-sm {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
}

#wjp-dashboard-wrapper a.wjp-btn-secondary,
#wjp-dashboard-wrapper button.wjp-btn-sm {
    background-color: var(--wjp-bg-card);
    color: var(--wjp-text-medium);
    border-color: var(--wjp-border-color);
}

#wjp-dashboard-wrapper a.wjp-btn-secondary:hover,
#wjp-dashboard-wrapper button.wjp-btn-sm:not(.wjp-btn-primary):hover {
    background-color: var(--wjp-bg-hover);
    border-color: #d1d5db;
}

#wjp-dashboard-wrapper a.wjp-btn-primary,
#wjp-dashboard-wrapper button.wjp-btn-sm.wjp-btn-primary {
   padding: 10px 15px;
    background-color: #2ecc71;
    border: 1px solid #2ecc71;
    color: white;
    border-radius: 5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.2s, transform 0.1s;
}

#wjp-dashboard-wrapper a.wjp-btn-primary:hover,
#wjp-dashboard-wrapper button.wjp-btn-sm.wjp-btn-primary:hover {
        background-color: #1b1b1b;
    border: 1px solid #1b1b1b;
    color: white;
}

#wjp-dashboard-wrapper a.wjp-btn i.wjp-btn-icon {
    margin-right: 0.5rem;
}

#wjp-dashboard-wrapper a.wjp-btn-xs {
    padding: 0.25rem 0.75rem;
    font-size: var(--wjp-font-size-xs);
    font-weight: var(--wjp-font-weight-medium);
    border-radius: 9999px;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
}

#wjp-dashboard-wrapper a.wjp-btn-xs.wjp-btn-slate {
    background-color: var(--wjp-bg-light);
    color: #334155;
}

#wjp-dashboard-wrapper a.wjp-btn-xs.wjp-btn-slate:hover {
    background-color: var(--wjp-border-color);
}
.wjp-action-card:hover .wjp-action-icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
}
#wpjobportaladmin-wrapper .wjp-stat-item:hover {
    transform: translateY(-4px);
    background: #eef2ff;
}
#wjp-dashboard-wrapper a.wjp-view-all-link,
#wjp-dashboard-wrapper a.wjp-btn-xs.wjp-btn-indigo {
       border-radius: 5px;
    font-size: 13px !important;
    background-color: var(--wjp-color-primary-light);
    color: var(--wjp-color-primary);
    padding: 0.25rem 0.75rem;
    font-weight: var(--wjp-font-weight-medium);
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
}
#wjp-dashboard-wrapper a.wjp-view-all-link:hover,
#wjp-dashboard-wrapper a.wjp-btn-xs.wjp-btn-indigo:hover {
    background-color: #c7d2fe;
}

/* Dropdown */
#wjp-dashboard-wrapper div.wjp-dropdown {
    position: relative;
}

/* ==========================================================================
   START: REDESIGNED SCREEN OPTIONS POPUP STYLES
   ========================================================================== */

#wjp-dashboard-wrapper .wjp-so-popup { /* New name for dropdown menu */
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 585px; /* Wider */
    background-color: var(--wjp-bg-card);
    border-radius: var(--wjp-border-radius); /* Larger radius */
    box-shadow: var(--wjp-shadow-lg);
    border: 1px solid var(--wjp-border-color);
    z-index: 100;
    display: none;
    overflow: hidden;
    animation: wjp-fade-in 0.2s ease-out;
}

@keyframes wjp-fade-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

#wjp-dashboard-wrapper .wjp-so-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--wjp-border-color);
    background-color: var(--wjp-bg-light);
}

#wjp-dashboard-wrapper .wjp-so-header .wjp-so-title {
    margin: 0;
    font-weight: var(--wjp-font-weight-semibold);
    font-size: var(--wjp-font-size-lg);
    color: var(--wjp-text-dark);
}

#wjp-dashboard-wrapper .wjp-so-header .wjp-so-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--wjp-text-lighter);
    font-size: 1.25rem;
    line-height: 1;
    padding: 0.25rem;
    transition: color 0.2s;
}
#wjp-dashboard-wrapper .wjp-so-header .wjp-so-close:hover {
    color: var(--wjp-text-dark);
}

#wjp-dashboard-wrapper .wjp-so-content {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

#wjp-dashboard-wrapper .wjp-so-section {
    margin-bottom: 1.5rem;
}
#wjp-dashboard-wrapper .wjp-so-section:last-child {
    margin-bottom: 0;
}

#wjp-dashboard-wrapper .wjp-so-section-title {
    font-size: var(--wjp-font-size-xs);
    font-weight: var(--wjp-font-weight-bold);
    color: var(--wjp-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--wjp-border-color);
}

#wjp-dashboard-wrapper .wjp-so-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

#wjp-dashboard-wrapper .wjp-so-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--wjp-bg-body);
    padding: 0.75rem 1rem;
    border-radius: var(--wjp-border-radius-sm);
    border: 1px solid var(--wjp-border-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}

#wjp-dashboard-wrapper .wjp-so-item:hover {
    border-color: #d1d5db;
}

#wjp-dashboard-wrapper .wjp-so-item-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--wjp-font-size-sm);
    color: var(--wjp-text-medium);
    font-weight: var(--wjp-font-weight-medium);
}

#wjp-dashboard-wrapper .wjp-so-item-label i {
    color: var(--wjp-text-light);
    width: 16px;
    text-align: center;
}

/* Redesigned Toggle Switch */
#wjp-dashboard-wrapper .wjp-so-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

#wjp-dashboard-wrapper .wjp-so-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

#wjp-dashboard-wrapper .wjp-so-toggle .wjp-so-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

#wjp-dashboard-wrapper .wjp-so-toggle .wjp-so-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

#wjp-dashboard-wrapper .wjp-so-toggle input:checked + .wjp-so-slider {
    background-color: var(--wjp-color-primary);
}

#wjp-dashboard-wrapper .wjp-so-toggle input:checked + .wjp-so-slider:before {
    transform: translateX(20px);
}

#wjp-dashboard-wrapper .wjp-so-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--wjp-border-color);
    background-color: var(--wjp-bg-light);
}

#wjp-dashboard-wrapper .wjp-so-footer .wjp-btn-sm.wjp-btn-reset {
    background-color: transparent;
    color: var(--wjp-text-medium);
    border: none;
    box-shadow: none;
    font-weight: var(--wjp-font-weight-medium);
}

#wjp-dashboard-wrapper .wjp-so-footer .wjp-btn-sm.wjp-btn-reset:hover {
    background-color: var(--wjp-border-color);
    color: var(--wjp-text-dark);
}

/* ==========================================================================
   END: REDESIGNED SCREEN OPTIONS POPUP STYLES
   ========================================================================== */

/* Cards */
#wjp-dashboard-wrapper div.wjp-card {
    background-color: var(--wjp-bg-card);
    padding: 1.5rem;
    border-radius: var(--wjp-border-radius);
    box-shadow: var(--wjp-shadow);
    border: 1px solid var(--wjp-border-color);
}

#wjp-dashboard-wrapper div.wjp-grid-section div.wjp-card {
    margin-bottom: 0;
}

#wjp-dashboard-wrapper div.wjp-card:not(div.wjp-grid-section div.wjp-card) {
    margin-bottom: 2.5rem;
}

#wjp-dashboard-wrapper div.wjp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

#wjp-dashboard-wrapper div.wjp-card-title,
#wjp-dashboard-wrapper div.wjp-h3 {
    font-size: var(--wjp-font-size-lg);
    font-weight: var(--wjp-font-weight-semibold);
    color: var(--wjp-text-dark);
    margin: 0 0 1rem 0;
}

#wjp-dashboard-wrapper div.wjp-card a.wjp-view-all-link {
    font-size: var(--wjp-font-size-sm);
    font-weight: var(--wjp-font-weight-medium);
}

#wjp-dashboard-wrapper div.wjp-card a.wjp-view-all-link:hover {
    text-decoration: underline;
}

/* Tables */
#wjp-dashboard-wrapper div.wjp-table-wrapper {
    overflow-x: auto;
}

#wjp-dashboard-wrapper table.wjp-table {
    width: 100%;
    text-align: left;
    font-size: var(--wjp-font-size-sm);
    border-collapse: collapse;
}

#wjp-dashboard-wrapper table.wjp-table thead {
    font-size: var(--wjp-font-size-xs);
    text-transform: uppercase;
    color: var(--wjp-text-light);
    background-color: var(--wjp-bg-light);
}

#wjp-dashboard-wrapper table.wjp-table th,
#wjp-dashboard-wrapper table.wjp-table td {
        padding: 16px 24px;
}

#wjp-dashboard-wrapper table.wjp-table th:first-child {
    border-top-left-radius: var(--wjp-border-radius-sm);
    border-bottom-left-radius: var(--wjp-border-radius-sm);
}

#wjp-dashboard-wrapper table.wjp-table th:last-child {
    border-top-right-radius: var(--wjp-border-radius-sm);
    border-bottom-right-radius: var(--wjp-border-radius-sm);
}

#wjp-dashboard-wrapper table.wjp-table tbody tr {
    border-bottom: 1px solid var(--wjp-border-color);
}

#wjp-dashboard-wrapper table.wjp-table tbody tr:last-child {
    border-bottom: none;
}

#wjp-dashboard-wrapper table.wjp-table td.wjp-table-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#wjp-dashboard-wrapper table.wjp-table td.wjp-table-actions a {
    font-weight: var(--wjp-font-weight-medium);
}

#wjp-dashboard-wrapper table.wjp-table td.wjp-table-actions a:hover {
    text-decoration: underline;
}

/* Badges & Tags */
#wjp-dashboard-wrapper span.wjp-status-badge {
    padding: 0.25rem 0.625rem;
    font-size: var(--wjp-font-size-xs);
    font-weight: var(--wjp-font-weight-medium);
    border-radius: 5px;
}
td.wjp-table-actions a{color: var(--wjp-color-primary); }
#wjp-dashboard-wrapper span.wjp-status-active {
    color: var(--wjp-color-success-text);
    background-color: var(--wjp-color-success-bg);
}

#wjp-dashboard-wrapper span.wjp-status-closed {
    color: var(--wjp-text-medium);
    background-color: var(--wjp-color-slate-bg);
}

#wjp-dashboard-wrapper span.wjp-tag {
    padding: 5px 10px;
    font-size: var(--wjp-font-size-xs);
    font-weight: var(--wjp-font-weight-medium);
    border-radius: 5px;
}

#wjp-dashboard-wrapper span.wjp-tag-sky {
    color: #0c4a6e;
    background-color: #e0f2fe;
}

#wjp-dashboard-wrapper span.wjp-tag-emerald {
    color: var(--wjp-color-success-text);
    background-color: var(--wjp-color-success-bg);
}

#wjp-dashboard-wrapper span.wjp-tag-purple {
    color: #5b21b6;
    background-color: #ede9fe;
}

#wjp-dashboard-wrapper span.wjp-tag-amber {
    background-color: var(--wjp-color-warning-bg);
    color: #92400e;
}

#wjp-dashboard-wrapper span.wjp-tag-slate {
    background-color: var(--wjp-bg-light);
    color: #334155;
}

#wjp-dashboard-wrapper span.wjp-tag-blue {
    background-color: #dbeafe;
    color: #1e40af;
}

#wjp-dashboard-wrapper span.wjp-tag-green {
    background-color: var(--wjp-color-success-bg);
    color: var(--wjp-color-success-text);
}

#wjp-dashboard-wrapper span.wjp-tag-purple-alt {
    background-color: #f5d0fe;
    color: #701a75;
}

/* Lists */
#wjp-dashboard-wrapper div.wjp-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#wjp-dashboard-wrapper div.wjp-list-item {
   display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    transition: background-color 0.2s;
    border-bottom: 1px solid #dbdbdb;
}
#wjp-dashboard-wrapper .wjp-list-item.wjp-list-item-simple div.wjp-item-main-info{    padding: 1rem;}
#wjp-dashboard-wrapper .wjp-item-text p.wjp-log-text.wjp-log-error{margin: 0;}
#wjp-dashboard-wrapper div.wjp-list-item:hover {
    background-color: var(--wjp-bg-hover);

}

#wjp-dashboard-wrapper div.wjp-list-item-simple {
    padding: 0;
}

#wjp-dashboard-wrapper div.wjp-list-item-simple:hover {
    background-color: transparent;
}

#wjp-dashboard-wrapper div.wjp-item-main-info {
    display: flex;
    align-items: center;
}

#wjp-dashboard-wrapper div.wjp-item-main-info img.wjp-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 5px;
    margin-right: 1rem;
}

#wjp-dashboard-wrapper div.wjp-item-main-info img.wjp-logo {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 5px;
    margin-right: 1rem;
}

#wjp-dashboard-wrapper p.wjp-name {
    font-weight: var(--wjp-font-weight-semibold);
    font-size: var(--wjp-font-size-sm);
    color: var(--wjp-text-dark);
    margin: 0;
}

#wjp-dashboard-wrapper p.wjp-name a {
   color: inherit;
   text-decoration: none;
}
#wjp-dashboard-wrapper p.wjp-name a:hover {
    color: var(--wjp-color-primary);
    text-decoration: underline;
}

#wjp-dashboard-wrapper p.wjp-subtext {
    font-size: var(--wjp-font-size-xs);
    color: var(--wjp-text-light);
    margin: 0.1rem 0 0 0;
}

#wjp-dashboard-wrapper div.wjp-item-aside-info {
    text-align: right;
}

#wjp-dashboard-wrapper p.wjp-date {
    font-size: var(--wjp-font-size-xs);
    color: var(--wjp-text-lighter);
    margin-top: 0.25rem;
}

#wjp-dashboard-wrapper span.wjp-timestamp {
    font-size: var(--wjp-font-size-xs);
    color: var(--wjp-text-lighter);
    flex-shrink: 0;
}

/* --- MODIFIED --- Converted Grid Section to Flexbox for flexible layouts */
#wjp-dashboard-wrapper div.wjp-grid-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* ==========================================================================
   3. SECTION-SPECIFIC STYLES
   ========================================================================== */

/* Quick Actions */
#wjp-dashboard-wrapper div#wjp-quick-actions {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    margin-top: -35px;
}

#wjp-dashboard-wrapper div#wjp-quick-actions a.wjp-action-card {
    background-color: var(--wjp-bg-card);
    padding: 1.25rem;
    border-radius: var(--wjp-border-radius);
    box-shadow: var(--wjp-shadow);
    border: 1px solid var(--wjp-border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

#wjp-dashboard-wrapper div#wjp-quick-actions a.wjp-action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--wjp-shadow-lg);
}

#wjp-dashboard-wrapper div#wjp-quick-actions div.wjp-action-icon-wrapper {
        width: 70px;
    height: 70px;
    font-size: 20px;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

#wjp-dashboard-wrapper div#wjp-quick-actions div.wjp-bg-indigo {
    background-color: var(--wjp-color-primary-light);
    color: var(--wjp-color-primary);
}

#wjp-dashboard-wrapper div#wjp-quick-actions div.wjp-bg-sky {
    background-color: #e0f2fe;
    color: #0369a1;
}

#wjp-dashboard-wrapper div#wjp-quick-actions div.wjp-bg-emerald {
    background-color: var(--wjp-color-success-bg);
    color: var(--wjp-color-success-text);
}

#wjp-dashboard-wrapper div#wjp-quick-actions div.wjp-bg-amber {
    background-color: var(--wjp-color-warning-bg);
    color: var(--wjp-color-warning-text);
}

#wjp-dashboard-wrapper div#wjp-quick-actions div.wjp-bg-slate {
    background-color: var(--wjp-color-slate-bg);
    color: var(--wjp-color-slate);
}

#wjp-dashboard-wrapper div#wjp-quick-actions p.wjp-action-title {
    font-weight: var(--wjp-font-weight-semibold);
    font-size: var(--wjp-font-size-sm);
    color: var(--wjp-text-dark);
    margin: 0;
}

#wjp-dashboard-wrapper div#wjp-quick-actions p.wjp-action-subtitle {
        color: var(--wjp-text-light);
    margin: 0.3rem 0 0 0;
    font-size: 14px;
}

/* --- MODIFIED --- Main Grid (Platform Growth & Quick Stats) Flexbox Layout */
#wjp-dashboard-wrapper #wjp-platform-growth {
    flex: 2 1 60%; /* This section takes up roughly 2/3 of the space */
    min-width: 300px;
}
#wjp-dashboard-wrapper #wjp-quick-stats {
    flex: 1 1 30%; /* This section takes up roughly 1/3 of the space */
    min-width: 300px;
}


#wjp-dashboard-wrapper div#wjp-platform-growth div.wjp-chart-container {
    height: 21.5rem;
}

#wjp-dashboard-wrapper div#wjp-platform-growth div.wjp-chart-legend {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: var(--wjp-font-size-sm);
}

#wjp-dashboard-wrapper div#wjp-platform-growth span.wjp-legend-item {
    display: flex;
    align-items: center;
}

#wjp-dashboard-wrapper div#wjp-platform-growth span.wjp-legend-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
    margin-right: 0.5rem;
}

#wjp-dashboard-wrapper div#wjp-quick-stats div.wjp-stats-list {
    display:flex;
    flex-wrap: wrap;
    gap: 16px;
}

#wjp-dashboard-wrapper div#wjp-quick-stats div.wjp-stat-item {
    background: #f8fafc;
    width: calc(50% - 8px);
    min-width: fit-content;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e7e7e7;
    transition: 0.2s;
    flex: 1 1 auto;
}

#wjp-dashboard-wrapper div#wjp-quick-stats div.wjp-stat-icon-wrapper {
    flex-shrink: 0;
    padding: 0.75rem;
    border-radius: var(--wjp-border-radius-sm);
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

#wjp-dashboard-wrapper div#wjp-quick-stats div.wjp-bg-emerald {
    background-color: var(--wjp-color-success-bg);
    color: var(--wjp-color-success-text);
}

#wjp-dashboard-wrapper div#wjp-quick-stats div.wjp-bg-sky {
    background-color: #e0f2fe;
    color: #0369a1;
}

#wjp-dashboard-wrapper div#wjp-quick-stats div.wjp-bg-indigo {
    background-color: var(--wjp-color-primary-light);
    color: var(--wjp-color-primary);
}

#wjp-dashboard-wrapper div#wjp-quick-stats div.wjp-bg-amber {
    background-color: var(--wjp-color-warning-bg);
    color: var(--wjp-color-warning-text);
}

#wjp-dashboard-wrapper div#wjp-quick-stats div.wjp-bg-green {
    background-color: #dcfce7;
    color: #16a34a;
}

#wjp-dashboard-wrapper div#wjp-quick-stats div.wjp-bg-red {
    background-color: var(--wjp-color-danger-bg);
    color: var(--wjp-color-danger-text);
}

#wjp-dashboard-wrapper div#wjp-quick-stats p.wjp-stat-label {
    font-size: var(--wjp-font-size-sm);
    color: var(--wjp-text-light);
    margin: 0;
}

#wjp-dashboard-wrapper div#wjp-quick-stats p.wjp-stat-value {
    font-size: var(--wjp-font-size-xl);
    font-weight: var(--wjp-font-weight-bold);
    color: var(--wjp-text-dark);
    margin: 0.1rem 0 0 0;
}

/* Recent Jobs */
#wjp-dashboard-wrapper #wjp-recent-jobs td.wjp-job-title {
    font-weight: var(--wjp-font-weight-semibold);
    color: var(--wjp-text-dark);
}
#wjp-dashboard-wrapper #wjp-recent-jobs td.wjp-job-title a,
#wjp-dashboard-wrapper #wjp-recent-jobs td.wjp-company-name a {
    color: inherit;
    text-decoration: none;
}
#wjp-dashboard-wrapper #wjp-recent-jobs td.wjp-job-title a:hover,
#wjp-dashboard-wrapper #wjp-recent-jobs td.wjp-company-name a:hover {
    color: var(--wjp-color-primary);
    text-decoration: underline;
}
#wjp-dashboard-wrapper #wjp-recent-jobs td.wjp-company-name {
    color: var(--wjp-text-medium);
}

/* Status & Category Charts */
#wjp-dashboard-wrapper #wjp-new-charts {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 2.5rem;
}

#wjp-dashboard-wrapper #wjp-new-charts .wjp-chart-container {
    min-height: 16rem;
}

#wjp-dashboard-wrapper #wjp-new-charts .wjp-chart-card {
    flex: 1 1 auto;
    min-width: 300px; /* Prevent charts from becoming too small */
    width: calc(50% - 10px);
    background-color: var(--wjp-bg-card);
    padding: 1.5rem;
    border-radius: var(--wjp-border-radius);
    box-shadow: var(--wjp-shadow);
    border: 1px solid var(--wjp-border-color);
}

/* --- ADDED --- Generic 50/50 Flexbox Layout for multiple sections */
#wjp-dashboard-wrapper div.wjp-new-sections.wjp-card,
#wjp-dashboard-wrapper div.wjp-financials.wjp-card,
#wjp-dashboard-wrapper div.wjp-system-logs.wjp-card, /* System Logs is now 50/50 */
#wjp-dashboard-wrapper div.wjp-latest-members.wjp-card {
    flex: 1 1 calc(50% - 0.75rem); /* Creates a two-column layout accounting for gap */
    min-width: 300px; /* Ensures items don't get too squished before wrapping */
}

/* Applies & Resumes */
#wjp-dashboard-wrapper div.wjp-new-sections div.wjp-apply-list {
    gap: 1rem;
}

#wjp-dashboard-wrapper div.wjp-new-sections div.wjp-applicant-info {
    display: flex;
    align-items: flex-start;
}

#wjp-dashboard-wrapper div.wjp-new-sections div.wjp-applicant-text p {
    margin: 5px 0;
}

#wjp-dashboard-wrapper div.wjp-new-sections p.wjp-text-1 {
    font-size: var(--wjp-font-size-sm);
    color: var(--wjp-text-light);
}

#wjp-dashboard-wrapper div.wjp-new-sections p.wjp-text-1 strong {
    font-weight: var(--wjp-font-weight-bold);
    color: var(--wjp-text-dark);
}

/* Consolidated and corrected link color rules */
#wjp-dashboard-wrapper div.wjp-new-sections p.wjp-text-1 strong a,
#wjp-dashboard-wrapper div.wjp-new-sections p.wjp-job-title a,
#wjp-dashboard-wrapper div.wjp-new-sections p.wjp-company-loc a {
   color: inherit;
   text-decoration: none;
}
#wjp-dashboard-wrapper div.wjp-new-sections p.wjp-text-1 strong a:hover,
#wjp-dashboard-wrapper div.wjp-new-sections p.wjp-job-title a:hover,
#wjp-dashboard-wrapper div.wjp-new-sections p.wjp-company-loc a:hover {
    color: var(--wjp-color-primary);
    text-decoration: underline;
}

#wjp-dashboard-wrapper div.wjp-new-sections p.wjp-job-title {
    font-weight: var(--wjp-font-weight-semibold);
    color: var(--wjp-text-dark);
}

#wjp-dashboard-wrapper div.wjp-new-sections p.wjp-company-loc {
    font-size: var(--wjp-font-size-xs);
    color: var(--wjp-text-light);
    margin-top: 0.125rem;
}

#wjp-dashboard-wrapper div.wjp-new-sections div.wjp-apply-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#wjp-dashboard-wrapper div.wjp-new-sections div.wjp-item-footer {
    margin-top: 0.5rem;
    padding-left: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#wjp-dashboard-wrapper div.wjp-new-sections div.wjp-tag-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap; /* Allow tags to wrap on small screens */
}

#wjp-dashboard-wrapper div.wjp-new-sections div.wjp-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#wjp-dashboard-wrapper div.wjp-new-sections div.wjp-list {
    gap: 0.5rem;
}

#wjp-dashboard-wrapper div.wjp-new-sections div.wjp-apply-item {
    padding: 1rem;
    transition: background-color 0.2s;
        border-bottom: 1px solid #ececec;
}

#wjp-dashboard-wrapper div.wjp-new-sections div.wjp-apply-item:hover {
    background-color: var(--wjp-bg-hover);
}
#wjp-dashboard-wrapper div.wjp-applicant-info img.wjp-avatar{
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 5px;
    margin-right: 1rem;
}

/* Financials (Subscriptions & Payments) */
#wjp-dashboard-wrapper div.wjp-financials span.wjp-company-name {
    font-weight: var(--wjp-font-weight-semibold);
    color: var(--wjp-text-dark);
}
#wjp-dashboard-wrapper div.wjp-financials span.wjp-company-name a {
    color: inherit;
    text-decoration: none;
}
 #wjp-dashboard-wrapper div.wjp-financials span.wjp-company-name a:hover {
    color: var(--wjp-color-primary);
    text-decoration: underline;
}

#wjp-dashboard-wrapper div.wjp-financials span.wjp-plan-pro {
    font-weight: var(--wjp-font-weight-semibold);
    color: var(--wjp-color-success);
    font-weight: 600;
    color: var(--wjp-color-primary);
}

#wjp-dashboard-wrapper div.wjp-financials span.wjp-plan-ent {
    font-weight: var(--wjp-font-weight-semibold);
    color: var(--wjp-color-primary);
}

#wjp-dashboard-wrapper div.wjp-financials span.wjp-plan-basic {
    font-weight: var(--wjp-font-weight-semibold);
    color: var(--wjp-color-secondary);
}

#wjp-dashboard-wrapper div.wjp-financials p.wjp-amount {
    font-weight: var(--wjp-font-weight-semibold);
    color: var(--wjp-color-success);
    margin: 0;
}

/* --- MODIFIED --- Resetting old grid column spans as they are no longer needed */
#wjp-dashboard-wrapper div.wjp-system-logs div.wjp-col-span-3,
#wjp-dashboard-wrapper div.wjp-system-logs div.wjp-col-span-2 {
     grid-column: initial;
}

/* Improved Activity Log Styles */
#wjp-dashboard-wrapper div.wjp-system-logs div.wjp-list {
    gap: 0; /* Use padding/borders for separation */
}
#wjp-dashboard-wrapper div.wjp-system-logs div.wjp-activity-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0.5rem;
    margin: 0 -0.5rem;
    border-bottom: 1px solid var(--wjp-border-color);
    transition: background-color 0.2s;
    border-radius: var(--wjp-border-radius-sm);
}
#wjp-dashboard-wrapper div.wjp-system-logs .wjp-list > div:last-child.wjp-activity-item {
    border-bottom: none;
}

#wjp-dashboard-wrapper div.wjp-system-logs div.wjp-activity-icon {
    flex-shrink: 0;
    margin-top: 0.125rem;
    margin-right: 1rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
}
#wjp-dashboard-wrapper div.wjp-system-logs div.wjp-activity-icon i {
    font-size: 0.875rem;
}
#wjp-dashboard-wrapper div.wjp-system-logs div.wjp-activity-text {
    font-size: var(--wjp-font-size-sm);
}
#wjp-dashboard-wrapper div.wjp-system-logs div.wjp-activity-text p {
    margin: 0;
    line-height: 1.5;
}
#wjp-dashboard-wrapper div.wjp-system-logs .wjp-activity-text p:first-child {
    color: var(--wjp-text-medium);
    margin-bottom: 0.25rem;
}
#wjp-dashboard-wrapper div.wjp-system-logs .wjp-activity-text p a {
    font-weight: var(--wjp-font-weight-medium);
    color: var(--wjp-color-primary);
}
 #wjp-dashboard-wrapper div.wjp-system-logs .wjp-activity-text p a:hover {
    text-decoration: underline;
}
#wjp-dashboard-wrapper div.wjp-system-logs .wjp-activity-text p strong {
    font-weight: var(--wjp-font-weight-semibold);

}
/* End of Improved Styles */

#wjp-dashboard-wrapper div.wjp-system-logs div.wjp-bg-emerald {
    background-color: var(--wjp-color-success-bg);
    color: var(--wjp-color-success-text);
}
#wjp-dashboard-wrapper div.wjp-system-logs div.wjp-bg-indigo {
    background-color: var(--wjp-color-primary-bg);
    color: var(--wjp-color-primary-dark);
}
#wjp-dashboard-wrapper div.wjp-system-logs div.wjp-bg-sky {
    background-color: #e0f2fe;
    color: #0369a1;
}
#wjp-dashboard-wrapper div.wjp-system-logs div.wjp-bg-amber {
    background-color: var(--wjp-color-warning-bg);
    color: var(--wjp-color-warning-text);
}
#wjp-dashboard-wrapper div.wjp-system-logs div.wjp-bg-slate {
    background-color: var(--wjp-color-slate-bg);
    color: var(--wjp-color-slate);
}

#wjp-dashboard-wrapper div.wjp-system-logs p.wjp-log-text {
    font-weight: var(--wjp-font-weight-medium);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#wjp-dashboard-wrapper div.wjp-system-logs .wjp-log-error { color: #991b1b; }
#wjp-dashboard-wrapper div.wjp-system-logs .wjp-log-warning { color: var(--wjp-color-warning-text); }
#wjp-dashboard-wrapper div.wjp-system-logs .wjp-log-notice { color: var(--wjp-color-secondary); }

#wjp-dashboard-wrapper div.wjp-system-logs .wjp-list .wjp-list-item-simple {
    align-items: flex-start;
}
#wjp-dashboard-wrapper div.wjp-system-logs .wjp-list .wjp-list-item-simple:not(:last-child) {
    border-bottom: 1px solid var(--wjp-border-color);
    padding-bottom: 0.75rem;
}

#wjp-dashboard-wrapper div.wjp-system-logs .wjp-item-text {
        display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border-left: 4px solid transparent;
    background-color: #fff;
    transition: background-color 0.2s;
}
#wjp-dashboard-wrapper div.wjp-system-logs .wjp-timestamp {
    flex-shrink: 0;
}

/* Latest Members (Seekers & Employers) */
#wjp-dashboard-wrapper div.wjp-latest-members p.wjp-name a {
    color: inherit;
    text-decoration: none;
}
#wjp-dashboard-wrapper div.wjp-latest-members p.wjp-name a:hover {
    color: var(--wjp-color-primary);
    text-decoration: underline;
}

/* ==========================================================================
   5. RESPONSIVE STYLES
   ========================================================================== */

/* For Small Desktops and Large Tablets */
@media (max-width: 1200px) {
    /* --- MODIFIED --- Stacking specific flex sections on medium screens */
    #wjp-dashboard-wrapper #wjp-main-grid > .wjp-card,
    #wjp-dashboard-wrapper div.wjp-system-logs.wjp-card {
        flex-basis: 100%; /* Stack these sections earlier */
        min-width: 0;
    }
}

/* For Standard Tablets */
@media (max-width: 1024px) {
    #wjp-dashboard-wrapper div#wjp-sidebar {
        display: none;
    }

    /* --- MODIFIED --- Stacking all flex sections on tablets */
    #wjp-dashboard-wrapper div.wjp-grid-section > .wjp-card {
        flex-basis: 100% !important; /* Stack all cards within these sections */
        min-width: 0;
    }
    
    #wjp-dashboard-wrapper div#wjp-quick-actions {
         grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    }
}

/* For Small Tablets */
@media (max-width: 768px) {
    #wjp-dashboard-wrapper div.wjp-main-content {
        padding: 1.5rem;
    }
    #wjp-dashboard-wrapper .wjp-so-popup {
        width: 90vw;
        max-width: 400px;
    }

    #wjp-dashboard-wrapper div#wjp-header div.wjp-header-title div.wjp-h2 {
        font-size: var(--wjp-font-size-2xl); /* Slightly smaller title on tablets */
    }

    /* Reduce card padding for more content space */
    #wjp-dashboard-wrapper div.wjp-card {
        padding: 1rem;
    }

    /* Reduce table cell padding on tablets */
    #wjp-dashboard-wrapper table.wjp-table th,
    #wjp-dashboard-wrapper table.wjp-table td {
        padding: 16px 24px;
    }
}

/* For Mobile Phones */
@media (max-width: 640px) {
    #wjp-dashboard-wrapper div.wjp-main-content {
        padding: 1rem; /* Further reduce padding for small screens */
    }

    #wjp-dashboard-wrapper div#wjp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem; /* Add gap for spacing */
    }

    #wjp-dashboard-wrapper div#wjp-header div.wjp-header-actions {
        margin-top: 0; /* Remove margin-top as gap is used */
        width: 100%;
        flex-wrap: wrap; /* Allow buttons to wrap */
        justify-content: flex-start; /* Align buttons to the start */
    }

    #wjp-dashboard-wrapper .wjp-so-grid {
        grid-template-columns: 1fr;
    }

    #wjp-dashboard-wrapper div#wjp-quick-actions {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
        gap: 1rem; /* Reduce gap on mobile */
    }

    /* Adjust list item layout for mobile to stack content vertically */
    #wjp-dashboard-wrapper div.wjp-list-item,
    #wjp-dashboard-wrapper div.wjp-list-item-simple {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    #wjp-dashboard-wrapper div.wjp-item-aside-info,
    #wjp-dashboard-wrapper .wjp-view-all-link {
        width: 100%;
        text-align: left;
        margin-top: 0.5rem;
    }
    #wjp-dashboard-wrapper .wjp-latest-members .wjp-view-all-link {
        display: inline-block;
        background-color: var(--wjp-bg-light);
        padding: 0.5rem;
        border-radius: var(--wjp-border-radius-sm);
        text-align: center;
    }
    #wjp-dashboard-wrapper p.wjp-date {
        margin-top: 10px;
    }

    /* Stack 'Latest Applies' content on mobile */
    #wjp-dashboard-wrapper div.wjp-apply-item {
        padding: 1rem 0.5rem;
    }
    #wjp-dashboard-wrapper div.wjp-new-sections div.wjp-apply-item-header {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0.5rem;
    }
    #wjp-dashboard-wrapper div.wjp-new-sections div.wjp-item-footer {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 1rem;
        padding-left: 0; /* Remove padding as it's stacked now */
    }
}

/**/
/**/
/* admin coonfgiration layout  */
/**/
/**/

/* --- Base & Layout --- */
#wjp-config-dashboard { height: 100vh; overflow: hidden; }
#wjp-config-dashboard * { box-sizing: border-box; }
#wjp-config-dashboard #app { display: flex; height: 100%; position: relative; }
#wjp-config-dashboard #wjp-sidebar { width: 288px; background-color: var(--wjp-bg-card); border-right: 1px solid var(--wjp-border-color); display: flex; flex-direction: column; flex-shrink: 0; height: 100%; transition: transform 0.3s ease-in-out; z-index: 1; }
#wjp-config-dashboard main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
/* --- Header --- */
#wjp-config-dashboard header { background-color: var(--wjp-bg-card); border-bottom: 1px solid var(--wjp-border-color); height: 64px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; z-index: 20; }
#wjp-config-dashboard header .wjp-header-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
#wjp-config-dashboard header .wjp-header-left #wjp-main-panel-header { font-size: var(--wjp-font-size-lg); font-weight: var(--wjp-font-weight-semibold); color: var(--wjp-text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#wjp-config-dashboard header .wjp-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* --- Sidebar --- */
#wjp-config-dashboard #wjp-sidebar .wjp-sidebar-header { padding: 0 24px; height: 64px; border-bottom: 1px solid var(--wjp-border-color); display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
#wjp-config-dashboard #wjp-sidebar .wjp-sidebar-header .wjp-logo-icon { width: 32px; height: 32px; background-color: var(--wjp-color-primary); color: var(--wjp-text-white); display: flex; align-items: center; justify-content: center; border-radius: var(--wjp-border-radius-sm); flex-shrink: 0; }
#wjp-config-dashboard #wjp-sidebar .wjp-sidebar-header .wjp-title { font-size: var(--wjp-font-size-lg); font-weight: var(--wjp-font-weight-bold); color: var(--wjp-text-dark); margin: 0; }
#wjp-config-dashboard #wjp-sidebar #wjp-settings-nav { flex: 1; overflow-y: auto; padding: 16px; }
#wjp-config-dashboard #wjp-sidebar #wjp-settings-nav ul { list-style: none; padding: 0; margin: 0; }
#wjp-config-dashboard #wjp-sidebar #wjp-settings-nav li:not(:last-child) { border-bottom: 1px solid var(--wjp-bg-light); }
#wjp-config-dashboard #wjp-sidebar #wjp-settings-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--wjp-border-radius-sm); font-weight: var(--wjp-font-weight-medium); transition: all 0.2s; font-size: var(--wjp-font-size-sm); color: var(--wjp-text-medium); text-decoration: none; border-left: 3px solid transparent; }
#wjp-config-dashboard #wjp-sidebar #wjp-settings-nav a:hover { background-color: var(--wjp-bg-light); color: var(--wjp-text-dark); }
#wjp-config-dashboard #wjp-sidebar #wjp-settings-nav a.active { background-color: var(--wjp-color-primary-bg); color: var(--wjp-color-primary); font-weight: var(--wjp-font-weight-semibold); border-left: 3px solid var(--wjp-color-primary); }
#wjp-config-dashboard #wjp-sidebar #wjp-settings-nav a.active i { color: var(--wjp-color-primary); }
#wjp-config-dashboard #wjp-sidebar #wjp-settings-nav a i { width: 20px; text-align: center; color: var(--wjp-text-lighter); flex-shrink: 0; }
/* --- Main Content --- */
#wjp-config-dashboard #wjp-main-panel-content { flex: 1; overflow-y: auto; background-color: var(--wjp-bg-body); position: relative; }
#wjp-config-dashboard #wjp-main-panel-content .wjp-search-panel { background-color: var(--wjp-bg-card); border-bottom: 1px solid var(--wjp-border-color); padding: 16px 32px; }
#wjp-config-dashboard #wjp-main-panel-content .wjp-search-panel .wjp-search-wrapper { width: 100%; max-width: 672px; }
#wjp-config-dashboard #wjp-main-panel-content .wjp-search-panel .wjp-search-input-wrapper { position: relative; }
#wjp-config-dashboard #wjp-main-panel-content .wjp-search-panel #wjp-search-box { width: 100%;
    padding-right: 16px;
    border-radius: var(--wjp-border-radius-sm);}
#wjp-config-dashboard #wjp-main-panel-content .wjp-search-panel #wjp-search-box:focus { outline: none; border-color: var(--wjp-color-primary); background-color: var(--wjp-bg-card); box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.2); }
#wjp-config-dashboard #wjp-main-panel-content .wjp-search-panel .wjp-search-input-wrapper i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--wjp-text-lighter); }
#wjp-config-dashboard #wjp-main-panel-content .wjp-search-panel .wjp-search-description { margin-top: 8px; font-size: var(--wjp-font-size-xs); color: var(--wjp-text-light); }
/* Sub Navigation */
#wjp-config-dashboard #wjp-sticky-sub-nav-wrapper { position: sticky; top: 0; z-index: 10; background-color: rgba(248, 250, 252, 0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--wjp-border-color); }
#wjp-config-dashboard #wjp-sticky-sub-nav-wrapper #wjp-sub-nav { padding: 12px 32px; }
#wjp-config-dashboard #wjp-sticky-sub-nav-wrapper #wjp-sub-nav > div { background-color: rgba(226, 232, 240, 0.7); border-radius: var(--wjp-border-radius-sm); display: inline-flex; align-items: center; gap: 8px; padding: 8px; overflow-x: auto;flex-wrap: wrap;}
#wjp-config-dashboard #wjp-sticky-sub-nav-wrapper a.wjp-sub-nav-link { transition: all 0.2s ease-in-out; font-size: var(--wjp-font-size-sm); font-weight: var(--wjp-font-weight-semibold); border-radius: 0.375rem; padding: 8px 16px; white-space: nowrap; text-decoration: none; cursor: pointer; }
#wjp-config-dashboard #wjp-sticky-sub-nav-wrapper a.wjp-sub-nav-link.active { background-color: var(--wjp-color-primary); color: var(--wjp-text-white); box-shadow: var(--wjp-shadow); }
#wjp-config-dashboard #wjp-sticky-sub-nav-wrapper a.wjp-sub-nav-link:not(.active) { background-color: var(--wjp-bg-card); color: var(--wjp-text-medium); border: 1px solid var(--wjp-border-color); }
#wjp-config-dashboard #wjp-sticky-sub-nav-wrapper a.wjp-sub-nav-link:not(.active):hover { background-color: var(--wjp-bg-hover); color: var(--wjp-text-dark); }
/* Settings Panel */
#wjp-config-dashboard #wjp-main-panel-content .wjp-content-wrapper { padding: 32px; }
#wjp-config-dashboard #wjp-main-panel-content #wjp-main-panel { display: flex; flex-direction: column; gap: 32px; }
#wjp-config-dashboard .wjp-group-card { background-color: var(--wjp-bg-card); padding: 24px; border-radius: var(--wjp-border-radius-sm); border: 1px solid var(--wjp-border-color); box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); scroll-margin-top: 96px; margin-bottom: 15px;}
#wjp-config-dashboard .wjp-group-card .wjp-group-header { border-bottom: 1px solid var(--wjp-border-color); padding-bottom: 16px; margin-bottom: 24px; }
#wjp-config-dashboard .wjp-group-card .wjp-group-header .wjp-title { font-size: var(--wjp-font-size-lg); font-weight: var(--wjp-font-weight-semibold); color: var(--wjp-text-dark); margin: 0; }
#wjp-config-dashboard .wjp-group-card .wjp-group-header p { font-size: var(--wjp-font-size-sm); color: var(--wjp-text-light); margin-top: 4px; margin-bottom: 0; }
#wjp-config-dashboard .wjp-group-card .wjp-fields-container { display: flex; flex-direction: column; gap: 24px; }
/* Setting Rows */
#wjp-config-dashboard .wjp-setting-row { display: flex; flex-direction: column; gap: 8px; padding: 16px; margin: -16px; border-radius: var(--wjp-border-radius-sm); transition: background-color 0.2s; }
#wjp-config-dashboard .wjp-setting-row:hover { background-color: var(--wjp-bg-hover); }
#wjp-config-dashboard .wjp-setting-row .wjp-setting-label { padding-top: 2px; flex: 1 1 0%; }
#wjp-config-dashboard .wjp-setting-row .wjp-setting-label label { font-size: var(--wjp-font-size-sm); font-weight: var(--wjp-font-weight-medium); color: var(--wjp-text-dark); display: flex; align-items: center; }
#wjp-config-dashboard .wjp-setting-row .wjp-setting-control { flex: 2 1 0%; }
#wjp-config-dashboard .wjp-setting-label.is-modified > label::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background-color: var(--wjp-color-warning); margin-right: 8px; vertical-align: middle; }
#wjp-config-dashboard .wjp-info-text { padding: 8px 12px; background-color: var(--wjp-bg-light); border-radius: 0.375rem; font-size: var(--wjp-font-size-sm); font-family: monospace; color: var(--wjp-text-medium); max-width: 500px; display: flex; justify-content: space-between; align-items: center;}
#wjp-config-dashboard .wjp-info-text .wjp-copy-icon { cursor: pointer; color: var(--wjp-text-lighter); transition: color 0.2s; }
#wjp-config-dashboard .wjp-info-text .wjp-copy-icon:hover { color: var(--wjp-color-primary); }
/* --- Buttons --- */
#wjp-config-dashboard .wjp-btn { height: 36px; padding: 0 16px; font-weight: var(--wjp-font-weight-semibold); border-radius: var(--wjp-border-radius-sm); transition: all 0.2s; font-size: var(--wjp-font-size-sm); display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; cursor: pointer; text-decoration: none; }
#wjp-config-dashboard .wjp-btn-primary { background-color: var(--wjp-color-primary); color: var(--wjp-text-white); box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }
#wjp-config-dashboard .wjp-btn-primary:hover { background-color: var(--wjp-color-primary-dark); }
#wjp-config-dashboard .wjp-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; animation: none !important; }
#wjp-config-dashboard .wjp-btn-secondary { color: var(--wjp-text-medium); background-color: var(--wjp-bg-light); border: 1px solid var(--wjp-border-color); }
#wjp-config-dashboard .wjp-btn-secondary:hover { background-color: var(--wjp-color-slate-bg); }
/* --- Form Elements --- */
#wjp-config-dashboard .wjp-form-input, #wjp-config-dashboard .wjp-form-select, #wjp-config-dashboard .wjp-form-textarea { width: 100%; max-width: 500px; padding: 8px 12px; background-color: var(--wjp-bg-card); border: 1px solid var(--wjp-border-color); border-radius: 0.375rem; font-size: var(--wjp-font-size-sm); box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); font-family: var(--wjp-font-family); }
#wjp-config-dashboard .wjp-form-input:focus, #wjp-config-dashboard .wjp-form-select:focus, #wjp-config-dashboard .wjp-form-textarea:focus { outline: none; border-color: var(--wjp-color-primary); box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.2); }
/* Conditional Fields */
#wjp-config-dashboard .wjp-conditional-field-wrapper { transition: all 0.3s ease-in-out; max-height: 0; overflow: hidden; opacity: 0; transform: translateY(-10px); }
#wjp-config-dashboard .wjp-conditional-field-wrapper.visible { max-height: 500px; opacity: 1; transform: translateY(0); margin-top: 24px; }
/* Tooltip */
#wjp-config-dashboard .wjp-tooltip-wrapper { position: relative; display: inline-flex; align-items: center; }
#wjp-config-dashboard .wjp-tooltip-wrapper .wjp-tooltip-icon { margin-left: 8px; color: var(--wjp-text-lighter); cursor: help; transition: color 0.2s, transform 0.2s; }
#wjp-config-dashboard .wjp-tooltip-wrapper:hover .wjp-tooltip-icon { color: var(--wjp-color-primary); transform: scale(1.1); }
#wjp-config-dashboard .wjp-tooltip-wrapper:hover::after, #wjp-config-dashboard .wjp-tooltip-wrapper:hover::before { opacity: 1; transform: translateY(-50%) translateX(0); transition-delay: 0.3s; }
#wjp-config-dashboard .wjp-tooltip-wrapper::after, #wjp-config-dashboard .wjp-tooltip-wrapper::before { position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%) translateX(-8px); opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
#wjp-config-dashboard .wjp-tooltip-wrapper::after { content: attr(data-tooltip); padding: 8px 12px; background-color: var(--wjp-text-dark); color: var(--wjp-bg-light); border-radius: 6px; font-size: 0.8rem; z-index: 60; width: 200px; text-align: left; white-space: pre-wrap; }
#wjp-config-dashboard .wjp-tooltip-wrapper::before { content: ''; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-right: 6px solid var(--wjp-text-dark); left: calc(100% + 4px); z-index: 61; }
/* Toggle Switch */
#wjp-config-dashboard .wjp-toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
#wjp-config-dashboard .wjp-toggle-switch input { opacity: 0; width: 0; height: 0; }
#wjp-config-dashboard .wjp-toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--wjp-color-slate-bg); transition: .4s; border-radius: 24px; }
#wjp-config-dashboard .wjp-toggle-slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 2px; bottom: 2px; background-color: var(--wjp-text-white); transition: .4s; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
#wjp-config-dashboard input:checked + .wjp-toggle-slider { background-color: var(--wjp-color-primary); }
#wjp-config-dashboard input:checked + .wjp-toggle-slider:before { transform: translateX(20px); }
/* Segmented Control */
#wjp-config-dashboard .wjp-segmented-control { display: inline-flex; align-items: center; background-color: var(--wjp-color-slate-bg); border-radius: var(--wjp-border-radius-sm); padding: 4px; }
#wjp-config-dashboard .wjp-segmented-control .wjp-btn-segment { padding: 4px 16px; font-size: var(--wjp-font-size-sm); font-weight: var(--wjp-font-weight-semibold); border-radius: 0.375rem; transition: all 0.2s; border: none; background-color: transparent; cursor: pointer; color: var(--wjp-text-medium); }
#wjp-config-dashboard .wjp-segmented-control .wjp-btn-segment.active { background-color: var(--wjp-bg-card); color: var(--wjp-text-dark); box-shadow: var(--wjp-shadow); }
/* File Input */
#wjp-config-dashboard .wjp-file-input-wrapper { display: flex; align-items: center; gap: 16px; }
#wjp-config-dashboard .wjp-file-input-wrapper img { width: 64px; height: 64px; border-radius: 0.375rem; object-fit: cover; border: 1px solid var(--wjp-border-color); }
#wjp-config-dashboard .wjp-file-input-wrapper img#wjportal-form-delete-image { width: 20px; height: 20px;  border: 1px solid var(--wjp-border-color); }
#wjp-config-dashboard .wjp-file-input-wrapper .wjp-file-input-actions { display: flex; align-items: center; gap: 8px; }
#wjp-config-dashboard .wjp-file-input-wrapper .wjp-file-input-actions .wjp-btn-remove { color: var(--wjp-color-danger); background: none; border: none; padding: 0; cursor: pointer; font-size: var(--wjp-font-size-sm); }
#wjp-config-dashboard .wjp-file-input-wrapper .wjp-file-input-actions .wjp-btn-remove:hover { text-decoration: underline; }
/* --- Toast Notification --- */
#wjp-config-dashboard #wjp-toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 50; display: flex; flex-direction: column; gap: 8px; }
#wjp-config-dashboard .wjp-toast { color: var(--wjp-text-white); padding: 12px 16px; border-radius: 0.375rem; box-shadow: var(--wjp-shadow-md); display: flex; align-items: center; gap: 12px; animation: wjp-slideIn 0.3s ease forwards, wjp-fadeOut 0.5s ease 3s forwards; }
#wjp-config-dashboard .wjp-toast.success { background-color: var(--wjp-color-success); }
#wjp-config-dashboard .wjp-toast.info { background-color: var(--wjp-color-secondary); }
@keyframes wjp-slideIn { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes wjp-fadeOut { from { opacity: 1; } to { opacity: 0; } }
/* --- Mobile --- */
#wjp-config-dashboard #wjp-mobile-menu-toggle { display: none; }
@media (min-width: 768px) { #wjp-config-dashboard .wjp-setting-row { flex-direction: row; } }
@media (max-width: 1023px) {
  #wjp-config-dashboard #wjp-sidebar { position: absolute; transform: translateX(-100%); box-shadow: var(--wjp-shadow-lg); }
  #wjp-config-dashboard #wjp-sidebar.is-open { transform: translateX(0); }
  #wjp-config-dashboard #wjp-mobile-menu-toggle { display: flex; position: fixed; bottom: 20px; left: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background-color: var(--wjp-color-primary); color: var(--wjp-text-white); align-items: center; justify-content: center; box-shadow: var(--wjp-shadow-md); border: none; }
}
@media (max-width: 640px) {
  #wjp-config-dashboard header .wjp-header-actions .wjp-btn-secondary,
  /*#wjp-config-dashboard: header .wjp-header-actions .wjp-btn-primary span { display: none; }*/
  #wjp-config-dashboard header .wjp-header-actions .wjp-btn-primary i { display: inline-block; }
}
/* Helper Classes */
#wjp-config-dashboard .wjp-hidden { display: none !important; }


/* --- Pro/Locked Feature Styling (Final) --- */
#wjp-config-dashboard .wjp-group-card.is-pro-group .wjp-fields-container {
  opacity: 0.5;
  pointer-events: none;
}
#wjp-config-dashboard .wjp-pro-label-icon {
  margin-left: 8px;
  color: var(--wjp-color-warning);
  font-size: 0.8rem;
}
#wjp-config-dashboard .wjp-pro-field-explanation {
  font-size: 0.8rem;
  color: var(--wjp-text-light);
  margin-top: 8px;
  padding-left: 0;
}
#wjp-config-dashboard .wjp-pro-group-cta {
  margin-bottom: 24px;
  padding: 16px;
  background-color: var(--wjp-color-success-bg);
  border: 1px solid #99f6e4;
  border-left: 4px solid var(--wjp-color-success);
  border-radius: var(--wjp-border-radius-sm);
  display: flex;
  align-items: center;
  gap: 16px;
}
#wjp-config-dashboard .wjp-pro-group-cta .cta-icon {
  font-size: var(--wjp-font-size-2xl);
  color: var(--wjp-color-success);
  flex-shrink: 0;
}
#wjp-config-dashboard .wjp-pro-group-cta .cta-text h3 {
  font-size: var(--wjp-font-size-base);
  font-weight: var(--wjp-font-weight-semibold);
  color: var(--wjp-color-success-text);
}
#wjp-config-dashboard .wjp-pro-group-cta .cta-text p {
  font-size: var(--wjp-font-size-sm);
  color: var(--wjp-color-success-text);
  margin: 0;
}
#wjp-config-dashboard .wjp-pro-group-cta a.wjp-btn {
  margin-left: auto;
  flex-shrink: 0;
}
#wjp-config-dashboard .wjp-pro-control-wrapper {
  position: relative;
  max-width: 500px;
}
#wjp-config-dashboard .wjp-pro-control-wrapper .disabled-control-bg {
  opacity: 0.6;
  pointer-events: none;
}
#wjp-config-dashboard .wjp-pro-control-wrapper .upgrade-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(248, 250, 252, 0.85);
  border-radius: 0.375rem;
  z-index: 1;
}
#wjp-config-dashboard .wjp-pro-control-wrapper .wjp-btn-upgrade-overlay {
  background-color: var(--wjp-color-success-bg);
  color: var(--wjp-color-success-text);
  border: 1px solid #99f6e4;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  font-size: 0.8rem;
  font-weight: var(--wjp-font-weight-semibold);
  height: 30px;
  padding: 0 12px;
  transition: all 0.2s ease-in-out;
}
#wjp-config-dashboard .wjp-pro-control-wrapper .wjp-btn-upgrade-overlay:hover {
  background-color: #ccfbf1;
  color: var(--wjp-color-success-text);
  border-color: #5eead4;
  transform: scale(1.05);
  box-shadow: var(--wjp-shadow-md);
}
/* --- SEO Field Component Styles --- */
#wjp-config-dashboard .tags-used-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0.5rem;
  border: 1px solid var(--wjp-border-color);
  border-radius: 0.375rem;
  min-height: 44px;
  background-color: var(--wjp-bg-card);
  max-width: 500px;
}

#wjp-config-dashboard .tags-available-label {
  margin-top: 0.75rem;
  font-size: var(--wjp-font-size-xs);
  color: var(--wjp-text-light);
  font-weight: var(--wjp-font-weight-medium);
}

#wjp-config-dashboard .tags-available-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
  max-width: 500px;
}

#wjp-config-dashboard .template-tag {
  background-color: var(--wjp-color-slate-bg);
  color: var(--wjp-text-medium);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: var(--wjp-font-size-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 3px;
  cursor: grab;
  font-weight: var(--wjp-font-weight-medium);
}

#wjp-config-dashboard .template-tag-remove {
  cursor: pointer;
  padding: 0.25rem;
  margin-left: 2px;
  border-radius: 99px;
  font-size: var(--wjp-font-size-xs);
  line-height: 1;
  transition: background-color 0.2s;
}
#wjp-config-dashboard .template-tag-remove:hover {
  background-color: #cbd5e1;
}

#wjp-config-dashboard .template-tag-available {
  cursor: pointer;
  background-color: var(--wjp-color-success-bg);
  color: var(--wjp-color-success-text);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: var(--wjp-font-size-sm);
  font-weight: var(--wjp-font-weight-medium);
  transition: background-color 0.2s;
}
#wjp-config-dashboard .template-tag-available:hover {
  background-color: #a7f3d0;
}
/* default image */
#wjp-config-dashboard .wjportal-form-image-wrp {
  position: relative;
  display: inline-block;
  margin-top: 10px;
  max-width: 180px;
}
#wjp-config-dashboard .wpjobportal-config-default-image {
  width: 100%;
  height: auto;
  border: 1px solid #ccd0d4;
  border-radius: 6px;
  background: #f8f9fa;
  padding: 4px;
  transition: all 0.2s ease-in-out;
}
#wjp-config-dashboard .wpjobportal-config-default-image:hover {
  box-shadow: 0 0 6px rgba(0,0,0,0.15);
}
#wjp-config-dashboard #wjportal-form-delete-image {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}
#wjp-config-dashboard #wjportal-form-delete-image:hover {
  transform: scale(1.1);
}
#wjp-config-dashboard .wjportal-form-help-txt {
  margin-top: 6px;
  font-size: 12px;
  color: #666;
}

#zywrap_prompt{
    margin-bottom: 15px;
}


