/* ═══════════════════════════════════════════════════════════════════════════
   Portal Pages – Unified Stylesheet v1.1
   All public-facing page styles consolidated here:
   /jobs, /start-meeting, /cme/events, /drug-list, /diagnosis,
   /discuss-cases, /enhanced-groups, /conference
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Breadcrumb / Page Header (code.html design pattern) ─────────────── */
.portal-page-header {
    padding: 0;
    margin-bottom: 0;
}
.portal-breadcrumb {
    font-size: 0.8rem;
    padding: 0;
    margin-bottom: 0.5rem;
    background: transparent;
}
.portal-breadcrumb .breadcrumb-item a {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}
.portal-breadcrumb .breadcrumb-item a:hover {
    color: var(--brand-hover);
    text-decoration: underline;
}
.portal-breadcrumb .breadcrumb-item.active {
    color: var(--cs-color-sub);
    font-weight: 500;
}
.portal-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-faint);
    content: "›";
    font-weight: 600;
}
.portal-page-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--bs-heading-color);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}
.portal-page-subtitle {
    color: var(--cs-color-sub);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.5;
}
[data-theme="dark"] .portal-page-title {
    color: var(--bs-heading-color);
}
[data-theme="dark"] .portal-page-subtitle {
    color: var(--portal-muted);
}
[data-theme="dark"] .portal-breadcrumb .breadcrumb-item a {
    color: var(--brand-accent);
}
[data-theme="dark"] .portal-breadcrumb .breadcrumb-item a:hover {
    color: var(--bs-primary-tint-40);
}
[data-theme="dark"] .portal-breadcrumb .breadcrumb-item.active {
    color: var(--portal-muted);
}
[data-theme="dark"] .portal-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--portal-text);
}

/* ─── Meeting Utility Classes (shared) ────────────────────────────────── */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
}
.fs-08rem { font-size: 0.8rem !important; }
.fs-09rem { font-size: 0.9rem !important; }

/* Icon size helpers (replaces inline style="font-size:…") */
.icon-sm   { font-size: 16px !important; }
.icon-md   { font-size: 18px !important; }
.icon-lg   { font-size: 24px !important; }
.icon-xl   { font-size: 32px !important; }

/* Stat card icon (48×48 variant of main-feature-icon) */
.meeting-stat-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
}

/* Stats heading sizes */
.stats-heading-lg  { font-size: 1.5rem !important; }
.stats-heading-xl  { font-size: 2rem !important; }
.stats-heading-md  { font-size: 1.25rem !important; }

/* ─── Common Page Wrapper (radial gradient top glow) ──────────────────── */
.portal-page-vibe {
    --pp-border: var(--portal-border);
    --pp-muted: var(--portal-muted);
    --pp-soft: var(--bs-primary-tint-90);
    border-radius: 18px;
    background:
        radial-gradient(1100px 360px at 4% -55%, rgba(14, 165, 233, 0.16), transparent 58%),
        radial-gradient(780px 300px at 102% -60%, rgba(2, 132, 199, 0.12), transparent 58%);
}

/* ─── Common Hero Panel ───────────────────────────────────────────────── */
.portal-hero-panel {
    border: 1px solid var(--pp-border);
    border-radius: 16px;
    background: var(--surface);
    padding: 14px 16px;
}
[data-theme="dark"] .portal-hero-panel {
  
    border-color: var(--cs-card-border-color) !important;
}

/* ─── Common Results Header ───────────────────────────────────────────── */
.portal-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid var(--pp-border);
    border-radius: 14px;
    background: var(--surface);
}
[data-theme="dark"] .portal-results-header {
  
    border-color: var(--cs-card-border-color) !important;
}

/* ─── Common View Toggle ──────────────────────────────────────────────── */
.portal-view-toggle {
    display: inline-flex;
    background: var(--cs-card-header-bg);
    padding: 4px;
    border-radius: 8px;
    gap: 2px;
}
[data-theme="dark"] .portal-view-toggle {
    background: var(--portal-border-strong);
}
.portal-view-toggle-btn {
    padding: 6px;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: var(--text-faint);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}
.portal-view-toggle-btn.active,
.portal-view-toggle-btn:hover {
    background: var(--surface);
    color: var(--bs-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
[data-theme="dark"] .portal-view-toggle-btn.active,
[data-theme="dark"] .portal-view-toggle-btn:hover {
    background: var(--portal-border-strong);
}

/* ─── Common Sort Button ──────────────────────────────────────────────── */
.portal-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--cs-card-header-bg);
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--portal-text);
    cursor: pointer;
    transition: all 0.2s ease;
}
.portal-sort-btn:hover {
    background: var(--bs-border-color);
}
[data-theme="dark"] .portal-sort-btn {
    background: var(--portal-border-strong);
    color: var(--text-secondary);
}

/* ─── Common Load More Button ─────────────────────────────────────────── */
.portal-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border: 1px solid var(--portal-border-strong);
    font-weight: 600;
    border-radius: 12px;
    background: transparent;
    color: var(--portal-text);
    transition: all 0.2s ease;
}
.portal-load-more-btn:hover {
    background: var(--surface-base);
    border-color: var(--text-faint);
}
[data-theme="dark"] .portal-load-more-btn {
    border-color: var(--portal-border-strong);
    color: var(--text-secondary);
}

/* ─── Common Plan Strip ───────────────────────────────────────────────── */
.portal-plan-strip {
    border-radius: 16px;
    border: 1px solid rgba(14, 165, 233, 0.22);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(14, 165, 233, 0.14));
    padding: 14px 18px;
}
[data-theme="dark"] .portal-plan-strip {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(14, 165, 233, 0.1));
    border-color: rgba(14, 165, 233, 0.32);
}

/* ─── Common Stat Card ────────────────────────────────────────────────── */
.portal-stat-card {
    border: 1px solid var(--pp-border);
    border-radius: 14px;
    background: var(--surface);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.2s ease;
    height: 100%;
}
.portal-stat-card:hover {
    transform: translateY(-1px);
    border-color: #c6ddf2;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
[data-theme="dark"] .portal-stat-card {
  
    border-color: var(--cs-card-border-color) !important;
}

/* ─── Common Feature Icon ─────────────────────────────────────────────── */
.portal-feature-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(140deg, var(--bs-primary), var(--brand-hover)) !important;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.28);
}
.portal-feature-icon i,
.portal-feature-icon .material-icons,
.portal-feature-icon .material-symbols-outlined {
    font-size: 32px !important;
    color: white !important;
}
.portal-card:hover .portal-feature-icon,
.card:hover .portal-feature-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
}

/* ─── Common Tabs Wrap ────────────────────────────────────────────────── */
.portal-tabs-wrap {
    border: 1px solid var(--pp-border);
    background: var(--surface);
    border-radius: 999px;
    padding: 6px !important;
}
.portal-tabs-wrap .nav-link {
    border-radius: 999px;
    color: var(--bs-heading-color);
    font-weight: 600;
}
.portal-tabs-wrap .nav-link.active {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(14, 165, 233, 0.24);
}
.portal-tabs-wrap .nav-link.active .material-icons,
.portal-tabs-wrap .nav-link.active .material-symbols-outlined {
    color: #fff !important;
}
.portal-tabs-wrap .nav-link:hover:not(.active) {
    background-color: rgba(14, 165, 233, 0.08) !important;
    color: var(--bs-primary) !important;
}
[data-theme="dark"] .portal-tabs-wrap {
  
    border-color: var(--cs-card-border-color) !important;
}
[data-theme="dark"] .portal-tabs-wrap .nav-link {
    color: var(--bs-body-color) !important;
}

/* ─── Common Form Pill Input ──────────────────────────────────────────── */
.portal-input-pill {
    border-radius: 50rem !important;
    border: 1px solid var(--pp-border) !important;
    background: var(--surface) !important;
    transition: all 0.2s ease;
}
.portal-input-pill:focus {
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15) !important;
    border-color: var(--bs-primary) !important;
}
[data-theme="dark"] .portal-input-pill {
    background: var(--surface-base) !important;
    border-color: var(--cs-card-border-color) !important;
}


/* ═══════════════════════════════════════════════════════════════════════════
   JOBS PAGE – /jobs
   ═══════════════════════════════════════════════════════════════════════════ */

/* --- Portal Vibe Pass (formerly .jobs-vibe) --- */
.jobs-vibe {
    --jobs-border: var(--portal-border);
    --jobs-muted: var(--portal-muted);
    --jobs-soft: var(--bs-primary-tint-90);
    border-radius: 18px;
    background:
        radial-gradient(1100px 360px at 4% -55%, rgba(14, 165, 233, 0.16), transparent 58%),
        radial-gradient(780px 300px at 102% -60%, rgba(2, 132, 199, 0.12), transparent 58%);
}

.jobs-vibe .jobs-hero-panel {
    border: 1px solid var(--jobs-border);
    border-radius: 16px;
    background: var(--surface);
    padding: 14px 16px;
}

.jobs-vibe .job-search-wrapper .search-card {
    border: 1px solid var(--jobs-border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.jobs-vibe .job-results-header {
    border: 1px solid var(--jobs-border);
    border-radius: 14px;
    background: var(--surface);
    padding: 10px 12px;
}

.jobs-vibe .job-sidebar-card,
.jobs-vibe .job-card-modern {
    border-color: var(--jobs-border);
}

.jobs-vibe .job-sidebar-card-header {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.06), rgba(14, 165, 233, 0.02));
}

.jobs-vibe .job-card-modern {
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.03);
}

.jobs-vibe .job-card-modern:hover {
    border-color: #bfd9ef;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .jobs-vibe .jobs-hero-panel,
[data-theme="dark"] .jobs-vibe .job-search-wrapper .search-card,
[data-theme="dark"] .jobs-vibe .job-search-wrapper .portal-hero-panel,
[data-theme="dark"] .jobs-vibe .job-results-header,
[data-theme="dark"] .jobs-vibe .job-sidebar-card,
[data-theme="dark"] .jobs-vibe .job-card-modern {
  
    border-color: var(--cs-card-border-color) !important;
    box-shadow: none !important;
}

[data-theme="dark"] .jobs-vibe .job-search-wrapper .form-control.bg-theme-subtle,
[data-theme="dark"] .jobs-vibe .job-search-wrapper .search-input.bg-theme-subtle {
    background-color: var(--portal-border-strong, #2d2d3d) !important;
    color: var(--bs-body-color) !important;
    border-color: transparent !important;
}

[data-theme="dark"] .jobs-vibe .job-sidebar-card-header {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.15), rgba(14, 165, 233, 0.05));
    border-bottom-color: var(--cs-card-border-color) !important;
}

[data-theme="dark"] .jobs-vibe .job-sort-btn,
[data-theme="dark"] .jobs-vibe .job-view-toggle {
    background: var(--surface);
}

/* Card Base */
.job-card-modern {
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--bs-border-color);
    padding: 1.5rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}
/* In grid view the row gap handles spacing, remove extra margin */
.grid-view .job-card-modern {
    margin-bottom: 0;
    height: 100%;
    overflow: hidden;           /* prevent content spilling outside card */
    padding: 1rem;              /* tighter padding than list view's 1.5rem */
}
/* CSS Grid for job container grid view */
#jobs-container.grid-view {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
@media (max-width: 991px) {
    #jobs-container.grid-view { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    #jobs-container.grid-view { grid-template-columns: 1fr; }
}
/* Grid view — smaller logo */
.grid-view .job-card-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
}
/* Grid view — smaller title */
.grid-view .job-card-modern h5 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem !important;
}
/* Grid view — smaller meta text */
.grid-view .job-card-modern .text-muted.small,
.grid-view .job-card-modern .job-card-description {
    font-size: 0.78rem;
}
/* Grid view — clamp experience badge text */
.grid-view .job-card-exp-badge {
    font-size: 0.72rem;
    padding: 2px 7px;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Grid view — tighter footer */
.grid-view .job-card-footer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}
.grid-view .job-card-meta-label { font-size: 9px; }
.grid-view .job-card-meta-value { font-size: 0.78rem; }
/* Grid view card internals: wrap meta items, keep actions on new line */
.grid-view .job-card-modern .job-card-footer > .d-flex {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}
.grid-view .job-card-modern .job-card-footer .ms-auto {
    margin-left: 0 !important;
    width: 100%;
    justify-content: flex-end;
}
/* Grid view — smaller action buttons */
.grid-view .job-card-btn-outline,
.grid-view .job-card-btn-primary,
.grid-view .job-card-btn-success {
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 10px;
}
.grid-view .job-card-btn-more {
    padding: 6px;
    border-radius: 10px;
}
.job-card-modern:hover {
    border-color: rgba(var(--bs-primary-rgb), 0.5);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.04);
}
[data-theme="dark"] .job-card-modern {
    background: var(--surface);
    border-color: var(--portal-border-strong);
}
[data-theme="dark"] .job-card-modern:hover {
    border-color: rgba(var(--bs-primary-rgb), 0.5);
    box-shadow: none;
}

/* Card Logo */
.job-card-logo {
    width: 64px;
    height: 64px;
    background: var(--surface-base);
    border-radius: 16px;
    border: 1px solid var(--bs-border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.job-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}
.job-card-logo-fallback {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}
[data-theme="dark"] .job-card-logo {
    background: var(--portal-border-strong);
    border-color: var(--portal-border-strong);
}

/* Card Title */
.job-card-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--bs-heading-color);
    transition: color 0.2s ease;
    display: block;
}
.job-card-modern:hover .job-card-title {
    color: var(--bs-primary) !important;
}
[data-theme="dark"] .job-card-title {
    color: var(--bs-heading-color);
}

/* Experience Badge */
.job-card-exp-badge {
    font-weight: 600;
    font-size: 0.75rem;
    background: var(--cs-card-header-bg);
    color: var(--portal-text);
    padding: 2px 10px;
    border-radius: 6px;
}
[data-theme="dark"] .job-card-exp-badge {
    background: var(--portal-border-strong);
    color: var(--text-secondary);
}

/* New / Promoted Badge */
.job-card-new-badge {
    padding: 4px 12px;
    background: rgba(var(--bs-primary-rgb), 0.08);
    color: var(--bs-primary);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

/* Featured Floating Badge */
.job-card-badge-featured {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--bs-warning), var(--bs-warning-text-emphasis));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 8px;
    white-space: nowrap;
    /* List view: float to top-right corner */
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}
/* Grid view: inline above the title, not floating */
.grid-view .job-card-modern .job-card-badge-featured {
    position: static;
    margin-bottom: 6px;
    align-self: flex-start;
}

/* Description */
.job-card-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

/* Footer / Meta */
.job-card-footer {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--cs-card-header-bg);
}
[data-theme="dark"] .job-card-footer {
    border-top-color: var(--portal-border-strong);
}
.job-card-meta-item {
    display: flex;
    flex-direction: column;
}
.job-card-meta-label {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-faint);
    letter-spacing: 0.08em;
}
.job-card-meta-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bs-heading-color);
}
[data-theme="dark"] .job-card-meta-value {
    color: var(--bs-body-color);
}

/* Action Buttons */
.job-card-btn-outline {
    padding: 8px 20px;
    border: 1px solid var(--bs-primary);
    color: var(--bs-primary);
    font-weight: 600;
    border-radius: 12px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: transparent;
    white-space: nowrap;
}
.job-card-btn-outline:hover {
    background: rgba(var(--bs-primary-rgb), 0.05);
    color: var(--bs-primary);
}
.job-card-btn-primary {
    padding: 8px 20px;
    background: var(--bs-primary);
    color: #fff !important;
    font-weight: 700;
    border-radius: 12px;
    font-size: 0.875rem;
    border: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.2);
    transition: all 0.2s ease;
}
.job-card-btn-primary:hover {
    filter: brightness(0.9);
    color: #fff !important;
    transform: scale(0.98);
}
.job-card-btn-success {
    padding: 8px 20px;
    background: var(--bs-success);
    color: #fff !important;
    font-weight: 700;
    border-radius: 12px;
    font-size: 0.875rem;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.job-card-btn-more {
    padding: 8px;
    background: var(--cs-card-header-bg);
    color: var(--cs-color-sub);
    border-radius: 12px;
    border: none;
    transition: all 0.2s ease;
}
.job-card-btn-more:hover {
    background: var(--bs-border-color);
}
[data-theme="dark"] .job-card-btn-more {
    background: var(--portal-border-strong);
    color: var(--portal-muted);
}
.min-width-0 { min-width: 0; }

/* Grid View Polish */
#jobs-container.job-grid-layout {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    #jobs-container.job-grid-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    #jobs-container.job-grid-layout {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

#jobs-container.job-grid-layout > .job-card-modern {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 0;
    padding: 1.15rem;
    min-height: 430px;
}

#jobs-container.job-grid-layout > .job-card-modern > .d-flex {
    flex-direction: column;
    gap: 0.95rem !important;
    height: 100%;
}

#jobs-container.job-grid-layout > .job-card-modern .job-card-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
}

#jobs-container.job-grid-layout > .job-card-modern .job-card-title {
    font-size: 1.08rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

#jobs-container.job-grid-layout > .job-card-modern .job-card-company-meta {
    gap: 0.5rem 0.85rem !important;
}

#jobs-container.job-grid-layout > .job-card-modern .job-card-company-meta > span {
    min-width: 0;
    max-width: 100%;
}

#jobs-container.job-grid-layout > .job-card-modern .job-card-company-meta > span:not(.job-card-exp-badge) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#jobs-container.job-grid-layout > .job-card-modern .job-card-description {
    -webkit-line-clamp: 3;
    min-height: 4.8em;
    margin-top: 0.7rem !important;
    overflow-wrap: anywhere;
}

#jobs-container.job-grid-layout > .job-card-modern .job-card-footer {
    margin-top: auto;
    padding-top: 1rem;
}

#jobs-container.job-grid-layout > .job-card-modern .job-card-footer-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem 0.5rem;
    align-items: start;
}

#jobs-container.job-grid-layout > .job-card-modern .job-card-meta-item {
    min-width: 0;
}

#jobs-container.job-grid-layout > .job-card-modern .job-card-meta-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#jobs-container.job-grid-layout > .job-card-modern .job-card-actions {
    grid-column: 1 / -1;
    margin-left: 0 !important;
    display: flex;
    align-items: center;
    flex-wrap: nowrap !important;
    gap: 0.5rem;
    width: 100%;
    padding-top: 0.65rem;
    border-top: 1px dashed var(--cs-card-header-bg);
}

[data-theme="dark"] #jobs-container.job-grid-layout > .job-card-modern .job-card-actions {
    border-top-color: var(--portal-border-strong);
}

#jobs-container.job-grid-layout > .job-card-modern .job-card-actions > .btn,
#jobs-container.job-grid-layout > .job-card-modern .job-card-actions > a.btn {
    flex: 1 1 0;
    min-width: 0;
    height: 42px;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
    line-height: 1;
}

#jobs-container.job-grid-layout > .job-card-modern .job-card-actions .dropdown {
    flex: 0 0 auto;
}

#jobs-container.job-grid-layout > .job-card-modern .job-card-actions .job-card-btn-more {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Sidebar CTA Card */
.job-sidebar-cta {
    background: var(--bs-primary);
    padding: 1.5rem;
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 10px 25px rgba(var(--bs-primary-rgb), 0.2);
}
.job-sidebar-cta h5 { color: #fff; }
.job-sidebar-cta p { color: rgba(255,255,255,0.8); }
.job-sidebar-cta-btn {
    width: 100%;
    padding: 10px;
    background: var(--surface);
    color: var(--bs-primary);
    font-weight: 700;
    border-radius: 12px;
    border: none;
    transition: all 0.2s ease;
    display: block;
    text-align: center;
    text-decoration: none;
}
.job-sidebar-cta-btn:hover {
    background: var(--cs-card-header-bg);
    color: var(--bs-primary);
}

/* Sidebar Card */
.job-sidebar-card {
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--bs-border-color);
    overflow: hidden;
}
[data-theme="dark"] .job-sidebar-card {
    background: var(--surface);
    border-color: var(--portal-border-strong);
}
.job-sidebar-card-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--cs-card-header-bg);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}
[data-theme="dark"] .job-sidebar-card-header {
    border-bottom-color: var(--portal-border-strong);
}
.job-sidebar-card-body {
    padding: 1.25rem;
}
.job-sidebar-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    text-decoration: none;
    transition: all 0.2s ease;
}
.job-sidebar-item:hover {
    padding-left: 4px;
}
.job-sidebar-item-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bs-heading-color);
}
[data-theme="dark"] .job-sidebar-item-title {
    color: var(--bs-body-color);
}
.job-sidebar-item-sub {
    font-size: 0.75rem;
    color: var(--text-faint);
}
.job-sidebar-item-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--bs-primary);
}
.job-sidebar-see-all {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--bs-primary);
    text-decoration: none;
    padding-top: 0.75rem;
}
.job-sidebar-see-all:hover {
    text-decoration: underline;
    color: var(--bs-primary);
}

/* Sidebar divider links */
.job-sidebar-divider-list > a + a {
    border-top: 1px solid var(--cs-card-header-bg);
}
[data-theme="dark"] .job-sidebar-divider-list > a + a {
    border-top-color: var(--portal-border-strong);
}

/* Search Bar */
.job-search-card {
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--bs-border-color);
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
[data-theme="dark"] .job-search-card {
    background: var(--surface);
    border-color: var(--portal-border-strong);
}

/* Results Header */
.job-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px;
    border-radius: 12px;
}
.job-results-count {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cs-color-sub);
}
.job-results-count strong {
    color: var(--bs-heading-color);
    font-weight: 700;
}
[data-theme="dark"] .job-results-count strong {
    color: var(--bs-heading-color);
}

/* View Toggle */
.job-view-toggle {
    display: inline-flex;
    background: var(--cs-card-header-bg);
    padding: 4px;
    border-radius: 8px;
    gap: 2px;
}
[data-theme="dark"] .job-view-toggle {
    background: var(--portal-border-strong);
}
.job-view-toggle-btn {
    padding: 6px;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: var(--text-faint);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}
.job-view-toggle-btn.active,
.job-view-toggle-btn:hover {
    background: var(--surface);
    color: var(--bs-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
[data-theme="dark"] .job-view-toggle-btn.active,
[data-theme="dark"] .job-view-toggle-btn:hover {
    background: var(--portal-border-strong);
}

/* Sort Button */
.job-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--cs-card-header-bg);
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--portal-text);
    cursor: pointer;
    transition: all 0.2s ease;
}
.job-sort-btn:hover {
    background: var(--bs-border-color);
}
[data-theme="dark"] .job-sort-btn {
    background: var(--portal-border-strong);
    color: var(--text-secondary);
}

/* Status badges */
.job-status-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
}
.job-status-active {
    background: var(--bs-success-bg-subtle);
    color: var(--portal-success);
}
.job-status-closed {
    background: var(--cs-card-header-bg);
    color: var(--text-faint);
}
.job-status-draft {
    background: var(--bs-warning-bg-subtle);
    color: var(--bs-warning-text-emphasis);
}
[data-theme="dark"] .job-status-active {
    background: rgba(22, 163, 74, 0.15);
}
[data-theme="dark"] .job-status-closed {
    background: var(--portal-border-strong);
}

/* Category item */
.job-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}
.job-category-item:hover {
    padding-left: 4px;
}
.job-category-name {
    color: var(--cs-color-sub);
}
[data-theme="dark"] .job-category-name {
    color: var(--portal-muted);
}
.job-category-count {
    font-weight: 700;
    color: var(--bs-heading-color);
}
[data-theme="dark"] .job-category-count {
    color: var(--bs-body-color);
}

/* Dropdown Menu Fixes */
#jobs-container, .job-card-modern, .col-lg-9 {
    overflow: visible !important;
}
.job-card-modern:has(.show) {
    z-index: 1050 !important;
}

/* Load More */
.job-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border: 1px solid var(--portal-border-strong);
    font-weight: 600;
    border-radius: 12px;
    background: transparent;
    color: var(--portal-text);
    transition: all 0.2s ease;
}
.job-load-more-btn:hover {
    background: var(--surface-base);
    border-color: var(--text-faint);
}
[data-theme="dark"] .job-load-more-btn {
    border-color: var(--portal-border-strong);
    color: var(--text-secondary);
}

/* Stacked avatar group */
.job-avatar-stack {
    display: flex;
    align-items: center;
}
.job-avatar-stack img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--surface);
    object-fit: cover;
    margin-left: -6px;
}
.job-avatar-stack img:first-child {
    margin-left: 0;
}
[data-theme="dark"] .job-avatar-stack img {
    border-color: var(--surface);
}
.job-avatar-overflow {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -6px;
    border: 2px solid var(--surface);
}
[data-theme="dark"] .job-avatar-overflow {
    border-color: var(--surface);
}

/* Recent applicant row */
.job-applicant-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    text-decoration: none;
    transition: all 0.2s ease;
}
.job-applicant-item:hover {
    padding-left: 4px;
}
.job-applicant-item + .job-applicant-item {
    border-top: 1px solid var(--cs-card-header-bg);
}
[data-theme="dark"] .job-applicant-item + .job-applicant-item {
    border-top-color: var(--portal-border-strong);
}
.job-applicant-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cs-card-header-bg);
    flex-shrink: 0;
}
[data-theme="dark"] .job-applicant-avatar {
    border-color: var(--portal-border-strong);
}
.job-applicant-info {
    min-width: 0;
    flex: 1;
}
.job-applicant-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bs-heading-color);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
[data-theme="dark"] .job-applicant-name {
    color: var(--bs-body-color);
}
.job-applicant-meta {
    font-size: 0.7rem;
    color: var(--text-faint);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.job-applicant-new-dot {
    width: 8px;
    height: 8px;
    background: var(--brand);
    border-radius: 50%;
    flex-shrink: 0;
}
.job-applicant-time {
    font-size: 0.65rem;
    color: var(--text-faint);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Badge */
.job-sidebar-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
}
.job-sidebar-badge-new {
    background: rgba(59, 130, 246, 0.1);
    color: var(--brand);
}

@media (max-width: 1399px) {
    #jobs-container.job-grid-layout > .job-card-modern .job-card-footer-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    #jobs-container.job-grid-layout > .job-card-modern .job-card-footer-row {
        grid-template-columns: 1fr;
    }

    #jobs-container.job-grid-layout > .job-card-modern {
        min-height: auto;
    }

    #jobs-container.job-grid-layout > .job-card-modern .job-card-description {
        min-height: auto;
    }
}

/* Responsive */
@media (max-width: 767px) {
    .job-card-logo { width: 48px; height: 48px; border-radius: 12px; }
    .job-card-footer .ms-auto { width: 100%; margin-top: 0.75rem !important; margin-left: 0 !important; }
    .job-card-footer .ms-auto .d-flex { flex-wrap: wrap; }
    .job-card-btn-outline, .job-card-btn-primary { flex: 1; text-align: center; min-width: 0; }
    .job-card-meta-item { flex: 0 0 auto; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   MEETING PAGE – /start-meeting
   ═══════════════════════════════════════════════════════════════════════════ */

.meeting-vibe {
    --mv-primary: var(--brand);
    --mv-border: var(--portal-border);
    position: relative;
    border-radius: 18px;
    padding: 8px;
    background: radial-gradient(980px 320px at 0% -40%, rgba(14, 165, 233, 0.16), transparent 58%),
        radial-gradient(760px 280px at 100% -50%, rgba(2, 132, 199, 0.12), transparent 58%);
}

.meeting-vibe .meeting-hero-card {
    border: 1px solid var(--mv-border);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(14, 165, 233, 0.02));
}

.meeting-vibe .meeting-stat-card {
    border: 1px solid var(--mv-border);
    border-radius: 14px;
    background: var(--surface);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.2s ease;
    height: 100%;
}
.meeting-vibe .meeting-stat-card:hover {
    transform: translateY(-1px);
    border-color: #c6ddf2;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.meeting-vibe .meeting-plan-strip {
    border-radius: 16px;
    border: 1px solid rgba(14, 165, 233, 0.22);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(14, 165, 233, 0.14));
    padding: 14px 18px;
}

.meeting-vibe .meeting-tabs-wrap {
    border: 1px solid var(--mv-border);
    background: var(--surface);
    border-radius: 999px;
    padding: 6px !important;
}

.meeting-vibe #meetingTabs .nav-link {
    border-radius: 999px;
    color: var(--bs-heading-color);
    font-weight: 600;
}
.meeting-vibe #meetingTabs .nav-link.active {
    box-shadow: 0 8px 18px rgba(14, 165, 233, 0.24);
    background-color: var(--mv-primary) !important;
    color: #fff !important;
}
.meeting-vibe #meetingTabs .nav-link.active .material-icons {
    color: #fff !important;
}
.meeting-vibe #meetingTabs .nav-link:hover:not(.active) {
    background-color: rgba(14, 165, 233, 0.08) !important;
    color: var(--mv-primary) !important;
}

.meeting-vibe .main-feature-icon {
    background: var(--brand-gradient) !important;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.28);
}

.meeting-vibe .form-control-pill {
    border-color: var(--mv-border) !important;
    background: var(--surface) !important;
}
.meeting-vibe .form-control-pill:focus {
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15) !important;
}

[data-theme="dark"] .meeting-vibe .meeting-hero-card,
[data-theme="dark"] .meeting-vibe .meeting-stat-card,
[data-theme="dark"] .meeting-vibe .meeting-tabs-wrap {
  
    border-color: var(--cs-card-border-color) !important;
}
[data-theme="dark"] .meeting-vibe #meetingTabs .nav-link {
    color: var(--bs-body-color) !important;
}
[data-theme="dark"] .meeting-vibe .meeting-plan-strip {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(14, 165, 233, 0.1));
    border-color: rgba(14, 165, 233, 0.32);
}
[data-theme="dark"] .meeting-vibe .form-control-pill {
    background: var(--surface-base) !important;
}

/* Meeting page portal variable overrides */
.meeting-vibe .btn-outline-primary:hover,
.meeting-vibe .btn-outline-secondary:hover,
.meeting-vibe .meeting-action-btn:hover {
    background-color: var(--mv-primary) !important;
    border-color: var(--mv-primary) !important;
    color: #fff !important;
}
.meeting-vibe .btn-outline-primary:hover .material-icons,
.meeting-vibe .btn-outline-secondary:hover .material-icons,
.meeting-vibe .meeting-action-btn:hover .material-icons {
    color: #fff !important;
}

.meeting-vibe .form-control-pill {
    border-radius: 50rem !important;
    padding: 0.75rem 1.5rem !important;
    transition: all 0.2s ease;
}
.meeting-vibe .form-control-pill:focus {
    border-color: var(--mv-primary) !important;
}

/* Meeting btn-portal-outline */
.meeting-vibe .btn-portal-outline {
    border-color: var(--mv-primary) !important;
    color: var(--mv-primary) !important;
    background-color: transparent !important;
    transition: all 0.2s ease;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}
.meeting-vibe .btn-portal-outline:hover,
.meeting-vibe .btn-portal-outline:active,
.meeting-vibe .btn-portal-outline.active,
.meeting-vibe .btn-portal-outline:focus {
    background-color: var(--mv-primary) !important;
    border-color: var(--mv-primary) !important;
    color: white !important;
}
.meeting-vibe .btn-portal-outline i {
    color: var(--mv-primary);
    font-size: 20px !important;
    vertical-align: middle;
    transition: all 0.2s ease;
}
.meeting-vibe .btn-portal-outline:hover i,
.meeting-vibe .btn-portal-outline:active i,
.meeting-vibe .btn-portal-outline.active i,
.meeting-vibe .btn-portal-outline:focus i {
    color: white !important;
}

/* Main feature icon (meeting-specific) */
.main-feature-icon {
    width: 72px;
    height: 72px;
    background-color: var(--bs-primary) !important;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.2);
}
.main-feature-icon i {
    font-size: 32px !important;
    color: white !important;
}
.card:hover .main-feature-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.4);
}


/* ═══════════════════════════════════════════════════════════════════════════
   UNIFIED SIDEBAR – Used across all 8 portal pages
   ═══════════════════════════════════════════════════════════════════════════ */

/* Sticky sidebar wrapper */
.portal-sidebar {
    position: sticky;
    
}
@media (max-width: 991.98px) {
    .portal-sidebar {
        position: static;
    }
}

/* Sidebar navigation links */
.portal-sidebar-nav {
    background: var(--surface);
    border: 1px solid var(--pp-border);
    border-radius: 16px;
    padding: 8px;
    margin-bottom: 12px;
    list-style: none;
}
.portal-sidebar-nav > li { margin-bottom: 8px; }
.portal-sidebar-nav > li:last-child { margin-bottom: 0; }
.portal-sidebar-nav .nav-link { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; font-size: 0.875rem; font-weight: 600; color: var(--portal-text); text-decoration: none; transition: all 0.2s ease; }
.portal-sidebar-nav .nav-link:hover { background: rgba(14, 165, 233, 0.06); color: var(--brand-active); }
.portal-sidebar-nav .nav-link.active { background: var(--bs-primary); color: #fff; box-shadow: 0 4px 12px rgba(14, 165, 233, 0.24); }
.portal-sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--portal-text);
    text-decoration: none;
    transition: all 0.2s ease;
}
.portal-sidebar-nav .nav-link:hover {
    background: rgba(14, 165, 233, 0.06);
    color: var(--brand-active);
}
.portal-sidebar-nav .nav-link.active {
    background: var(--bs-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.24);
}
.portal-sidebar-nav .nav-link.active .material-symbols-outlined,
.portal-sidebar-nav .nav-link.active .material-icons,
.portal-sidebar-nav .nav-link.active i {
    color: #fff !important;
}
.portal-sidebar-nav .nav-link .material-symbols-outlined,
.portal-sidebar-nav .nav-link .material-icons {
    font-size: 20px;
    color: var(--cs-color-sub);
    transition: color 0.2s ease;
}
.portal-sidebar-nav .nav-link:hover .material-symbols-outlined,
.portal-sidebar-nav .nav-link:hover .material-icons {
    color: var(--brand-active);
}
.portal-sidebar-nav .nav-link .badge {
    margin-left: auto;
    font-size: 0.7rem;
    min-width: 24px;
    padding: 3px 7px;
}
[data-theme="dark"] .portal-sidebar-nav {
    background: var(--bs-custom-card-bg);
    border-color: var(--cs-card-border-color);
}
[data-theme="dark"] .portal-sidebar-nav .nav-link {
    color: var(--bs-body-color);
}
[data-theme="dark"] .portal-sidebar-nav .nav-link:hover {
    background: rgba(14, 165, 233, 0.12);
    color: var(--brand-accent);
}
[data-theme="dark"] .portal-sidebar-nav .nav-link .material-symbols-outlined,
[data-theme="dark"] .portal-sidebar-nav .nav-link .material-icons {
    color: var(--portal-muted);
}

/* Sidebar CTA Button */
.portal-sidebar-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: var(--bs-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.22);
    margin-bottom: 12px;
}
.portal-sidebar-cta:hover {
    filter: brightness(0.92);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.32);
}

/* Sidebar Plan Promo Card */
.portal-sidebar-plan {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.06), rgba(99, 102, 241, 0.08));
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    text-align: center;
}
.portal-sidebar-plan .plan-icon {
    font-size: 28px;
    color: var(--bs-warning);
    margin-bottom: 6px;
}
.portal-sidebar-plan .plan-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--bs-heading-color);
    margin-bottom: 4px;
}
.portal-sidebar-plan .plan-desc {
    font-size: 0.78rem;
    color: var(--cs-color-sub);
    margin-bottom: 10px;
    line-height: 1.4;
}
.portal-sidebar-plan .plan-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 18px;
    background: linear-gradient(135deg, var(--bs-warning), var(--bs-warning-text-emphasis));
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    border: none;
    border-radius: 50rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.portal-sidebar-plan .plan-btn:hover {
    filter: brightness(0.92);
    color: #fff;
}
[data-theme="dark"] .portal-sidebar-plan {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(99, 102, 241, 0.14));
    border-color: rgba(14, 165, 233, 0.28);
}
[data-theme="dark"] .portal-sidebar-plan .plan-title {
    color: var(--bs-heading-color);
}
[data-theme="dark"] .portal-sidebar-plan .plan-desc {
    color: var(--portal-muted);
}

/* Sidebar Filter Card */
.portal-sidebar-filter {
    background: var(--surface);
    border: 1px solid var(--pp-border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
}
.portal-sidebar-filter .filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.portal-sidebar-filter .filter-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--bs-heading-color);
    display: flex;
    align-items: center;
    gap: 8px;
}
.portal-sidebar-filter .filter-title .material-symbols-outlined,
.portal-sidebar-filter .filter-title .material-icons {
    font-size: 20px;
    color: var(--bs-primary);
}
.portal-sidebar-filter .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--portal-text);
    margin-bottom: 5px;
}
.portal-sidebar-filter .form-control,
.portal-sidebar-filter .form-select {
    border-color: var(--pp-border);
    border-radius: 10px;
    font-size: 0.84rem;
    min-height: 38px;
}
.portal-sidebar-filter .form-control:focus,
.portal-sidebar-filter .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}
.portal-sidebar-filter .filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
}
[data-theme="dark"] .portal-sidebar-filter {
    background: var(--bs-custom-card-bg);
    border-color: var(--cs-card-border-color);
}
[data-theme="dark"] .portal-sidebar-filter .filter-title {
    color: var(--bs-heading-color);
}
[data-theme="dark"] .portal-sidebar-filter .form-label {
    color: var(--text-secondary);
}
[data-theme="dark"] .portal-sidebar-filter .form-control,
[data-theme="dark"] .portal-sidebar-filter .form-select {
    background: var(--surface-base);
    border-color: var(--cs-card-border-color);
    color: var(--bs-body-color);
}

/* Sidebar Info/Overview Card */
.portal-sidebar-info {
    background: var(--surface);
    border: 1px solid var(--pp-border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
}
.portal-sidebar-info .info-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--bs-heading-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.portal-sidebar-info .info-title .material-symbols-outlined,
.portal-sidebar-info .info-title .material-icons {
    font-size: 20px;
    color: var(--bs-primary);
}
.portal-sidebar-info .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--pp-border);
    font-size: 0.84rem;
}
.portal-sidebar-info .info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.portal-sidebar-info .info-label {
    color: var(--cs-color-sub);
    font-weight: 500;
}
.portal-sidebar-info .info-value {
    font-weight: 700;
    color: var(--bs-primary);
}
[data-theme="dark"] .portal-sidebar-info {
    background: var(--bs-custom-card-bg);
    border-color: var(--cs-card-border-color);
}
[data-theme="dark"] .portal-sidebar-info .info-title {
    color: var(--bs-heading-color);
}
[data-theme="dark"] .portal-sidebar-info .info-label {
    color: var(--portal-muted);
}
[data-theme="dark"] .portal-sidebar-info .info-item {
    border-bottom-color: var(--cs-card-border-color);
}

/* Sidebar Quick Actions */
.portal-sidebar-actions {
    background: var(--surface);
    border: 1px solid var(--pp-border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
}
.portal-sidebar-actions .actions-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--bs-heading-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.portal-sidebar-actions .action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    background: transparent;
    border: 1px solid var(--pp-border);
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--portal-text);
    text-decoration: none;
    transition: all 0.15s ease;
    margin-bottom: 6px;
}
.portal-sidebar-actions .action-btn:last-child {
    margin-bottom: 0;
}
.portal-sidebar-actions .action-btn:hover {
    background: rgba(14, 165, 233, 0.06);
    border-color: rgba(14, 165, 233, 0.25);
    color: var(--brand-active);
}
.portal-sidebar-actions .action-btn .material-symbols-outlined,
.portal-sidebar-actions .action-btn .material-icons {
    font-size: 18px;
    color: var(--bs-primary);
}
[data-theme="dark"] .portal-sidebar-actions {
    background: var(--bs-custom-card-bg);
    border-color: var(--cs-card-border-color);
}
[data-theme="dark"] .portal-sidebar-actions .actions-title {
    color: var(--bs-heading-color);
}
[data-theme="dark"] .portal-sidebar-actions .action-btn {
    color: var(--bs-body-color);
    border-color: var(--cs-card-border-color);
}
[data-theme="dark"] .portal-sidebar-actions .action-btn:hover {
    background: rgba(14, 165, 233, 0.12);
    color: var(--brand-accent);
}


/* ═══════════════════════════════════════════════════════════════════════════
   CME EVENTS PAGE – /cme/events
   ═══════════════════════════════════════════════════════════════════════════ */

.cme-vibe {
    --b: var(--portal-border);
    --m: var(--portal-muted);
    background:
        radial-gradient(1100px 340px at 0% -50%, rgba(14, 165, 233, 0.16), transparent 58%),
        radial-gradient(900px 300px at 100% -55%, rgba(2, 132, 199, 0.12), transparent 58%);
    border-radius: 18px;
}
.cme-card {
    background: var(--surface);
    border: 1px solid var(--b);
    border-radius: 16px;
}
.cme-hero { padding: 18px; }
.cme-title {
    font-size: clamp(1.3rem, 2.4vw, 2rem);
    font-weight: 800;
    color: var(--bs-heading-color);
}
.cme-sub { color: var(--m); }
.cme-search {
    border: 1px solid var(--b);
    border-radius: 999px;
    padding: 6px;
    background: var(--surface);
    display: flex;
    gap: 8px;
    align-items: center;
}
.cme-search input {
    border: 0;
    box-shadow: none;
    background: transparent;
}
.cme-pill, .cme-tab, .cme-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--b);
    border-radius: 999px;
    background: var(--surface);
    color: var(--bs-heading-color);
    text-decoration: none;
}
.cme-pill, .cme-tab {
    padding: 7px 12px;
    font-size: 0.83rem;
    font-weight: 600;
}
.cme-tab.active, .cme-tab:hover, .cme-pill:hover {
    border-color: rgba(14, 165, 233, 0.35);
    background: rgba(14, 165, 233, 0.09);
    color: var(--brand-active);
}
.portal-sidebar-nav .nav-link:active{
    color:white;
}
.cme-filter {
    padding: 14px;
    position: sticky;
    top: 84px;
}
.cme-filter .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bs-heading-color);
    margin-bottom: 5px;
}
.cme-filter .form-control, .cme-filter .form-select {
    border-color: var(--b);
    border-radius: 10px;
    font-size: 0.84rem;
    min-height: 38px;
}
.cme-results-head {
    padding: 10px 12px;
    margin-bottom: 10px;
}
.cme-chips {
    border: 1px dashed #c7d9eb;
    border-radius: 12px;
    background: var(--pp-soft);
    padding: 9px;
    margin-bottom: 10px;
}
.cme-chip {
    padding: 4px 8px;
    font-size: 0.75rem;
    color: var(--portal-text);
}
.cme-empty {
    border: 1px dashed #c7d9eb;
    border-radius: 14px;
    background: var(--pp-soft);
    padding: 44px 16px;
    text-align: center;
    color: var(--m);
}
.cme-empty .material-symbols-outlined {
    font-size: 52px;
    color: var(--text-faint);
}
[data-theme="dark"] .cme-card,
[data-theme="dark"] .cme-search,
[data-theme="dark"] .cme-pill,
[data-theme="dark"] .cme-tab,
[data-theme="dark"] .cme-chip {
  
    border-color: var(--cs-card-border-color) !important;
    color: var(--bs-heading-color) !important;
}
[data-theme="dark"] .cme-title { color: var(--bs-heading-color); }
[data-theme="dark"] .cme-sub,
[data-theme="dark"] .cme-empty { color: var(--portal-muted); }
[data-theme="dark"] .cme-chips,
[data-theme="dark"] .cme-empty {
    background: var(--surface-base);
    border-color: #344256;
}
@media (max-width: 991.98px) {
    .cme-filter { position: static; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   DRUG LIST PAGE – /drug-list
   ═══════════════════════════════════════════════════════════════════════════ */

.drug-left-sidebar {
    top: 90px;
}

.drug-left-card {
    border: 1px solid var(--border-color);
    background: var(--bs-custom-card-bg);
}

.quick-links-list .list-group-item {
    transition: all 0.2s ease;
    border-color: var(--border-color) !important;
    background: transparent;
    padding: 0.85rem 1rem;
    border-left: 0;
    border-right: 0;
}
.quick-links-list .list-group-item:last-child {
    border-bottom: 0;
}
.quick-links-list .list-group-item:hover {
    background: var(--app-bar-bg);
}
.quick-links-list .list-group-item.active {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: white !important;
    border-radius: 12px;
    margin: 4px 0;
    border: 0 !important;
}
.quick-links-list .list-group-item.active .badge {
    background-color: white !important;
    color: var(--bs-primary) !important;
}
.quick-links-list .badge {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.7rem;
    padding: 0;
}
[data-bs-theme="dark"] .quick-links-list .list-group-item:not(.active) {
    color: var(--bs-body-color);
}

.quick-glance-item {
    padding: 0.7rem 0;
    border-bottom: 1px dashed var(--border-color);
}
.quick-glance-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

/* AI Side Panel */
.ai-side-panel {
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.ai-side-panel.ai-panel-focus {
    transform: translateY(-2px);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2), var(--bs-box-shadow-lg) !important;
}

/* ── Fixed AI Chat Panel (right side) ── */
.ai-chat-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    max-height: calc(100vh - 100px);
    z-index: 1055;
    background: var(--app-bar-bg, #fff);
    border: 1px solid var(--pp-border, #e5e7eb);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), opacity 0.3s ease;
    transform: translateY(20px) scale(0.96);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}
.ai-chat-panel.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}
.ai-chat-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--pp-border, #e5e7eb);
    background: var(--portal-card-bg, #fff);
    flex-shrink: 0;
}
.ai-chat-panel-header .btn-close {
    font-size: 0.75rem;
    opacity: 0.7;
    padding: 0.45rem;
    flex-shrink: 0;
}
.ai-chat-panel-usage {
    padding: 8px 14px;
    border-bottom: 1px solid var(--pp-border, #e5e7eb);
    flex-shrink: 0;
}
.ai-chat-panel-body {
    padding: 30px 20px;
    flex: 1 1 auto;
    overflow-y: auto;
}
.ai-chat-panel-quick { flex-shrink: 0; }
.ai-chat-panel-messages {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 8px 14px;
    min-height: 0;
}
.ai-chat-panel-input {
    padding: 10px 14px;
    border-top: 1px solid var(--pp-border, #e5e7eb);
    flex-shrink: 0;
}

/* Backdrop for mobile */
.ai-panel-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1054;
    transition: opacity 0.3s ease;
}
.ai-panel-backdrop.show { display: block; }

/* ── Mobile (<= 576px): full-width slide-up sheet ── */
@media (max-width: 576px) {
    .ai-chat-panel {
        width: 100%;
        bottom: 0;
        right: 0;
        left: 0;
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
    }
}
/* ── Tablet (577-991px): narrower & shifted ── */
@media (min-width: 577px) and (max-width: 991.98px) {
    .ai-chat-panel {
        width: 340px;
        bottom: 12px;
        right: 12px;
    }
}

.ai-chat-panel.ai-panel-focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25), 0 8px 32px rgba(0,0,0,0.16) !important;
}

.ai-side-messages {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.ai-side-message {
    display: flex;
}
.ai-side-message.assistant {
    justify-content: flex-start;
}
.ai-side-message.user {
    justify-content: flex-end;
}
.ai-bubble {
    max-width: 88%;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--app-bar-bg);
    padding: 0.65rem 0.8rem;
    font-size: 0.82rem;
    line-height: 1.5;
    word-break: break-word;
}
.ai-side-message.user .ai-bubble {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}
.ai-side-message.user .ai-bubble small {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* AI Typing Indicator */
.ai-typing-indicator {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}
.ai-typing-indicator span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.35;
    animation: aiTyping 1s ease-in-out infinite;
}
.ai-typing-indicator span:nth-child(2) {
    animation-delay: 0.15s;
}
.ai-typing-indicator span:nth-child(3) {
    animation-delay: 0.3s;
}
@keyframes aiTyping {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
    40% { transform: translateY(-3px); opacity: 1; }
}

@media (max-width: 991.98px) {
    .drug-left-sidebar {
        position: static !important;
        top: auto !important;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   CONFERENCE PAGE – /conference
   ═══════════════════════════════════════════════════════════════════════════ */

.conference-plan-strip {
    border-radius: 16px;
    border: 1px solid rgba(14, 165, 233, 0.22);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(14, 165, 233, 0.14));
    padding: 14px 18px;
}
[data-theme="dark"] .conference-plan-strip {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(14, 165, 233, 0.1));
    border-color: rgba(14, 165, 233, 0.32);
}

/* Plan upgrade promo cards (shared by conference, diagnosis, etc.) */
.portal-plan-promo-blue {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.06), rgba(14, 165, 233, 0.12));
    border: 1px solid rgba(14, 165, 233, 0.15);
}
.portal-plan-promo-purple {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.06), rgba(168, 85, 247, 0.12));
    border: 1px solid rgba(168, 85, 247, 0.15);
}
.portal-plan-promo-blue .plan-label {
    color: var(--brand);
    font-size: 0.75rem;
}
.portal-plan-promo-purple .plan-label {
    color: #A855F7;
    font-size: 0.75rem;
}
.portal-plan-icon-blue {
    color: var(--brand);
    font-size: 22px;
}
.portal-plan-icon-purple {
    color: #A855F7;
}


/* ═══════════════════════════════════════════════════════════════════════════
   DISCUSS CASES PAGE – /discuss-cases
   ═══════════════════════════════════════════════════════════════════════════ */

/* Filled Material Symbols icon variant */
.material-symbols-outlined.fill-icon {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Case image thumbs */
.case-image-thumb {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.case-image-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Upload area */
.upload-area {
    cursor: pointer;
    transition: all 0.2s ease;
    border-style: dashed !important;
}
.upload-area:hover {
    background: rgba(var(--bs-primary-rgb), 0.04);
    border-color: var(--bs-primary) !important;
}


/* ═══════════════════════════════════════════════════════════════════════════
   SHARED / DROPDOWN OVERRIDES (apply across all portal pages)
   ═══════════════════════════════════════════════════════════════════════════ */

.dropdown-menu.show {
    z-index: 9999 !important;
}
.dropdown-menu {
    background-color: var(--surface) !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.08) !important;
    border-radius: 12px !important;
    padding: 8px !important;
}
[data-theme="dark"] .dropdown-menu {
    background-color: var(--surface) !important;
    border-color: var(--portal-border-strong) !important;
}
.dropdown-item {
    border-radius: 8px !important;
    padding: 8px 14px !important;
    transition: all 0.2s ease !important;
    font-size: 0.875rem;
}
.dropdown-item:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.06) !important;
    color: var(--bs-primary) !important;
}

/* Material Icons consistency */
.material-icons {
    font-family: 'Material Icons' !important;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block !important;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'liga';
    font-size: inherit;
    vertical-align: middle;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Stats styling (shared by meeting, conference pages) */
.stats-count {
    color: var(--text-primary);
}
.stats-label {
    color: var(--text-secondary);
    margin-bottom: 0;
}
[data-theme="dark"] .stats-count {
    color: var(--bs-heading-color);
}
[data-theme="dark"] .stats-label {
    color: var(--portal-muted);
}

/* Scrolling fix (prevent page from overflowing beyond content) */
.meeting-vibe html,
.meeting-vibe body {
    height: auto !important;
    min-height: 100vh !important;
    overflow-y: auto !important;
}


/* ═══════════════════════════════════════════════════════════════════════════
   DRUG LIST – Search Suggestions Dropdown
   ═══════════════════════════════════════════════════════════════════════════ */
.search-suggestions-wrap {
    position: relative;
}
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface, #fff);
    border: 1px solid var(--pp-border, #e5e7eb);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    max-height: 260px;
    overflow-y: auto;
    z-index: 1050;
    display: none;
    margin-top: 4px;
}
.search-suggestions.show { display: block; }
.search-suggestion-item {
    padding: 8px 14px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.search-suggestion-item:last-child { border-bottom: none; }
.search-suggestion-item:hover,
.search-suggestion-item.active {
    background: rgba(var(--bs-primary-rgb), 0.06);
    color: var(--bs-primary);
}
.search-suggestion-item .suggestion-trade {
    font-weight: 600;
}
.search-suggestion-item .suggestion-generic {
    font-size: 0.72rem;
    color: var(--text-secondary, #6c757d);
    margin-left: 6px;
}
[data-theme="dark"] .search-suggestions {
    background: var(--bs-custom-card-bg, #1e1e2e);
    border-color: var(--cs-card-border-color);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
[data-theme="dark"] .search-suggestion-item {
    border-color: rgba(255,255,255,0.06);
    color: var(--bs-body-color);
}


/* ═══════════════════════════════════════════════════════════════════════════
   DRUG LIST – Dark Mode: AI Chat Panel
   ═══════════════════════════════════════════════════════════════════════════ */
[data-theme="dark"] .ai-chat-panel {
    background: var(--bs-custom-card-bg, #1e1e2e);
    border-color: var(--cs-card-border-color, #2d2d3d);
    box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.25);
}
[data-theme="dark"] .ai-chat-panel-header {
    background: var(--bs-custom-card-bg, #1e1e2e);
    border-bottom-color: var(--cs-card-border-color, #2d2d3d);
}
[data-theme="dark"] .ai-chat-panel-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}
[data-theme="dark"] .ai-chat-panel-header .btn-outline-secondary {
    border-color: rgba(255,255,255,0.2);
    color: var(--bs-body-color);
}
[data-theme="dark"] .ai-chat-panel-usage {
    border-bottom-color: var(--cs-card-border-color, #2d2d3d);
}
[data-theme="dark"] .ai-chat-panel-body {
    color: var(--bs-body-color);
}
[data-theme="dark"] .ai-chat-panel-body h6,
[data-theme="dark"] .ai-chat-panel-body p {
    color: var(--bs-body-color);
}
[data-theme="dark"] .ai-chat-panel-input {
    border-top-color: var(--cs-card-border-color, #2d2d3d);
}
[data-theme="dark"] .ai-chat-panel-input textarea,
[data-theme="dark"] .ai-chat-panel-input .form-control {
    background-color: var(--portal-border-strong, #2d2d3d) !important;
    color: var(--bs-body-color) !important;
    border-color: var(--cs-card-border-color, #3d3d4d) !important;
}
[data-theme="dark"] .ai-bubble {
    background: var(--portal-border-strong, #2d2d3d);
    border-color: var(--cs-card-border-color, #3d3d4d);
    color: var(--bs-body-color);
}
[data-theme="dark"] .ai-side-message.user .ai-bubble {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}
[data-theme="dark"] .ai-chat-panel-quick .btn-outline-primary {
    border-color: rgba(var(--bs-primary-rgb), 0.4);
    color: var(--bs-primary);
}
[data-theme="dark"] #ai-side-drug-name {
    color: var(--bs-body-color);
}
[data-theme="dark"] .ai-chat-panel-messages {
    color: var(--bs-body-color);
}


/* ═══════════════════════════════════════════════════════════════════════════
   DRUG LIST – Dark Mode: Search Input, Country Select, View Toggle
   ═══════════════════════════════════════════════════════════════════════════ */

/* View toggle – light mode icon visibility */
.view-toggle button {
    transition: all 0.2s ease;
}
.view-toggle button:not(.btn-primary) {
    color: var(--bs-primary) !important;
    background: transparent !important;
}
.view-toggle button.btn-primary {
    color: #fff !important;
}

[data-theme="dark"] .portal-results-header .input-group-text.bg-theme-subtle,
[data-theme="dark"] .portal-results-header .form-control.bg-theme-subtle {
    background-color: var(--portal-border-strong, #2d2d3d) !important;
    color: var(--bs-body-color) !important;
}
[data-theme="dark"] .portal-results-header .form-select.bg-theme-subtle {
    background-color: var(--portal-border-strong, #2d2d3d) !important;
    color: var(--bs-body-color) !important;
}
[data-theme="dark"] .portal-results-header .input-group-text {
    color: var(--bs-body-color) !important;
}
[data-theme="dark"] .view-toggle.bg-theme-subtle {
    background-color: var(--portal-border-strong, #2d2d3d) !important;
    border-color: var(--cs-card-border-color, #3d3d4d) !important;
}
[data-theme="dark"] .view-toggle button:not(.btn-primary) {
    color: var(--bs-body-color) !important;
    background: transparent !important;
}
[data-theme="dark"] .view-toggle button.btn-primary {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
}

/* ─── Dark Mode: Overview Card enhancements ──────────────────────────── */
[data-theme="dark"] .portal-sidebar-info {
  
    border-color: var(--cs-card-border-color) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
[data-theme="dark"] .portal-sidebar-info .info-value {
    color: var(--bs-primary);
}

/* ─── Dark Mode: Drug Card Header ─────────────────────────────────────── */
[data-theme="dark"] .drug-item .border-bottom.border-theme.bg-theme-subtle {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border-bottom-color: var(--cs-card-border-color) !important;
}

/* ─── Dark Mode: Portal Card (drug cards) ─────────────────────────────── */
[data-theme="dark"] .portal-card {
  
    border-color: var(--cs-card-border-color) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

/* ─── Dark Mode: 3-dot menu button visibility ─────────────────────────── */
[data-theme="dark"] .dropdown .btn-light,
[data-theme="dark"] .dropdown .btn.btn-icon.btn-light {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: var(--bs-body-color) !important;
}
[data-theme="dark"] .dropdown .btn-light:hover,
[data-theme="dark"] .dropdown .btn.btn-icon.btn-light:hover {
    background-color: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}
[data-theme="dark"] .dropdown .btn-light .material-symbols-outlined,
[data-theme="dark"] .dropdown .btn-light .material-icons {
    color: var(--bs-body-color) !important;
}

/* ─── Dark Mode: Dropdown menu ────────────────────────────────────────── */
[data-theme="dark"] .dropdown-menu {
    background-color: var(--bs-custom-card-bg) !important;
    border: 1px solid var(--cs-card-border-color) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}
[data-theme="dark"] .dropdown-menu .dropdown-item {
    color: var(--bs-body-color) !important;
}
[data-theme="dark"] .dropdown-menu .dropdown-item:hover,
[data-theme="dark"] .dropdown-menu .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--bs-primary) !important;
}

/* ─── Dark Mode: Sidebar Quick Actions ────────────────────────────────── */
[data-theme="dark"] .portal-sidebar-actions {
  
    border-color: var(--cs-card-border-color) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* ═══════════════════════════════════════════════════════════════════════════
   JOBS PORTAL – Shared shell extracted from the jobs listing page
   ═══════════════════════════════════════════════════════════════════════════ */

.jobs-vibe,
.jobs-vibe button,
.jobs-vibe input,
.jobs-vibe select,
.jobs-vibe textarea {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@keyframes shimmerBone {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.jobs-vibe .shimmer-bone {
    background: linear-gradient(90deg, var(--shimmer-base, #f0f0f0) 25%, var(--shimmer-highlight, #e8e8e8) 50%, var(--shimmer-base, #f0f0f0) 75%);
    background-size: 800px 100%;
    animation: shimmerBone 1.5s infinite linear;
    border-radius: 8px;
}

[data-theme="dark"] .jobs-vibe .shimmer-bone {
    --shimmer-base: #2a2a2a;
    --shimmer-highlight: #3a3a3a;
}

.jobs-vibe #inline-dynamic-area {
    animation: fadeInContent 0.3s ease;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jobs-vibe #inline-loaded-content > div {
    animation: fadeInContent 0.35s ease;
}

.jobs-vibe .inline-back-btn {
    transition: all 0.2s;
}

.jobs-vibe .inline-back-btn:hover {
    color: var(--bs-primary) !important;
    transform: translateX(-2px);
}

.jobs-vibe .job-sidebar-see-all.active-inline,
.jobs-vibe .job-sidebar-item.active-inline {
    color: var(--bs-primary) !important;
    font-weight: 700;
}

.jobs-vibe .jl-hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background:
        radial-gradient(circle at top right, rgba(var(--bs-primary-rgb), 0.14), transparent 28%),
        linear-gradient(180deg, rgba(var(--bs-primary-rgb), 0.03), rgba(255, 255, 255, 0.98));
    border: 1px solid rgba(var(--bs-primary-rgb), 0.08);
    box-shadow: 0 24px 44px -32px rgba(15, 23, 42, 0.28);
}

.jobs-vibe .jl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(var(--bs-primary-rgb), 0.08);
    color: var(--bs-primary);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.jobs-vibe .jl-title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.jobs-vibe .jl-subtitle {
    margin: 0.75rem 0 0;
    max-width: 62ch;
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
}

.jobs-vibe .jl-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.jobs-vibe .jl-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.58rem 0.85rem;
    border-radius: 999px;
    background: #f8fbff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #334155;
    font-size: 0.83rem;
    font-weight: 600;
}

.jobs-vibe .jl-chip .material-symbols-outlined {
    font-size: 1rem;
    color: var(--bs-primary);
}

.jobs-vibe .jl-shell-card {
    border-radius: 20px;
    background: var(--bs-custom-card-bg, #ffffff);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 18px 38px -28px rgba(15, 23, 42, 0.22);
}

.jobs-vibe .portal-results-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 18px 34px -30px rgba(15, 23, 42, 0.24);
}

.jobs-vibe .job-results-count {
    color: #475569;
    font-size: 0.95rem;
}

.jobs-vibe .results-count {
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.jobs-vibe .job-card-modern {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), #ffffff);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 22px;
    padding: 1.35rem;
    box-shadow: 0 18px 38px -30px rgba(15, 23, 42, 0.26);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.jobs-vibe .job-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px -30px rgba(15, 23, 42, 0.34);
    border-color: rgba(var(--bs-primary-rgb), 0.18);
}

.jobs-vibe .job-card-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.65rem;
    border-radius: 999px;
    background: rgba(var(--bs-primary-rgb), 0.08);
    color: var(--bs-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.jobs-vibe .job-card-summary {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.75;
}

.jobs-vibe .job-card-detail-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.9rem;
}

.jobs-vibe .job-card-detail-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.48rem 0.72rem;
    border-radius: 999px;
    background: #f8fbff;
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: #334155;
    font-size: 0.8rem;
    font-weight: 600;
}

.jobs-vibe .job-card-detail-pill .material-symbols-outlined {
    font-size: 0.95rem;
    color: var(--bs-primary);
}

.jobs-vibe .job-card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.jobs-vibe .job-card-meta-item {
    min-width: 0;
}

.jobs-vibe .job-card-meta-label {
    display: block;
    margin-bottom: 0.22rem;
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.jobs-vibe .job-card-meta-value {
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 700;
}

.jobs-vibe .portal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.jobs-vibe .portal-sidebar .card,
.jobs-vibe .portal-sidebar .job-sidebar-card,
.jobs-vibe .portal-sidebar .sidebar-filter-shell {
    border: 1px solid rgba(148, 163, 184, 0.14) !important;
    border-radius: 22px !important;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), #ffffff) !important;
    box-shadow: 0 18px 38px -30px rgba(15, 23, 42, 0.24) !important;
}

.jobs-vibe .portal-sidebar .card-body,
.jobs-vibe .portal-sidebar .job-sidebar-card-body {
    padding: 1rem 1.05rem;
}

.jobs-vibe .portal-sidebar .card .card-body > .d-flex.align-items-center.mb-3,
.jobs-vibe .job-sidebar-card-header {
    margin-bottom: 0.95rem !important;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.jobs-vibe .job-sidebar-card-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 1.05rem 0;
    color: #0f172a;
    font-size: 0.96rem;
    font-weight: 800;
}

.jobs-vibe .portal-sidebar h6,
.jobs-vibe .portal-sidebar .job-sidebar-item-title,
.jobs-vibe .portal-sidebar .job-applicant-name {
    color: #0f172a;
}

.jobs-vibe .portal-sidebar .job-sidebar-item,
.jobs-vibe .portal-sidebar .job-sidebar-divider-list > a,
.jobs-vibe .portal-sidebar .job-applicant-item {
    border-radius: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.jobs-vibe .portal-sidebar .job-sidebar-item {
    padding: 0.82rem 0.9rem;
    background: #f8fbff;
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.jobs-vibe .portal-sidebar .job-sidebar-divider-list > a,
.jobs-vibe .portal-sidebar .job-applicant-item {
    padding: 0.82rem 0.9rem;
}

.jobs-vibe .portal-sidebar .job-sidebar-item:hover,
.jobs-vibe .portal-sidebar .job-sidebar-divider-list > a:hover,
.jobs-vibe .portal-sidebar .job-applicant-item:hover {
    transform: translateY(-1px);
    background: rgba(var(--bs-primary-rgb), 0.045);
    border-color: rgba(var(--bs-primary-rgb), 0.18);
    box-shadow: 0 16px 26px -24px rgba(15, 23, 42, 0.28);
}

.jobs-vibe .portal-sidebar .job-sidebar-item-sub,
.jobs-vibe .portal-sidebar .job-applicant-meta,
.jobs-vibe .portal-sidebar .text-muted,
.jobs-vibe .portal-sidebar small {
    color: #64748b !important;
}

.jobs-vibe .portal-sidebar .job-sidebar-see-all {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.9rem;
    color: var(--bs-primary);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.jobs-vibe .portal-sidebar .job-sidebar-see-all:hover {
    color: #0b5ed7;
}

.jobs-vibe .job-sidebar-activity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-bottom: 0.95rem;
}

.jobs-vibe .job-sidebar-activity-stat {
    padding: 0.82rem 0.85rem;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.jobs-vibe .job-sidebar-activity-label {
    display: block;
    margin-bottom: 0.2rem;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.jobs-vibe .job-sidebar-activity-value {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 800;
}

.jobs-vibe .job-sidebar-mini-list {
    display: grid;
    gap: 0.7rem;
}

.jobs-vibe .job-sidebar-mini-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.78rem 0.82rem;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.jobs-vibe .job-sidebar-mini-item-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
}

.jobs-vibe .job-sidebar-mini-item-icon .material-symbols-outlined {
    font-size: 1rem;
}

.jobs-vibe .job-sidebar-mini-title {
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
}

.jobs-vibe .job-sidebar-mini-sub {
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.4;
}

.jobs-vibe .job-sidebar-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 0.95rem;
}

.jobs-vibe .portal-sidebar .sticky-widget {
    position: sticky;
    top: 1.25rem;
}

.jobs-vibe .sidebar-filter-shell {
    background: transparent;
}

.jobs-vibe .job-mobile-filter-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.72rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: #f8fbff;
    color: #0f172a;
    font-weight: 700;
    white-space: nowrap;
}

.jobs-vibe .job-mobile-filter-trigger .badge {
    border-radius: 999px;
    background: rgba(var(--bs-primary-rgb), 0.12);
    color: var(--bs-primary);
    font-size: 0.72rem;
}

.jobs-vibe .jobs-filter-drawer {
    width: min(100vw, 380px);
    border-left: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.jobs-vibe .jobs-filter-drawer .offcanvas-header {
    padding: 1rem 1rem 0.65rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.jobs-vibe .jobs-filter-drawer .offcanvas-body {
    padding: 1rem;
}

.jobs-vibe .jobs-filter-drawer-eyebrow {
    color: var(--bs-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jobs-vibe .job-filter-card {
    border: 1px solid rgba(148, 163, 184, 0.14) !important;
    border-radius: 22px !important;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), #ffffff) !important;
    box-shadow: 0 18px 38px -30px rgba(15, 23, 42, 0.24) !important;
}

.jobs-vibe .job-filter-card-head {
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.jobs-vibe .job-filter-card .card-body {
    padding: 1rem 1.1rem 1.15rem;
}

.jobs-vibe .job-filter-eyebrow {
    color: var(--bs-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jobs-vibe .job-filter-card h5 {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

.jobs-vibe .job-filter-card .reset-filters {
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.jobs-vibe .job-filter-card .form-label {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.jobs-vibe .job-filter-card .form-control,
.jobs-vibe .job-filter-card .form-select,
.jobs-vibe .job-filter-card .input-group-text {
    min-height: 48px;
    border-color: rgba(148, 163, 184, 0.18);
    border-radius: 16px;
}

.jobs-vibe .job-filter-card .input-group-text {
    background: #f8fbff;
    color: var(--bs-primary);
}

.jobs-vibe .job-filter-card .form-control,
.jobs-vibe .job-filter-card .form-select {
    background: #fff;
    box-shadow: none;
}

.jobs-vibe .job-filter-card .form-control:focus,
.jobs-vibe .job-filter-card .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.22rem rgba(13, 110, 253, 0.12);
}

.jobs-vibe .job-filter-card .input-group > .form-control {
    border-left: 0;
    padding-left: 0;
}

.jobs-vibe .job-filter-card [data-filter-apply] {
    min-height: 50px;
    border-radius: 16px;
    font-weight: 700;
    box-shadow: 0 16px 28px -24px rgba(var(--bs-primary-rgb), 0.85);
}

[data-theme="dark"] .jobs-vibe .jl-hero,
[data-bs-theme="dark"] .jobs-vibe .jl-hero {
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 30%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.92));
    border-color: rgba(148, 163, 184, 0.18);
}

[data-theme="dark"] .jobs-vibe .jl-title,
[data-theme="dark"] .jobs-vibe .results-count,
[data-theme="dark"] .jobs-vibe .job-card-meta-value,
[data-theme="dark"] .jobs-vibe .portal-sidebar h6,
[data-theme="dark"] .jobs-vibe .portal-sidebar .job-sidebar-item-title,
[data-theme="dark"] .jobs-vibe .portal-sidebar .job-applicant-name,
[data-theme="dark"] .jobs-vibe .job-mobile-filter-trigger,
[data-theme="dark"] .jobs-vibe .job-sidebar-activity-value,
[data-theme="dark"] .jobs-vibe .job-sidebar-mini-title,
[data-theme="dark"] .jobs-vibe .job-filter-card h5,
[data-theme="dark"] .jobs-vibe .job-filter-card .form-label,
[data-bs-theme="dark"] .jobs-vibe .jl-title,
[data-bs-theme="dark"] .jobs-vibe .results-count,
[data-bs-theme="dark"] .jobs-vibe .job-card-meta-value,
[data-bs-theme="dark"] .jobs-vibe .portal-sidebar h6,
[data-bs-theme="dark"] .jobs-vibe .portal-sidebar .job-sidebar-item-title,
[data-bs-theme="dark"] .jobs-vibe .portal-sidebar .job-applicant-name,
[data-bs-theme="dark"] .jobs-vibe .job-mobile-filter-trigger,
[data-bs-theme="dark"] .jobs-vibe .job-sidebar-activity-value,
[data-bs-theme="dark"] .jobs-vibe .job-sidebar-mini-title,
[data-bs-theme="dark"] .jobs-vibe .job-filter-card h5,
[data-bs-theme="dark"] .jobs-vibe .job-filter-card .form-label {
    color: #f8fafc;
}

[data-theme="dark"] .jobs-vibe .jl-subtitle,
[data-theme="dark"] .jobs-vibe .job-results-count,
[data-theme="dark"] .jobs-vibe .job-card-summary,
[data-bs-theme="dark"] .jobs-vibe .jl-subtitle,
[data-bs-theme="dark"] .jobs-vibe .job-results-count,
[data-bs-theme="dark"] .jobs-vibe .job-card-summary {
    color: #cbd5e1;
}

[data-theme="dark"] .jobs-vibe .jl-chip,
[data-theme="dark"] .jobs-vibe .jl-shell-card,
[data-theme="dark"] .jobs-vibe .portal-results-header,
[data-theme="dark"] .jobs-vibe .job-card-modern,
[data-theme="dark"] .jobs-vibe .job-card-detail-pill,
[data-theme="dark"] .jobs-vibe .portal-sidebar .card,
[data-theme="dark"] .jobs-vibe .portal-sidebar .job-sidebar-card,
[data-theme="dark"] .jobs-vibe .portal-sidebar .sidebar-filter-shell,
[data-theme="dark"] .jobs-vibe .jobs-filter-drawer,
[data-theme="dark"] .jobs-vibe .job-filter-card,
[data-bs-theme="dark"] .jobs-vibe .jl-chip,
[data-bs-theme="dark"] .jobs-vibe .jl-shell-card,
[data-bs-theme="dark"] .jobs-vibe .portal-results-header,
[data-bs-theme="dark"] .jobs-vibe .job-card-modern,
[data-bs-theme="dark"] .jobs-vibe .job-card-detail-pill,
[data-bs-theme="dark"] .jobs-vibe .portal-sidebar .card,
[data-bs-theme="dark"] .jobs-vibe .portal-sidebar .job-sidebar-card,
[data-bs-theme="dark"] .jobs-vibe .portal-sidebar .sidebar-filter-shell,
[data-bs-theme="dark"] .jobs-vibe .jobs-filter-drawer,
[data-bs-theme="dark"] .jobs-vibe .job-filter-card {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(148, 163, 184, 0.18);
}

[data-theme="dark"] .jobs-vibe .portal-sidebar .job-sidebar-item,
[data-theme="dark"] .jobs-vibe .job-mobile-filter-trigger,
[data-theme="dark"] .jobs-vibe .job-sidebar-activity-stat,
[data-theme="dark"] .jobs-vibe .job-sidebar-mini-item,
[data-theme="dark"] .jobs-vibe .job-filter-card .form-control,
[data-theme="dark"] .jobs-vibe .job-filter-card .form-select,
[data-theme="dark"] .jobs-vibe .job-filter-card .input-group-text,
[data-bs-theme="dark"] .jobs-vibe .portal-sidebar .job-sidebar-item,
[data-bs-theme="dark"] .jobs-vibe .job-mobile-filter-trigger,
[data-bs-theme="dark"] .jobs-vibe .job-sidebar-activity-stat,
[data-bs-theme="dark"] .jobs-vibe .job-sidebar-mini-item,
[data-bs-theme="dark"] .jobs-vibe .job-filter-card .form-control,
[data-bs-theme="dark"] .jobs-vibe .job-filter-card .form-select,
[data-bs-theme="dark"] .jobs-vibe .job-filter-card .input-group-text {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(148, 163, 184, 0.18);
}

[data-theme="dark"] .jobs-vibe .job-filter-card .form-control,
[data-theme="dark"] .jobs-vibe .job-filter-card .form-select,
[data-theme="dark"] .jobs-vibe .job-filter-card .input-group-text,
[data-bs-theme="dark"] .jobs-vibe .job-filter-card .form-control,
[data-bs-theme="dark"] .jobs-vibe .job-filter-card .form-select,
[data-bs-theme="dark"] .jobs-vibe .job-filter-card .input-group-text {
    color: #f8fafc;
}

@media (max-width: 991.98px) {
    .jobs-vibe .jl-hero {
        padding: 1.2rem;
    }

    .jobs-vibe .portal-results-header {
        padding: 0.95rem 1rem;
    }

    .jobs-vibe .portal-sidebar .sticky-widget {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .jobs-vibe .jl-hero {
        border-radius: 20px;
        padding: 1rem;
        margin-bottom: 1.1rem;
    }

    .jobs-vibe .jl-chip-row {
        gap: 0.55rem;
        margin-top: 0.85rem;
    }

    .jobs-vibe .jl-chip {
        font-size: 0.76rem;
        padding: 0.5rem 0.72rem;
    }

    .jobs-vibe .portal-results-header {
        align-items: stretch;
    }

    .jobs-vibe .portal-results-header > div:last-child {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .jobs-vibe .job-sort-btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .jobs-vibe .view-toggle {
        flex: 0 0 auto;
    }

    .jobs-vibe .job-card-modern {
        padding: 1rem;
        border-radius: 18px;
    }

    .jobs-vibe .job-card-footer-row {
        gap: 0.85rem 1rem !important;
    }

    .jobs-vibe .job-card-actions {
        width: 100%;
        margin-left: 0 !important;
        justify-content: stretch;
    }

    .jobs-vibe .job-card-actions .btn,
    .jobs-vibe .job-card-actions .dropdown,
    .jobs-vibe .job-card-actions .dropdown > button {
        flex: 1 1 0;
    }

    .jobs-vibe .job-mobile-filter-trigger {
        flex: 1 1 100%;
        justify-content: center;
    }

    .jobs-vibe .job-sidebar-activity-grid {
        grid-template-columns: 1fr;
    }

    .jobs-vibe .job-filter-card-head {
        align-items: flex-start !important;
    }
}

@media (max-width: 575.98px) {
    .jobs-vibe .results-count {
        font-size: 1.15rem;
    }

    .jobs-vibe .job-results-count {
        font-size: 0.88rem;
    }

    .jobs-vibe .job-card-company-meta {
        gap: 0.55rem 0.9rem !important;
    }
}
