/* Theme 1: 🌊 Tide & Trail (Nature) - Default (Matching Screenshot) */
.icon-svg {
    display: inline-block;
    vertical-align: -0.15em;
    flex-shrink: 0;
}
.d-none {
    display: none;
}

:root, [data-theme="warm"] {
    --primary: #107c82;
    --primary-dark: #0c5c61;
    --secondary: #1b5e68;
    --accent: #107c82;
    --bg-color: #f5f2e8;
    --sidebar-bg: #eae5d8;
    --sidebar-hover: #d8ece8;
    --card-bg: #ffffff;
    --header-bg: #f5f2e8;
    --text-color: #113033;
    --text-muted: #52686a;
    --border-color: #dcd5c7;
    --border-radius: 12px;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    --active-link-bg: #d4efeb;
    --active-link-text: #0d484c;
    --input-bg: #fcfbfa;
    --input-border: #d8d1bf;
}

/* Theme 2: 🌙 Dark Mode */
[data-theme="dark"] {
    --primary: #06b6d4;
    --primary-dark: #0891b2;
    --secondary: #8b5cf6;
    --accent: #10b981;
    --bg-color: #0b0f19;
    --sidebar-bg: #070b13;
    --sidebar-hover: #132435;
    --card-bg: #141c2e;
    --header-bg: #0b0f19;
    --text-color: #f8fafc;
    --text-muted: #8492a6;
    --border-color: #212d40;
    --border-radius: 12px;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    --active-link-bg: #0e3748;
    --active-link-text: #38bdf8;
    --input-bg: #1a2332;
    --input-border: #2b3b54;
}

/* Theme 3: ⚡ Futuristic Bright */
[data-theme="futuristic"] {
    --primary: #d96b43;
    --primary-dark: #b8522c;
    --secondary: #7c5295;
    --accent: #d96b43;
    --bg-color: #fbf7f1;
    --sidebar-bg: #efe7db;
    --sidebar-hover: #fce8e0;
    --card-bg: #ffffff;
    --header-bg: #fbf7f1;
    --text-color: #2d221e;
    --text-muted: #6e5c54;
    --border-color: #e2d5c5;
    --border-radius: 12px;
    --shadow: 0 8px 30px rgba(184, 82, 44, 0.06);
    --active-link-bg: #fce4da;
    --active-link-text: #8c3413;
    --input-bg: #ffffff;
    --input-border: #decbb8;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
}

/* Serious & Professional Links & Link Graphics/GIFs/Icons */
a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
    color: var(--primary-dark);
}

a img,
.btn img,
.sidebar-link img,
.link-icon {
    display: inline-block;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
    opacity: 0.92;
    transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

a:hover img,
.btn:hover img,
.sidebar-link:hover img {
    opacity: 1;
    transform: scale(1.08);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

/* FIXED LEFT SIDEBAR */
.sidebar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    padding: 1.25rem 1rem;
    box-sizing: border-box;
    overflow-y: auto;
    transition: background 0.3s, border-color 0.3s;
}

.sidebar-header {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.sidebar-nav-section {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.sidebar-section-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
    padding-left: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 999px;
    border-left: 4px solid transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-link:hover {
    background: var(--sidebar-hover);
    color: var(--primary-dark);
    transform: translateX(4px);
}

.sidebar-link.active {
    background: var(--active-link-bg);
    color: var(--active-link-text);
    border-left-color: var(--primary);
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.sidebar-link.active .nav-draw-icon {
    color: var(--primary);
    stroke-width: 2.3;
}

.sidebar-link.active {
    background: var(--sidebar-hover);
    border-left-color: var(--primary);
    font-weight: 700;
    color: var(--primary-dark);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
}

/* ==========================================================================
   ARTISTIC & THEME-ADAPTIVE ANIMATED VECTOR ICONS SYSTEM
   ========================================================================== */

.artistic-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.12) 0%, rgba(15, 118, 110, 0.18) 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    overflow: hidden;
}

[data-theme="dark"] .artistic-icon-box {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(14, 165, 233, 0.3) 100%);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

[data-theme="futuristic"] .artistic-icon-box {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.2) 0%, rgba(79, 70, 229, 0.22) 100%);
    border-color: rgba(147, 197, 253, 0.45);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.sidebar-link:hover .artistic-icon-box,
a:hover .artistic-icon-box,
.btn:hover .artistic-icon-box {
    transform: scale(1.12) rotate(3deg);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.4);
}

.nav-draw-icon {
    width: 20px;
    height: 20px;
    color: var(--secondary);
    transition: all 0.25s ease;
}

.sidebar-link:hover .nav-draw-icon {
    color: #ffffff;
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.category-grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    width: 100%;
}

@media (max-width: 640px) {
    .category-grid-container {
        gap: 0.35rem;
    }
}

.category-art-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.category-art-card h3 {
    font-size: clamp(0.75rem, 1.05vw, 0.95rem) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-art-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.category-art-card:hover::before {
    opacity: 1;
}

.category-art-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18) !important;
    border-color: var(--primary) !important;
}

.category-art-img-box {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.4rem auto;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 70%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.artistic-cat-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
    transition: transform 0.35s ease, filter 0.35s ease;
}

.category-art-card:hover .artistic-cat-img {
    transform: scale(1.15) rotate(2deg);
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.category-art-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 6px 16px rgba(15, 118, 110, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-art-box svg {
    width: 26px;
    height: 26px;
    stroke: #ffffff;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.category-art-card:hover .category-art-box {
    transform: scale(1.14) translateY(-4px);
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.4);
}

/* Dynamic Micro Animations */
@keyframes iconPulseGlow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0px transparent); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 6px var(--secondary)); }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

@keyframes iconSpinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animated-pulse { animation: iconPulseGlow 3.5s infinite ease-in-out; }
.animated-float { animation: iconFloat 4s infinite ease-in-out; }
.animated-spin { animation: iconSpinSlow 12s linear infinite; }

.theme-label {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.35rem;
}

.theme-select, .lang-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.lang-select {
    width: auto;
    padding: 0.4rem 0.6rem;
}

/* MAIN CONTENT WRAPPER */
.main-wrapper {
    margin-left: 250px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: var(--header-bg);
    padding: 0.85rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 900;
    transition: background 0.3s, border-color 0.3s;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary);
    text-decoration: none;
}

/* Inputs & Controls */
input,
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: var(--border-radius);
    outline: none;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.3s;
    box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
}

/* Serious, Executive Button Base */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.35rem;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.015em;
    line-height: 1.4;
    color: #ffffff;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12), inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18), inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.btn:active {
    transform: translateY(0);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
    border-radius: 0.375rem;
}

.btn-secondary {
    background: linear-gradient(180deg, var(--secondary) 0%, #0369a1 100%);
}

.btn-secondary:hover {
    background: #0369a1;
}

.btn-outline {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--sidebar-hover);
    border-color: var(--primary);
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.card {
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    transition: background 0.3s, border-color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* SEARCH PAGE FILTER LAYOUT & CHIPS */
.compact-search-card {
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: var(--border-radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    transition: background 0.3s, border-color 0.3s;
}

.search-filter-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.search-filter-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.25rem 0;
    border-bottom: 1px dashed var(--border-color);
}

.search-filter-row:last-child {
    border-bottom: none;
}

.filter-row-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 140px;
    max-width: 140px;
}

.filter-row-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.clickable-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.chip-item {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.chip-item input[type="checkbox"] {
    display: none;
}

.chip-label {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--sidebar-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.chip-item:hover .chip-label {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.chip-item input[type="checkbox"]:checked + .chip-label {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary-dark);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.range-inputs-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 420px;
}

.range-inputs-inline input {
    flex: 1;
    padding: 0.45rem 0.75rem;
    font-size: 0.88rem;
}

.range-sep {
    font-size: 0.82rem;
    font-weight: bold;
    color: var(--text-muted);
}

.results-split-layout {
    display: block;
    width: 100%;
}

.mobile-filter-toggle {
    display: none;
    margin-bottom: 1rem;
}

@media (max-width: 992px) {
    .search-filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
    .filter-row-label {
        min-width: 100%;
    }
    .mobile-filter-toggle {
        display: block;
    }
}

/* Dropdown Search */
.search-container {
    position: relative;
    display: flex;
    gap: 0.5rem;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-height: 300px;
    overflow-y: auto;
    z-index: 10;
    display: none;
    margin-top: 0.5rem;
    border: 1px solid var(--border-color);
}

.search-dropdown.active {
    display: block;
}

.search-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background-color: var(--sidebar-hover);
}

/* Wide Container for Layout */
.container-wide {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.search-layout {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 1.25rem;
    width: 100%;
    align-items: flex-start;
    position: relative;
}

.job-detail-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 1.25rem;
    width: 100%;
    align-items: flex-start;
    position: relative;
}

.messaging-container {
    container-type: inline-size;
    container-name: msgpane;
    width: 100%;
}

.messaging-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 260px;
    gap: 0.75rem;
    width: 100%;
    height: calc(100vh - 125px);
    box-sizing: border-box;
    align-items: stretch;
}

/* Container queries: breakpoints measure the message center's OWN width
   (sidebar already excluded), so panes stay side-by-side until space truly
   runs out — and it's immune to browser zoom / OS display scaling. */
@container msgpane (max-width: 760px) {
    .messaging-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 0.5rem;
    }
    .messaging-layout .pane-right {
        display: none;
    }
}

@container msgpane (max-width: 520px) {
    .messaging-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
}

/* Fallback for browsers without container-query support (pre-2023):
   keep the viewport-based rules so the layout still degrades gracefully. */
@supports not (container-type: inline-size) {
    @media (max-width: 1000px) {
        .messaging-layout {
            grid-template-columns: 220px minmax(0, 1fr);
            gap: 0.5rem;
        }
        .messaging-layout .pane-right {
            display: none;
        }
    }
    @media (max-width: 760px) {
        .messaging-layout {
            grid-template-columns: 1fr;
            height: auto;
        }
    }
}

.pane-left {
    width: 100%;
    box-sizing: border-box;
    position: sticky;
    top: 5rem;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.pane-center {
    width: 100%;
    box-sizing: border-box;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 0.25rem;
}

.pane-right {
    width: 100%;
    box-sizing: border-box;
    position: sticky;
    top: 5rem;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

/* Job Cards */
.job-item-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.job-item-card:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.job-item-card.active {
    border-color: var(--primary);
    background: var(--card-bg);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-cat {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-term {
    background: #fef3c7;
    color: #92400e;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-body {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 90%;
    border: 1px solid var(--border-color);
}

/* Job Detail Modal Overlay (Pops up overflow on top of central pane) */
.job-detail-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    box-sizing: border-box;
    animation: fadeIn 0.2s ease-out;
}

.job-detail-modal-overlay.active {
    display: flex;
}

.job-detail-modal-card {
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 760px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.job-detail-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

.job-detail-modal-close {
    background: #f1f5f9;
    border: none;
    color: #64748b;
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.job-detail-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: scale(1.05);
}

.job-detail-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   THEME HERO BANNERS (.dn-hero-art) FOR BASE THEMES
   ========================================================================== */
.dn-hero-art {
    display: block;
    width: 100%;
    aspect-ratio: 1200 / 340;
    max-height: 360px;
    border-radius: var(--border-radius);
    background-size: cover;
    background-position: center;
    margin: 1.25rem 0 0.5rem 0;
}

/* Warm Bright Banner (Default) */
:root .dn-hero-art, [data-theme="warm"] .dn-hero-art {
    display: block;
    background-image: url("../images/dignom_beach_banner.png");
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

/* Dark Mode Banner */
[data-theme="dark"] .dn-hero-art {
    display: block;
    background-image: url("../images/art-v2/dark-hero.svg");
    border: 1px solid #212d40;
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.18);
}

/* Futuristic Bright Banner */
[data-theme="futuristic"] .dn-hero-art {
    display: block;
    background-image: url("../images/art-v2/futuristic-hero.svg");
    border: 1px solid #e2d5c5;
    box-shadow: 0 8px 30px rgba(184, 82, 44, 0.08);
}

/* GLOBAL INPUT TEXT FIELD BORDER STYLING (DIGINOM-7) */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="date"],
textarea,
select {
    border: 1px solid var(--input-border, var(--border-color, #cbd5e1));
    border-style: solid;
    border-width: 1px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary, #0284c7);
    outline: none;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

/* ==========================================================================
   Contrast fixes for dark theme (auto-QA 2026-08-18)
   Inline hardcoded colors in JSPs are invisible on dark backgrounds:
   lighten dark headings/labels, re-theme light containers, fix select options.
   -------------------------------------------------------------------------- */
[data-theme="dark"] h1[style*="#1e293b"], [data-theme="dark"] h2[style*="#1e293b"],
[data-theme="dark"] h3[style*="#1e293b"], [data-theme="dark"] h4[style*="#1e293b"],
[data-theme="dark"] h2[style*="#0f172a"], [data-theme="dark"] h3[style*="#0f172a"],
[data-theme="dark"] h3[style*="#334155"], [data-theme="dark"] label[style*="#334155"],
[data-theme="dark"] p[style*="#334155"], [data-theme="dark"] div[style*="#334155"],
[data-theme="dark"] h3[style*="#475569"], [data-theme="dark"] p[style*="#475569"],
[data-theme="dark"] div[style*="#475569"], [data-theme="dark"] span[style*="#475569"],
[data-theme="dark"] label[style*="#475569"],
[data-theme="dark"] span[style*="#334155"],
[data-theme="dark"] .results-count-header, [data-theme="dark"] .results-count {
    color: var(--text-color) !important;
}
[data-theme="dark"] h3[style*="#991b1b"] {
    color: #fca5a5 !important;
}
[data-theme="dark"] [style*="background: #f8fafc"], [data-theme="dark"] [style*="background:#f8fafc"],
[data-theme="dark"] [style*="background-color: #f8fafc"], [data-theme="dark"] [style*="background-color:#f8fafc"],
[data-theme="dark"] [style*="background: #f0f9ff"], [data-theme="dark"] [style*="background:#f0f9ff"],
[data-theme="dark"] [style*="background: #e0f2fe"], [data-theme="dark"] [style*="background:#e0f2fe"] {
    background: var(--input-bg) !important;
}
[data-theme="dark"] select option {
    color: #111827;
    background: #ffffff;
}