/* ── Landing modal ─────────────────────────────────────────────────────── */
.dash-load-card {
    background: white;
    border-radius: 16px;
    width: min(420px, 100%);
    padding: 28px 28px 24px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.dash-load-card .map-loading-spinner {
    border-color: rgba(21, 101, 192, 0.22);
    border-top-color: #1565c0;
}

.dash-load-card h2 {
    margin: 14px 0 6px;
    font-size: 1.35rem;
    color: #0b1830;
}

.dash-load-lead {
    margin: 0;
    color: #556072;
    font-size: 0.92rem;
}

.dash-load-steps {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.dash-load-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid #e6ebf2;
    color: #1a1a2e;
    font-size: 0.92rem;
}

.dash-load-steps li::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f9a825;
    flex: 0 0 auto;
}

.dash-load-steps li[data-state="done"] {
    color: #2e7d32;
}

.dash-load-steps li[data-state="done"]::before {
    background: #2e7d32;
}

.landing-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 30, 0.72);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none; /* shown only via app.py callback on first workspace visit */
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.landing-modal {
    background: white;
    border-radius: 16px;
    max-width: 860px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    animation: modal-in 0.3s ease;
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.modal-hero {
    background: linear-gradient(135deg, #0d1b3e 0%, #1565C0 60%, #0277BD 100%);
    padding: 32px 32px 24px;
    border-radius: 16px 16px 0 0;
    color: white;
}

.modal-hero h1 {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.modal-hero p {
    font-size: 0.88rem;
    opacity: 0.82;
    margin: 0;
    line-height: 1.55;
}

.modal-body {
    padding: 24px 32px 28px;
}

/* Data type cards grid */
.data-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.data-type-card {
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    padding: 14px;
    transition: box-shadow 0.15s;
}

.data-type-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #ccc;
}

.data-type-card .card-icon {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.data-type-card h4 {
    font-size: 0.82rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1a1a2e;
}

.data-type-card .card-source {
    font-size: 0.68rem;
    color: #888;
    margin-bottom: 6px;
    font-style: italic;
}

.data-type-card .card-desc {
    font-size: 0.73rem;
    color: #555;
    line-height: 1.45;
    margin: 0;
}

.card-tag {
    display: inline-block;
    font-size: 0.62rem;
    padding: 1px 5px;
    border-radius: 3px;
    margin-right: 3px;
    margin-top: 4px;
    font-weight: 600;
}

/* ── Status badges ─────────────────────────────────────────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.67rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.status-live {
    background: #E8F5E9;
    color: #1B5E20;
    border: 1px solid #A5D6A7;
}

.status-live .status-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #4CAF50;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.status-published {
    background: #E3F2FD;
    color: #0D47A1;
    border: 1px solid #90CAF9;
}

.status-processing {
    background: #FFF8E1;
    color: #E65100;
    border: 1px solid #FFD54F;
}

/* ── FAIR pipeline stages ──────────────────────────────────────────────── */
.fair-pipeline {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.fair-pipeline-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 5px;
}

.fair-stages {
    display: flex;
    align-items: center;
    gap: 0;
}

.fair-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.fair-stage:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 7px;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
    left: 50%;
}

.fair-stage-dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: white;
    z-index: 1;
    position: relative;
    display: flex; align-items: center; justify-content: center;
}

.fair-stage-dot.done   { background: #4CAF50; border-color: #4CAF50; }
.fair-stage-dot.half   { background: linear-gradient(to right, #FF9800 50%, white 50%); border-color: #FF9800; }
.fair-stage-dot.pending { background: white; border-color: #e0e0e0; }

.fair-stage-label {
    font-size: 0.55rem;
    color: #999;
    margin-top: 3px;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}

.fair-stage.done .fair-stage-label   { color: #4CAF50; font-weight: 600; }
.fair-stage.half .fair-stage-label   { color: #FF9800; font-weight: 600; }
.fair-stage.pending .fair-stage-label { color: #bbb; }

/* Published card extra */
.published-links {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.published-link-btn {
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid;
}

.published-link-btn.primary {
    background: #0288D1;
    color: white;
    border-color: #0288D1;
}

.published-link-btn.secondary {
    background: white;
    color: #0288D1;
    border-color: #90CAF9;
}

/* Studies section */
.studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}

.study-card {
    background: #f8f9fc;
    border-radius: 8px;
    padding: 12px 14px;
    border-left: 3px solid #1565C0;
}

.study-card h5 {
    font-size: 0.78rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1a1a2e;
}

.study-card p {
    font-size: 0.7rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.study-card .study-datasets {
    margin-top: 5px;
    font-size: 0.63rem;
    color: #888;
    font-style: italic;
}

/* Footer */
.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.modal-explore-btn {
    background: #1565C0;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 28px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.15s, transform 0.1s;
}

.modal-explore-btn:hover {
    background: #0d47a1;
    transform: translateY(-1px);
}

.modal-stats {
    font-size: 0.72rem;
    color: #888;
    display: flex;
    gap: 16px;
}

.modal-stat-val {
    font-weight: 700;
    color: #1565C0;
}
