CSS
/* ─── 05 Neon Form Controls — futuristic system panel ──────────── */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Chakra+Petch:wght@400;600;700&display=swap');
.nn-ctl {
position: relative;
width: 100%;
min-height: 760px;
background: #050510;
font-family: 'Chakra Petch', sans-serif;
display: flex;
align-items: center;
justify-content: center;
padding: 40px 16px;
overflow: hidden;
box-sizing: border-box;
}
.nn-ctl *,
.nn-ctl *::before,
.nn-ctl *::after { box-sizing: border-box; margin: 0; padding: 0; }
.nn-ctl .panel {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
gap: 28px;
background: rgba(10,10,28,0.9);
border: 1px solid rgba(0,255,200,0.1);
padding: 40px 50px;
box-shadow:
0 0 40px rgba(0,255,200,0.04),
inset 0 0 60px rgba(0,0,30,0.5);
width: 420px;
max-width: 100%;
}
.nn-ctl .panel-label {
font-size: 9px;
letter-spacing: 0.3em;
text-transform: uppercase;
color: rgba(0,255,200,0.5);
margin-bottom: -16px;
font-family: 'Share Tech Mono', monospace;
}
.nn-ctl .toggles { display: flex; flex-direction: column; gap: 16px; }
.nn-ctl .row { display: flex; align-items: center; justify-content: space-between; }
.nn-ctl .ctrl-label {
font-size: 12px;
letter-spacing: 0.08em;
color: rgba(200,200,240,0.75);
text-transform: uppercase;
font-weight: 600;
}
.nn-ctl .ctrl-label.section { font-size: 10px; display: block; margin-bottom: 12px; }
/* TOGGLES */
.nn-ctl .toggle-wrap { display: flex; align-items: center; gap: 10px; }
.nn-ctl .toggle-input { position: absolute; opacity: 0; width: 0; height: 0; }
.nn-ctl .toggle-track {
display: flex;
align-items: center;
width: 58px;
height: 28px;
background: rgba(255,255,255,0.06);
border: 1px solid rgba(255,255,255,0.12);
border-radius: 14px;
cursor: pointer;
padding: 3px;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.nn-ctl .toggle-track::before {
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
opacity: 0;
transition: opacity 0.3s ease;
}
.nn-ctl .toggle-knob {
width: 20px;
height: 20px;
border-radius: 50%;
background: rgba(180,180,200,0.4);
transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
position: relative;
flex-shrink: 0;
box-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.nn-ctl .toggle-input:checked ~ .toggle-track.cyan {
background: rgba(0,255,204,0.12);
border-color: rgba(0,255,204,0.5);
box-shadow: 0 0 12px rgba(0,255,204,0.3), inset 0 0 12px rgba(0,255,204,0.06);
}
.nn-ctl .toggle-input:checked ~ .toggle-track.cyan .toggle-knob {
transform: translateX(30px);
background: #00ffcc;
box-shadow: 0 0 10px #00ffcc, 0 0 22px rgba(0,255,204,0.6);
}
.nn-ctl .toggle-input:checked ~ .toggle-track.cyan::before {
background: radial-gradient(ellipse at 30% 50%, rgba(0,255,204,0.2), transparent 70%);
opacity: 1;
}
.nn-ctl .toggle-input:checked ~ .toggle-track.pink {
background: rgba(255,45,120,0.12);
border-color: rgba(255,45,120,0.5);
box-shadow: 0 0 12px rgba(255,45,120,0.3), inset 0 0 12px rgba(255,45,120,0.06);
}
.nn-ctl .toggle-input:checked ~ .toggle-track.pink .toggle-knob {
transform: translateX(30px);
background: #ff2d78;
box-shadow: 0 0 10px #ff2d78, 0 0 22px rgba(255,45,120,0.6);
}
.nn-ctl .toggle-input:checked ~ .toggle-track.amber {
background: rgba(255,180,0,0.12);
border-color: rgba(255,180,0,0.5);
box-shadow: 0 0 12px rgba(255,180,0,0.3), inset 0 0 12px rgba(255,180,0,0.06);
}
.nn-ctl .toggle-input:checked ~ .toggle-track.amber .toggle-knob {
transform: translateX(30px);
background: #ffb400;
box-shadow: 0 0 10px #ffb400, 0 0 22px rgba(255,180,0,0.6);
}
.nn-ctl .toggle-status {
font-family: 'Share Tech Mono', monospace;
font-size: 10px;
letter-spacing: 0.12em;
min-width: 30px;
text-align: right;
transition: all 0.3s;
}
/* SLIDERS */
.nn-ctl .slider-wrap { display: flex; flex-direction: column; gap: 8px; }
.nn-ctl .slider-header { display: flex; justify-content: space-between; align-items: center; }
.nn-ctl .slider-val {
font-family: 'Share Tech Mono', monospace;
font-size: 13px;
}
.nn-ctl .slider-val.cyan { color: #00ffcc; text-shadow: 0 0 8px #00ffcc; }
.nn-ctl .slider-val.pink { color: #ff2d78; text-shadow: 0 0 8px #ff2d78; }
.nn-ctl input[type="range"] {
-webkit-appearance: none;
appearance: none;
width: 100%;
height: 4px;
border-radius: 2px;
outline: none;
cursor: pointer;
background: rgba(255,255,255,0.08);
position: relative;
}
.nn-ctl input[type="range"].cyan-range {
background: linear-gradient(to right, #00ffcc var(--p, 65%), rgba(255,255,255,0.08) var(--p, 65%));
box-shadow: 0 0 6px rgba(0,255,204,0.4);
}
.nn-ctl input[type="range"].pink-range {
background: linear-gradient(to right, #ff2d78 var(--p, 40%), rgba(255,255,255,0.08) var(--p, 40%));
box-shadow: 0 0 6px rgba(255,45,120,0.4);
}
.nn-ctl input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
width: 18px;
height: 18px;
border-radius: 50%;
cursor: pointer;
transition: box-shadow 0.2s;
}
.nn-ctl input[type="range"].cyan-range::-webkit-slider-thumb {
background: #00ffcc;
box-shadow: 0 0 8px #00ffcc, 0 0 18px rgba(0,255,204,0.5);
}
.nn-ctl input[type="range"].cyan-range:hover::-webkit-slider-thumb {
box-shadow: 0 0 14px #00ffcc, 0 0 30px rgba(0,255,204,0.7);
}
.nn-ctl input[type="range"].pink-range::-webkit-slider-thumb {
background: #ff2d78;
box-shadow: 0 0 8px #ff2d78, 0 0 18px rgba(255,45,120,0.5);
}
.nn-ctl input[type="range"].pink-range:hover::-webkit-slider-thumb {
box-shadow: 0 0 14px #ff2d78, 0 0 30px rgba(255,45,120,0.7);
}
.nn-ctl input[type="range"]::-moz-range-thumb {
width: 18px;
height: 18px;
border: none;
border-radius: 50%;
cursor: pointer;
}
.nn-ctl input[type="range"].cyan-range::-moz-range-thumb {
background: #00ffcc;
box-shadow: 0 0 8px #00ffcc, 0 0 18px rgba(0,255,204,0.5);
}
.nn-ctl input[type="range"].pink-range::-moz-range-thumb {
background: #ff2d78;
box-shadow: 0 0 8px #ff2d78, 0 0 18px rgba(255,45,120,0.5);
}
/* CHECKBOXES */
.nn-ctl .checks { display: flex; gap: 20px; flex-wrap: wrap; }
.nn-ctl .check-item {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
user-select: none;
position: relative;
}
.nn-ctl .check-item input[type="checkbox"] {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}
.nn-ctl .check-box {
width: 18px;
height: 18px;
border: 1.5px solid rgba(191,95,255,0.4);
background: rgba(191,95,255,0.05);
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
flex-shrink: 0;
}
.nn-ctl .check-box svg {
width: 10px;
height: 10px;
fill: none;
stroke: #bf5fff;
stroke-width: 2.5;
stroke-linecap: round;
stroke-linejoin: round;
opacity: 0;
transform: scale(0.5);
transition: all 0.2s ease;
}
.nn-ctl .check-item input:checked ~ .check-box {
border-color: #bf5fff;
background: rgba(191,95,255,0.15);
box-shadow: 0 0 8px rgba(191,95,255,0.45), inset 0 0 6px rgba(191,95,255,0.1);
}
.nn-ctl .check-item input:checked ~ .check-box svg { opacity: 1; transform: scale(1); }
.nn-ctl .check-text {
font-size: 11px;
color: rgba(200,200,240,0.65);
text-transform: uppercase;
letter-spacing: 0.07em;
}
/* RADIOS */
.nn-ctl .radios { display: flex; gap: 16px; flex-wrap: wrap; }
.nn-ctl .radio-item {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
user-select: none;
position: relative;
}
.nn-ctl .radio-item input[type="radio"] {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}
.nn-ctl .radio-dot {
width: 18px;
height: 18px;
border-radius: 50%;
border: 1.5px solid rgba(255,220,0,0.35);
background: rgba(255,220,0,0.04);
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
flex-shrink: 0;
}
.nn-ctl .radio-dot::before {
content: '';
width: 7px;
height: 7px;
border-radius: 50%;
background: #ffdc00;
box-shadow: 0 0 6px #ffdc00, 0 0 14px rgba(255,220,0,0.6);
transform: scale(0);
transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nn-ctl .radio-item input:checked ~ .radio-dot {
border-color: #ffdc00;
box-shadow: 0 0 8px rgba(255,220,0,0.4);
}
.nn-ctl .radio-item input:checked ~ .radio-dot::before { transform: scale(1); }
.nn-ctl .radio-text {
font-size: 11px;
color: rgba(200,200,240,0.65);
text-transform: uppercase;
letter-spacing: 0.07em;
}
.nn-ctl .divider {
height: 1px;
background: linear-gradient(90deg, transparent, rgba(0,255,200,0.12), transparent);
}
@media (max-width: 520px) {
.nn-ctl .panel { padding: 28px 24px; }
}
@media (prefers-reduced-motion: reduce) {
.nn-ctl * { transition: none !important; }
}