/* NorthSea Tools - Surface Inspector */

.nst-surface {
    --nsts-accent: #6d4eec;
    --nsts-ink: #14161c;
    --nsts-muted: #616a7d;
    --nsts-line: #e2e5ec;
    --nsts-bg: #ffffff;
    --nsts-soft: #f6f7fa;
    --nsts-accent-soft: #f2effe;
    --nsts-bad: #c02b1f;
    --nsts-bad-soft: #fdecea;
    --nsts-radius: 10px;

    max-width: 1000px;
    margin: 0 auto;
    color: var(--nsts-ink);
    font-size: 16px;
    line-height: 1.55;
    box-sizing: border-box;
}

.nst-surface *,
.nst-surface *::before,
.nst-surface *::after {
    box-sizing: inherit;
}

.nst-surface.nst-s-theme-dark {
    --nsts-ink: #f3f5f9;
    --nsts-muted: #a6aec0;
    --nsts-line: #333b4a;
    --nsts-bg: #171a21;
    --nsts-soft: #1f232c;
    --nsts-accent-soft: #241f3d;
    --nsts-bad: #ff7468;
    --nsts-bad-soft: #3a1e1b;
}

.nst-surface .nst-s-title,
.nst-surface .nst-s-howto-title,
.nst-surface .nst-s-drop-hint,
.nst-surface .nst-s-howto li {
    color: var(--nsts-ink);
}

.nst-surface .nst-s-intro,
.nst-surface .nst-s-drop-sub,
.nst-surface .nst-s-mode-help,
.nst-surface .nst-s-tool-hint,
.nst-surface .nst-s-note,
.nst-surface .nst-s-slider > span {
    color: var(--nsts-muted);
}

.nst-s-head {
    margin-bottom: 18px;
}

.nst-s-title {
    margin: 0 0 6px;
    font-size: 1.6em;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.nst-s-intro {
    margin: 0;
}

/* Fotohandleiding */

.nst-s-howto {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: var(--nsts-radius);
    border-left: 3px solid var(--nsts-accent);
    background: var(--nsts-accent-soft);
}

.nst-s-howto-title {
    margin: 0 0 8px;
    font-size: 0.95em;
}

.nst-s-howto ol {
    margin: 0;
    padding-left: 20px;
}

.nst-s-howto li {
    font-size: 0.88em;
    margin-bottom: 5px;
}

/* Dropzone */

.nst-s-drop {
    border: 2px dashed var(--nsts-line);
    border-radius: var(--nsts-radius);
    background: var(--nsts-soft);
    padding: 34px 22px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.nst-s-drop.is-over {
    border-color: var(--nsts-accent);
}

.nst-s-drop-hint {
    margin: 0 0 4px;
    font-weight: 600;
}

.nst-s-drop-sub {
    margin: 0 0 14px;
    font-size: 0.86em;
}

.nst-s-file {
    display: none;
}

.nst-s-error {
    margin: 14px 0 0;
    padding: 10px 14px;
    border-radius: 6px;
    background: var(--nsts-bad-soft);
    color: var(--nsts-bad);
    font-size: 0.9em;
    font-weight: 600;
}

/* Knoppen */

.nst-s-btn {
    display: inline-block;
    border: 1px solid var(--nsts-accent);
    background: var(--nsts-accent);
    color: #fff;
    border-radius: 6px;
    padding: 8px 16px;
    font: inherit;
    font-size: 0.88em;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.nst-s-btn-ghost {
    background: transparent;
    border-color: var(--nsts-line);
    color: var(--nsts-ink);
}

.nst-s-btn-ghost:hover {
    border-color: var(--nsts-muted);
}

/* Weergavemodi */

.nst-s-modes {
    display: inline-flex;
    flex-wrap: wrap;
    border: 1px solid var(--nsts-line);
    border-radius: 6px;
    overflow: hidden;
}

.nst-s-mode {
    border: 0;
    background: var(--nsts-bg);
    color: var(--nsts-muted);
    font: inherit;
    font-size: 0.86em;
    font-weight: 600;
    padding: 9px 16px;
    cursor: pointer;
    line-height: 1.2;
}

.nst-s-mode + .nst-s-mode {
    border-left: 1px solid var(--nsts-line);
}

.nst-s-mode.is-active {
    background: var(--nsts-accent);
    color: #fff;
}

.nst-s-mode-help {
    margin: 10px 0 14px;
    font-size: 0.85em;
    line-height: 1.45;
}

/* Schuifregelaars */

.nst-s-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    padding: 14px 16px;
    border: 1px solid var(--nsts-line);
    border-radius: var(--nsts-radius);
    background: var(--nsts-soft);
}

.nst-s-slider {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84em;
}

.nst-s-slider input {
    width: 120px;
}

.nst-s-slider output {
    min-width: 34px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--nsts-ink);
}

/* Gereedschap */

.nst-s-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.nst-s-tools-right {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}

.nst-s-seg {
    display: inline-flex;
    border: 1px solid var(--nsts-line);
    border-radius: 6px;
    overflow: hidden;
}

.nst-s-seg-btn {
    border: 0;
    background: var(--nsts-bg);
    color: var(--nsts-muted);
    font: inherit;
    font-size: 0.86em;
    font-weight: 600;
    padding: 8px 15px;
    cursor: pointer;
}

.nst-s-seg-btn + .nst-s-seg-btn {
    border-left: 1px solid var(--nsts-line);
}

.nst-s-seg-btn.is-active {
    background: var(--nsts-ink);
    color: var(--nsts-bg);
}

.nst-s-tool-hint {
    margin: 8px 0 10px;
    font-size: 0.8em;
}

/* Canvas */

.nst-s-canvas-wrap {
    position: relative;
    background: #10121a;
    border-radius: var(--nsts-radius);
    overflow: hidden;
}

.nst-s-canvas {
    display: block;
    width: 100%;
    touch-action: none;
}

.nst-s-busy {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-top-color: #fff;
    border-radius: 50%;
    animation: nst-s-spin 0.7s linear infinite;
}

@keyframes nst-s-spin {
    to { transform: rotate(360deg); }
}

.nst-s-note {
    margin: 14px 0 0;
    font-size: 0.78em;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .nst-s-slider input {
        width: 96px;
    }

    .nst-s-tools-right {
        margin-left: 0;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nst-s-busy {
        animation: none;
    }
}
