/* ── DEEPAX App Styles ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

:root {
    --dx-cyan:  #00c8e0;
    --dx-teal:  #1dd8c4;
    --dx-green: #00e676;
    --dx-amber: #ffb300;
    --dx-red:   #ff4060;
}

/* Ocean background */
body {
    background-image: url('/img/bg-ocean.png');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(4, 10, 22, .82);
    z-index: 0;
    pointer-events: none;
}

/* ── Sidebar ── */
.dx-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 220px;
    background: rgba(4, 10, 22, .96);
    border-right: 1px solid rgba(0,200,224,.18);
    backdrop-filter: blur(18px);
    z-index: 300;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.dx-sidebar-header {
    padding: 22px 18px 18px;
    border-bottom: 1px solid rgba(0,200,224,.12);
}

.logo-wordmark {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: .25em;
}

.logo-sub {
    font-size: 0.6rem;
    letter-spacing: .4em;
    color: rgba(255,255,255,.35);
}

.dx-nav-section {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: .3em;
    color: rgba(255,255,255,.25);
    padding: 16px 18px 6px;
}

.dx-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    margin: 2px 8px;
    border-radius: 7px;
    color: rgba(255,255,255,.55);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-decoration: none;
    transition: all .2s;
    border-left: 2px solid transparent;
}

.dx-nav-link:hover {
    color: var(--dx-cyan);
    background: rgba(0,200,224,.08);
}

.dx-nav-link.active {
    color: var(--dx-cyan);
    background: rgba(0,200,224,.12);
    border-left-color: var(--dx-cyan);
}

.dx-nav-link i { font-size: 1.25rem; width: 18px; flex-shrink: 0; }

.dx-sidebar-footer {
    margin-top: auto;
    padding: 14px 8px;
    border-top: 1px solid rgba(0,200,224,.1);
}

/* ── Main wrapper ── */
.dx-wrapper {
    margin-left: 220px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.dx-topbar {
    background: rgba(4, 10, 22, .88);
    border-bottom: 1px solid rgba(0,200,224,.14);
    backdrop-filter: blur(14px);
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.dx-page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .22em;
}

.dx-page-sub {
    font-size: 0.75rem;
    letter-spacing: .12em;
    color: rgba(255,255,255,.35);
    margin-top: 2px;
}

.dx-content { padding: 24px 28px; flex: 1; }

/* ── Glass card ── */
.dx-card {
    background: rgba(8, 22, 50, .84);
    border: 1px solid rgba(0,200,224,.16);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.dx-card-header {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(0,200,224,.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.dx-card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: .2em;
    color: var(--dx-cyan);
}

.dx-card-body { padding: 18px 20px; }

/* ── Filter panel ── */
.filter-panel {
    width: 240px;
    flex-shrink: 0;
    background: rgba(5, 13, 26, .9);
    border: 1px solid rgba(0,200,224,.15);
    border-radius: 12px;
    overflow: hidden;
    align-self: flex-start;
    position: sticky;
    top: 72px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,200,224,.2) transparent;
}

.filter-panel::-webkit-scrollbar { width: 3px; }
.filter-panel::-webkit-scrollbar-thumb { background: rgba(0,200,224,.2); border-radius: 2px; }

.fp-header {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(0,200,224,.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: rgba(5, 13, 26, .99);
    z-index: 2;
}

.fp-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: .2em;
    color: var(--dx-cyan);
}

.fp-clear {
    font-size: 0.8rem;
    color: rgba(255,255,255,.3);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color .15s;
}

.fp-clear:hover { color: var(--dx-red); }

.fs { border-bottom: 1px solid rgba(0,200,224,.07); }
.fs:last-child { border-bottom: none; }

.fs-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: none;
    border: none;
    color: rgba(255,255,255,.65);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: .12em;
    cursor: pointer;
    transition: color .15s;
}

.fs-toggle:hover { color: #fff; }
.fs-toggle .bi { font-size: 0.75rem; transition: transform .2s; }
.fs-toggle.collapsed .bi { transform: rotate(-90deg); }
.fs-body { padding: 2px 14px 12px; }

.ql {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: .22em;
    color: rgba(255,255,255,.25);
    display: block;
    margin: 8px 0 5px;
}

/* ── Filter chips ── */
.chip-group { display: flex; flex-wrap: wrap; gap: 5px; }

.chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: .03em;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.5);
    cursor: pointer;
    transition: all .15s;
    user-select: none;
}

.chip:hover {
    background: rgba(0,200,224,.09);
    border-color: rgba(0,200,224,.28);
    color: rgba(255,255,255,.85);
}

.chip.active {
    background: rgba(0,200,224,.18);
    border-color: rgba(0,200,224,.6);
    color: var(--dx-cyan);
}

/* Active filter tags */
#activeFilters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.af-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,200,224,.15);
    border: 1px solid rgba(0,200,224,.4);
    color: var(--dx-cyan);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 10px 3px 12px;
    border-radius: 20px;
}

.af-x {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    opacity: .7;
}

.af-x:hover { opacity: 1; }

.af-clear {
    background: none;
    border: none;
    color: rgba(255,255,255,.3);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px;
    transition: color .15s;
}

.af-clear:hover { color: var(--dx-red); }

/* ── Status badges ── */
.bdg {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: .18em;
    padding: 3px 9px;
    border-radius: 3px;
    display: inline-block;
}

.bdg-urgent  { background: rgba(255,64,96,.14);    color: var(--dx-red);             border: 1px solid rgba(255,64,96,.3); }
.bdg-open    { background: rgba(0,200,224,.12);    color: var(--dx-cyan);            border: 1px solid rgba(0,200,224,.3); }
.bdg-filled  { background: rgba(255,255,255,.05);  color: rgba(255,255,255,.3);      border: 1px solid rgba(255,255,255,.1); }
.bdg-ready   { background: rgba(0,230,118,.12);    color: var(--dx-green);           border: 1px solid rgba(0,230,118,.28); }
.bdg-mission { background: rgba(255,179,0,.12);    color: var(--dx-amber);           border: 1px solid rgba(255,179,0,.28); }
.bdg-standby { background: rgba(0,200,224,.1);     color: var(--dx-cyan);            border: 1px solid rgba(0,200,224,.25); }
.bdg-offshore{ background: rgba(0,200,224,.1);     color: var(--dx-cyan);            border: 1px solid rgba(0,200,224,.25); }
.bdg-inshore { background: rgba(29,216,196,.1);    color: var(--dx-teal);            border: 1px solid rgba(29,216,196,.25); }
.bdg-rov     { background: rgba(255,179,0,.1);     color: var(--dx-amber);           border: 1px solid rgba(255,179,0,.25); }
.bdg-type    { background: rgba(255,255,255,.06);  color: rgba(255,255,255,.5);      border: 1px solid rgba(255,255,255,.12); }

/* Cert expiry */
.bdg-valid    { background: rgba(0,230,118,.12);   color: var(--dx-green);           border: 1px solid rgba(0,230,118,.3); }
.bdg-expiring { background: rgba(255,179,0,.12);   color: var(--dx-amber);           border: 1px solid rgba(255,179,0,.3); }
.bdg-expired  { background: rgba(255,64,96,.12);   color: var(--dx-red);             border: 1px solid rgba(255,64,96,.3); }

/* ── Buttons ── */
.btn-dx-primary {
    background: rgba(0,200,224,.14);
    border: 1px solid rgba(0,200,224,.38);
    color: var(--dx-cyan);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: .18em;
    padding: 7px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s;
}

.btn-dx-primary:hover { background: rgba(0,200,224,.24); }

.btn-dx-ghost {
    background: transparent;
    border: 1px solid rgba(0,200,224,.25);
    color: var(--dx-cyan);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .06em;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all .18s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-dx-ghost:hover { background: rgba(0,200,224,.12); color: var(--dx-cyan); }

/* ── Sort dropdown ── */
.dx-sort {
    background: rgba(0,200,224,.06);
    border: 1px solid rgba(0,200,224,.2);
    color: rgba(255,255,255,.65);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
}

.dx-sort option { background: #0a1628; }

/* ── Input field ── */
.dx-input {
    background: rgba(0,200,224,.06);
    border: 1px solid rgba(0,200,224,.2);
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    padding: 6px 14px;
    border-radius: 6px;
    outline: none;
    transition: border-color .18s;
}

.dx-input::placeholder { color: rgba(255,255,255,.3); }
.dx-input:focus { border-color: rgba(0,200,224,.48); }

/* ── Live dot ── */
.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dx-green);
    box-shadow: 0 0 7px var(--dx-green);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .45; }
}

/* ── Misc ── */
.dx-breadcrumb { font-size: 0.8rem; letter-spacing: .08em; color: rgba(255,255,255,.35); display: flex; align-items: center; gap: 6px; }
.dx-breadcrumb a { color: rgba(255,255,255,.4); text-decoration: none; transition: color .15s; }
.dx-breadcrumb a:hover { color: var(--dx-cyan); }

.results-meta { font-size: 0.9rem; letter-spacing: .08em; color: rgba(255,255,255,.4); }
.results-meta strong { color: #fff; }

/* ── Diver search cards ── */
.diver-card {
    background: rgba(8, 22, 50, .84);
    border: 1px solid rgba(0,200,224,.16);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    overflow: hidden;
    height: 100%;
    transition: border-color .2s, transform .2s;
}

.diver-card:hover { border-color: rgba(0,200,224,.38); transform: translateY(-2px); }

.diver-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,200,224,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: rgba(0,200,224,.08);
}

.diver-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.diver-name { font-family: 'Orbitron', sans-serif; font-size: 0.9rem; font-weight: 700; letter-spacing: .08em; color: #fff; }
.diver-id { font-size: 0.7rem; letter-spacing: .2em; color: rgba(255,255,255,.35); }
.diver-meta-label { font-size: 0.65rem; font-weight: 700; letter-spacing: .18em; color: rgba(255,255,255,.3); }
.diver-meta-value { font-family: 'Orbitron', sans-serif; font-size: 1rem; font-weight: 700; color: #fff; margin-top: 1px; }
.diver-meta-value.txt { font-family: 'Rajdhani', sans-serif; font-size: 1rem; }
.diver-meta-row { border-top: 1px solid rgba(0,200,224,.1); border-bottom: 1px solid rgba(0,200,224,.1); padding: 8px 0; margin: 12px 0; }
.cert-chip { font-size: 0.7rem; background: rgba(0,200,224,.07); border: 1px solid rgba(0,200,224,.18); color: rgba(255,255,255,.6); padding: 2px 8px; border-radius: 3px; white-space: nowrap; }

.btn-passport {
    width: 100%;
    background: rgba(0,200,224,.1);
    border: 1px solid rgba(0,200,224,.28);
    color: var(--dx-cyan);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: .16em;
    padding: 9px;
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-passport:hover { background: rgba(0,200,224,.2); color: var(--dx-cyan); }

/* ── Job search cards ── */
.job-card {
    background: rgba(8, 22, 50, .84);
    border: 1px solid rgba(0,200,224,.15);
    border-radius: 12px;
    padding: 18px 20px;
    backdrop-filter: blur(12px);
    transition: border-color .2s, transform .18s;
}

.job-card:hover { border-color: rgba(0,200,224,.35); transform: translateY(-1px); }
.job-id { font-size: 0.7rem; letter-spacing: .15em; color: rgba(255,255,255,.3); }
.job-title { font-family: 'Orbitron', sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: .08em; color: #fff; margin: 5px 0 2px; }
.job-company { font-size: 0.95rem; color: rgba(255,255,255,.45); }
.job-hr { height: 1px; background: rgba(0,200,224,.1); margin: 12px 0; }
.job-meta { font-size: 0.95rem; font-weight: 600; color: rgba(255,255,255,.6); }
.job-meta i { color: var(--dx-cyan); font-size: 0.9rem; margin-right: 4px; }
.req-chip { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 0.7rem; font-weight: 600; background: rgba(0,200,224,.07); border: 1px solid rgba(0,200,224,.18); color: rgba(255,255,255,.55); margin: 2px 2px 0 0; }

/* ── Diver profile ── */
.profile-card {
    background: rgba(8, 22, 50, .86);
    border: 1px solid rgba(0,200,224,.2);
    border-radius: 16px;
    backdrop-filter: blur(14px);
    overflow: hidden;
    margin-bottom: 24px;
}

.profile-card-top { padding: 24px 28px; display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap; }

.profile-avatar {
    width: 100px; height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(0,200,224,.4);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 30px rgba(0,200,224,.18);
}

.profile-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.profile-name { font-family: 'Orbitron', sans-serif; font-size: 1.6rem; font-weight: 900; letter-spacing: .1em; }
.profile-id { font-size: 0.8rem; letter-spacing: .28em; color: rgba(255,255,255,.35); margin-top: 4px; }
.profile-card-footer { background: rgba(0,200,224,.04); border-top: 1px solid rgba(0,200,224,.1); padding: 14px 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.pf-item { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 600; color: rgba(255,255,255,.65); }
.pf-item i { color: var(--dx-cyan); font-size: 1.05rem; }
.pf-divider { width: 1px; height: 18px; background: rgba(0,200,224,.15); }
.stat-box { text-align: center; }
.stat-box-value { font-family: 'Orbitron', sans-serif; font-size: 1.6rem; font-weight: 700; line-height: 1; }
.stat-box-label { font-size: 0.7rem; font-weight: 700; letter-spacing: .2em; color: rgba(255,255,255,.3); margin-top: 3px; }
.stat-divider { width: 1px; background: rgba(0,200,224,.15); align-self: stretch; }

/* Cert list */
.cert-group-label { font-size: 0.65rem; font-weight: 700; letter-spacing: .24em; color: rgba(255,255,255,.28); margin: 16px 0 8px; display: block; }
.cert-group-label:first-child { margin-top: 0; }
.cert-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(0,200,224,.06); }
.cert-row:last-child { border-bottom: none; }
.cert-name { font-size: 1rem; font-weight: 700; color: rgba(255,255,255,.88); }
.cert-issuer { font-size: 0.8rem; color: rgba(255,255,255,.35); margin-top: 1px; }
.cert-date { font-size: 0.8rem; color: rgba(255,255,255,.45); text-align: right; }
.cert-bdg { font-size: 0.6rem; font-weight: 700; letter-spacing: .18em; padding: 2px 7px; border-radius: 2px; display: inline-block; margin-top: 3px; }

/* Hours bars */
.hours-track { height: 5px; background: rgba(255,255,255,.07); border-radius: 3px; margin-top: 5px; overflow: hidden; }
.hours-fill { height: 100%; border-radius: 3px; background: var(--dx-cyan); }

/* Work type chips (read-only) */
.wt-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 5px; font-size: 0.9rem; font-weight: 700; letter-spacing: .06em; border: 1px solid; margin: 3px; }
.wt-chip.yes { background: rgba(0,200,224,.14); border-color: rgba(0,200,224,.45); color: var(--dx-cyan); }
.wt-chip.no { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.3); }

/* Skill / region display chips */
.skill-chip { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; background: rgba(0,200,224,.08); border: 1px solid rgba(0,200,224,.2); color: rgba(255,255,255,.7); margin: 3px; }

/* Side panel cards */
.side-card { background: rgba(8, 22, 50, .84); border: 1px solid rgba(0,200,224,.15); border-radius: 12px; backdrop-filter: blur(12px); padding: 18px; margin-bottom: 16px; }
.side-card-title { font-family: 'Orbitron', sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: .2em; color: var(--dx-cyan); margin-bottom: 12px; display: block; }

/* Doc buttons */
.doc-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; background: rgba(0,200,224,.07); border: 1px solid rgba(0,200,224,.2); border-radius: 8px; color: rgba(255,255,255,.7); font-size: 1rem; font-weight: 600; cursor: pointer; transition: all .18s; margin-bottom: 8px; text-decoration: none; }
.doc-btn:last-child { margin-bottom: 0; }
.doc-btn:hover { background: rgba(0,200,224,.14); color: #fff; }
.doc-btn i { color: var(--dx-cyan); }

.btn-contact { display: block; width: 100%; padding: 10px; background: rgba(0,200,224,.14); border: 1px solid rgba(0,200,224,.4); border-radius: 8px; text-align: center; font-family: 'Orbitron', sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: .18em; color: var(--dx-cyan); cursor: pointer; transition: all .2s; text-decoration: none; margin-top: 12px; }
.btn-contact:hover { background: rgba(0,200,224,.24); color: var(--dx-cyan); }

/* ── Diver status bar ── */
.diver-status-bar { height: 3px; }

/* ── Job footer note ── */
.job-footer-note { font-size: 0.9rem; color: rgba(255,255,255,.3); letter-spacing: .04em; }

/* ── Diver profile – availability ── */
.avail-status {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dx-green);
    letter-spacing: .06em;
}

.avail-date { font-size: 0.9rem; color: rgba(255,255,255,.5); letter-spacing: .06em; margin-top: 2px; }

/* ── Diver profile – hours bars ── */
.hours-row { margin-bottom: 12px; }
.hours-label { font-size: 0.9rem; font-weight: 600; letter-spacing: .06em; color: rgba(255,255,255,.7); }
.hours-val { font-family: 'Orbitron', sans-serif; font-size: 0.9rem; font-weight: 700; color: #fff; }

/* ── Diver profile – cert row columns ── */
.cert-icon { width: 20px; flex-shrink: 0; text-align: center; }
.cert-name-col { flex: 1; min-width: 0; }
.cert-right { text-align: right; flex-shrink: 0; }

/* ── Mobile ── */
@media (max-width: 767.98px) {
    .dx-sidebar { transform: translateX(-100%); transition: transform .3s; }
    .dx-sidebar.show { transform: translateX(0); }
    .dx-wrapper { margin-left: 0; }
    .dx-content { padding: 16px; }
    .profile-card-top { gap: 16px; }
    .profile-avatar { width: 72px; height: 72px; }
    .profile-name { font-size: 1.25rem; }
}

@media (max-width: 991.98px) {
    .filter-panel { display: none; }
    .filter-panel.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0; bottom: 0; right: 0;
        width: 280px;
        border-radius: 0;
        max-height: 100vh;
        z-index: 290;
    }
}
