/* AMPSphere - App-specific styles (Bootstrap handles most layout/components) */

:root {
    --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
}

body {
    background-color: #f5f6fa;
}

/* Navbar */

.navbar-ampsphere {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Footer */

.site-footer {
    background: #2c3e50;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

/* Reserve space so the fixed footer never covers page content */
body {
    padding-bottom: 3rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.9);
}

/* Sequence Display */

.sequence-box {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    word-break: break-all;
    line-height: 1.8;
    border-radius: 4px;
}

.aa {
    padding: 2px 1px;
    border-radius: 2px;
}

.aa-K, .aa-R, .aa-H { color: #1465AC; }
.aa-D, .aa-E { color: #DC143C; }
.aa-F, .aa-Y, .aa-W { color: #FF8C00; }
.aa-S, .aa-T, .aa-N, .aa-Q { color: #32CD32; }
.aa-C { color: #B8860B; }
.aa-G, .aa-P { color: #808080; }
.aa-A, .aa-V, .aa-I, .aa-L, .aa-M { color: #333; }
.aa-X { color: #999; font-style: italic; }

/* Plotly charts */

plotly-chart {
    display: block;
    width: 100%;
}

/* Helical Wheel */

.helical-wheel {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    margin: 0 auto;
}

.hw-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
}

.hw-controls {
    flex: 0 0 240px;
    max-width: 280px;
}

.hw-figure {
    flex: 1 1 320px;
    min-width: 280px;
}

.hw-field {
    margin-bottom: 1rem;
}

.hw-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.hw-radios {
    display: flex;
    gap: 1rem;
}

.hw-radio {
    font-weight: 400;
    margin-bottom: 0;
}

.hw-credit {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #6c757d;
}

/* Clickable rows */

.cursor-pointer {
    cursor: pointer;
}

/* Progress bars for scores */

.progress {
    border-radius: 3px;
}

/* Dual-handle range slider */

.dual-range {
    position: relative;
    height: 32px;
}

.dual-range-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #bbb;
    transform: translateY(-50%);
}

.dual-range input[type="range"] {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
    padding: 0;
    height: 0;
}

.dual-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1ba39c;
    cursor: pointer;
    pointer-events: auto;
    border: none;
}

.dual-range input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1ba39c;
    cursor: pointer;
    pointer-events: auto;
    border: none;
}
