/* =========================================================================
   WSMC Members — UI design system (Bootstrap 5.3 + custom)
   Mirrors the TEMS look: clean neutral surfaces, dark navbar, system fonts.
   ========================================================================= */

:root {
    --wsmc-navy: #0b2545;
    --wsmc-navy-700: #13315c;
    --wsmc-accent: #0d6efd;
    --surface-page: #f5f7fa;
    --surface-card: #ffffff;
    --border-subtle: #e5e7eb;
    --text-muted: #64748b;
    --wsmc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

body {
    font-family: var(--wsmc-font);
    background: var(--surface-page);
    color: #212529;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* The brand navbar uses the WSMC navy rather than plain Bootstrap dark. */
.navbar.bg-wsmc {
    background-color: var(--wsmc-navy) !important;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.page-header h1 {
    margin: 0;
    font-size: 1.6rem;
}

/* --- Stat cards (dashboard) --------------------------------------------- */
.stat-card .stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--wsmc-navy);
}

.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --- Vessel master–detail layout ---------------------------------------- */
.vessel-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 1rem;
    height: calc(100vh - 165px);
    min-height: 600px;
}

@media (max-width: 992px) {
    .vessel-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
}

.vessel-sidebar {
    display: flex;
    flex-direction: column;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 0.5rem;
    overflow: hidden;
}

#vessel-list-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.vessel-list {
    flex: 1;
    overflow-y: auto;
    margin: 0;
    border-radius: 0;
}

.vessel-list .list-group-item {
    cursor: pointer;
    border-left: 0;
    border-right: 0;
}

.vessel-list .list-group-item.active {
    background: var(--wsmc-navy);
    border-color: var(--wsmc-navy);
    color: #fff;
}

.vessel-detail-pane {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 0.5rem;
    overflow-y: auto;
    padding: 1.25rem;
}

.detail-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.field-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.05rem;
}

.field-value {
    font-weight: 500;
}

.field-value.empty {
    color: var(--text-muted);
    font-style: italic;
    font-weight: 400;
}

.no-vessel {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    color: var(--text-muted);
}

/* --- Agreement card ------------------------------------------------------ */
.agreement-card .agreement-icon {
    font-size: 2rem;
    line-height: 1;
}
