/* ── SIC Tank Designer — Volume Calculator ──────────────────────────────── */

.sictd-vc-wrap {
    font-family: inherit;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 0 40px;
}

/* Title */
.sictd-vc-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
}

.sictd-vc-sub {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 28px;
}

/* ── Step 1 — Shape grid ─────────────────────────────────────────────────── */
.sictd-vc-shapes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 16px;
}

.sictd-vc-shape-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 14px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    outline: none;
}

.sictd-vc-shape-card:hover,
.sictd-vc-shape-card:focus {
    border-color: #2563eb;
    box-shadow: 0 4px 16px rgba(37,99,235,0.12);
    transform: translateY(-2px);
}

.sictd-vc-shape-card:active {
    transform: translateY(0);
}

.sictd-vc-shape-img {
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.sictd-vc-shape-img svg {
    width: 100%;
    height: 100%;
    max-height: 90px;
}

.sictd-vc-shape-name {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.sictd-vc-shape-desc {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
}

/* ── Step 2 ──────────────────────────────────────────────────────────────── */
.sictd-vc-back {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}

.sictd-vc-back:hover { opacity: 0.7; }

.sictd-vc-shape-header { margin-bottom: 20px; }

.sictd-vc-note-inline {
    font-size: 12px;
    color: #475569;
    background: #f1f5f9;
    border-left: 3px solid #2563eb;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 8px 0 0;
    line-height: 1.5;
}

/* Layout form + diagram */
.sictd-vc-form-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .sictd-vc-form-wrap {
        grid-template-columns: 1fr;
    }
    .sictd-vc-diagram { order: -1; }
}

/* Diagram */
.sictd-vc-diagram {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sictd-vc-diagram-svg {
    width: 100%;
    height: auto;
    max-height: 200px;
}

/* Dimension lines */
.sictd-vc-dim {
    opacity: 0.35;
    transition: opacity 0.2s;
    cursor: default;
}

.sictd-vc-dim.sictd-vc-highlighted {
    opacity: 1;
}

.sictd-vc-dim-label {
    font-size: 9px;
    fill: #2563eb;
    font-weight: 600;
    font-family: system-ui, sans-serif;
}

/* Fields */
.sictd-vc-fieldset {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sictd-vc-field-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 8px;
}

.sictd-vc-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.sictd-vc-input {
    width: 90px;
    padding: 8px 10px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    -moz-appearance: textfield;
}

.sictd-vc-input::-webkit-outer-spin-button,
.sictd-vc-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.sictd-vc-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.sictd-vc-field-auto .sictd-vc-input {
    background: #f0fdf4;
    border-color: #86efac;
    color: #15803d;
}

.sictd-vc-unit {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    min-width: 20px;
}

/* ── Result ──────────────────────────────────────────────────────────────── */
.sictd-vc-result {
    background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
    color: #ffffff;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(37,99,235,0.25);
    animation: sictdVcFadeIn 0.3s ease;
}

@keyframes sictdVcFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sictd-vc-result-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.sictd-vc-result-icon {
    font-size: 36px;
    margin-bottom: 4px;
}

.sictd-vc-result-label {
    font-size: 13px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sictd-vc-result-value {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
}

.sictd-vc-result-unit {
    font-size: 20px;
    opacity: 0.7;
}

.sictd-vc-result-cm3 {
    font-size: 13px;
    opacity: 0.6;
    margin-top: 4px;
}

/* ── Note ────────────────────────────────────────────────────────────────── */
.sictd-vc-note {
    font-size: 12px;
    color: #64748b;
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 10px 14px;
    line-height: 1.5;
}

/* ── Hero header ─────────────────────────────────────────────────────────── */
.sictd-vc-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1d4ed8 100%);
    border-radius: 16px;
    margin-bottom: 32px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(29,78,216,0.25);
}

.sictd-vc-hero-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 32px 28px;
    flex-wrap: wrap;
}

.sictd-vc-hero-icon {
    font-size: 52px;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.sictd-vc-hero-text {
    flex: 1;
    min-width: 220px;
}

.sictd-vc-hero-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.sictd-vc-hero-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    margin: 0;
    line-height: 1.6;
    max-width: 480px;
}

/* ── Language switcher ───────────────────────────────────────────────────── */
.sictd-vc-lang-switch {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.sictd-vc-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.75);
    border: 1.5px solid rgba(255,255,255,0.2);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.sictd-vc-lang-btn:hover {
    background: rgba(255,255,255,0.22);
    color: #ffffff;
}

.sictd-vc-lang-btn.active {
    background: rgba(255,255,255,0.95);
    color: #1d4ed8;
    border-color: transparent;
}

/* ── Improved dimension lines ────────────────────────────────────────────── */
/* Default: visible but not screaming */
.sictd-vc-dim {
    opacity: 0.55;
    transition: opacity 0.2s, filter 0.2s;
    cursor: default;
    pointer-events: none;
}

/* Highlighted: full saturation, glow */
.sictd-vc-dim.sictd-vc-highlighted {
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(37,99,235,0.6));
}

.sictd-vc-dim-label {
    font-size: 10px;
    fill: #1d4ed8;
    font-weight: 700;
    font-family: system-ui, -apple-system, sans-serif;
}

.sictd-vc-dim.sictd-vc-highlighted .sictd-vc-dim-label {
    fill: #1e40af;
    font-size: 11px;
}

@media (max-width: 480px) {
    .sictd-vc-hero-inner { padding: 22px 16px; gap: 14px; }
    .sictd-vc-hero-title { font-size: 20px; }
    .sictd-vc-hero-icon  { font-size: 40px; }
}

/* ── Volume Calculator — new UX additions ──────────────────────────────── */
.sictd-vc-continue-btn {
    display: inline-block;
    padding: 12px 36px;
    background: linear-gradient(135deg, #066aab, #1a2b48);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
    letter-spacing: 0.5px;
}
.sictd-vc-continue-btn:hover:not(:disabled) { opacity: .9; transform: translateY(-1px); }
.sictd-vc-continue-btn:disabled { opacity: .4; cursor: not-allowed; }

.sictd-vc-shape-selected,
.sictd-vc-shape-card.sictd-vc-shape-selected {
    border: 2px solid #066aab !important;
    background: #eef4fb !important;
    box-shadow: 0 0 0 3px rgba(6,106,171,.15);
}
.sictd-vc-shape-selected .sictd-vc-shape-name { color: #066aab; font-weight: 700; }

/* Highlight image in diagram */
#sictd-vc-diag-img {
    transition: opacity .2s;
    border-radius: 8px;
}

/* Lang button as button element */
.sictd-vc-lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

/* ── Highlight image pulse animation ─────────────────────────────────────── */
@keyframes sictd-hl-pulse {
    0%   { opacity: 1;    }
    40%  { opacity: 0.05; }
    60%  { opacity: 0.05; }
    100% { opacity: 1;    }
}
.sictd-vc-diag-pulsing { animation: sictd-vc-diag-pulse 3s ease-in-out infinite; }

/* ── Angle cards (mezzo_v / Formato a V) ──────────────────────────────── */
.sictd-vc-angle-card {
    border-radius: 10px;
    padding: 14px 16px;
    font-family: inherit;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, border-color .15s;
    user-select: none;
}
.sictd-vc-angle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,.1);
}
.sictd-vc-angle-card--orange {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 1.5px solid #fed7aa;
}
.sictd-vc-angle-card--blue {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1.5px solid #bfdbfe;
}
.sictd-vc-angle-card--active.sictd-vc-angle-card--orange {
    border-color: #ea580c;
    box-shadow: 0 0 0 2px rgba(234,88,12,.25);
}
.sictd-vc-angle-card--active.sictd-vc-angle-card--blue {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,.25);
}
.sictd-vc-angle-card-header {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 8px;
}
.sictd-vc-angle-card--orange .sictd-vc-angle-card-header { color: #c2410c; }
.sictd-vc-angle-card--blue   .sictd-vc-angle-card-header { color: #1d4ed8; }
.sictd-vc-angle-hint {
    margin-left: auto;
    font-size: 10px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    opacity: .6;
}
.sictd-vc-angle-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}
.sictd-vc-angle-dot--orange { background: #ea580c; }
.sictd-vc-angle-dot--blue   { background: #2563eb; }
.sictd-vc-angle-value {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
    font-family: inherit;
}
.sictd-vc-angle-card--orange .sictd-vc-angle-value { color: #c2410c; }
.sictd-vc-angle-card--blue   .sictd-vc-angle-value { color: #1d4ed8; }
.sictd-vc-angle-desc {
    font-size: 11px;
    color: #6b7280;
}

/* ── Pulse animation — slower (3s) ─────────────────────────────────────── */
@keyframes sictd-vc-diag-pulse {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.25; }
}
