parrot-repeater/data/style.css

884 lines
19 KiB
CSS

:root {
--bg-base: #0a0e17;
--bg-surface: #111827;
--bg-card: rgba(17, 24, 39, 0.75);
--border-card: rgba(255, 255, 255, 0.08);
--border-focus: #06b6d4;
--primary: #06b6d4;
--primary-hover: #0891b2;
--primary-glow: rgba(6, 182, 212, 0.35);
--rx-green: #10b981;
--rx-glow: rgba(16, 185, 129, 0.4);
--tx-red: #ef4444;
--tx-glow: rgba(239, 68, 68, 0.4);
--beacon-purple: #a855f7;
--beacon-glow: rgba(168, 85, 247, 0.4);
--text-main: #f8fafc;
--text-muted: #94a3b8;
--text-dim: #64748b;
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
--font-heading: 'Rajdhani', sans-serif;
--font-mono: 'JetBrains Mono', monospace;
--radius-sm: 6px;
--radius-md: 10px;
--radius-lg: 16px;
--radius-full: 9999px;
--transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body.dark-theme {
background-color: var(--bg-base);
color: var(--text-main);
font-family: var(--font-sans);
font-size: 14px;
line-height: 1.5;
min-height: 100vh;
position: relative;
overflow-x: hidden;
}
/* Ambient Background Glow */
.glow-orb {
position: fixed;
border-radius: 50%;
filter: blur(140px);
pointer-events: none;
z-index: 0;
opacity: 0.15;
}
.orb-1 {
width: 500px;
height: 500px;
background: #06b6d4;
top: -100px;
left: -100px;
}
.orb-2 {
width: 600px;
height: 600px;
background: #4f46e5;
bottom: -150px;
right: -100px;
}
.app-container {
max-width: 1200px;
margin: 0 auto;
padding: 24px 20px 48px;
position: relative;
z-index: 1;
}
/* Header */
.station-header {
display: flex;
justify-content: space-between;
align-items: center;
background: var(--bg-card);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid var(--border-card);
border-radius: var(--radius-lg);
padding: 16px 24px;
margin-bottom: 24px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
flex-wrap: wrap;
gap: 16px;
}
.brand {
display: flex;
align-items: center;
gap: 14px;
}
.radio-waves {
display: flex;
align-items: center;
gap: 4px;
height: 28px;
}
.radio-waves span {
width: 4px;
height: 100%;
background: var(--primary);
border-radius: var(--radius-full);
animation: waveBounce 1.2s ease-in-out infinite alternate;
}
.radio-waves span:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.radio-waves span:nth-child(2) { height: 100%; animation-delay: 0.3s; }
.radio-waves span:nth-child(3) { height: 60%; animation-delay: 0.2s; }
@keyframes waveBounce {
0% { transform: scaleY(0.3); opacity: 0.5; }
100% { transform: scaleY(1); opacity: 1; }
}
.brand-title {
font-family: var(--font-heading);
font-size: 22px;
font-weight: 700;
letter-spacing: 1px;
display: flex;
align-items: center;
gap: 8px;
}
.brand-sub {
font-size: 12px;
color: var(--text-muted);
}
.station-callsign-box {
display: flex;
flex-direction: column;
align-items: center;
background: rgba(0, 0, 0, 0.4);
border: 1px solid rgba(6, 182, 212, 0.25);
padding: 6px 18px;
border-radius: var(--radius-md);
}
.callsign-label {
font-size: 10px;
letter-spacing: 1.5px;
color: var(--text-dim);
font-weight: 600;
}
.callsign-val {
font-family: var(--font-heading);
font-size: 26px;
font-weight: 700;
color: var(--primary);
letter-spacing: 2px;
text-shadow: 0 0 12px var(--primary-glow);
}
.quick-status {
display: flex;
align-items: center;
gap: 12px;
}
.status-pill {
display: flex;
align-items: center;
gap: 8px;
background: rgba(0, 0, 0, 0.5);
border: 1px solid rgba(255, 255, 255, 0.1);
padding: 8px 16px;
border-radius: var(--radius-full);
font-family: var(--font-mono);
font-size: 12px;
font-weight: 600;
letter-spacing: 0.5px;
transition: var(--transition);
}
.status-pill.idle {
border-color: rgba(148, 163, 184, 0.3);
color: var(--text-muted);
}
.status-pill.rx {
border-color: var(--rx-green);
color: var(--rx-green);
box-shadow: 0 0 15px var(--rx-glow);
}
.status-pill.tx {
border-color: var(--tx-red);
color: var(--tx-red);
box-shadow: 0 0 20px var(--tx-glow);
}
.status-pill.beacon {
border-color: var(--beacon-purple);
color: var(--beacon-purple);
box-shadow: 0 0 15px var(--beacon-glow);
}
.pulse-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: currentColor;
display: inline-block;
animation: pulse 1.5s infinite;
}
@keyframes pulse {
0% { transform: scale(0.9); opacity: 0.7; }
50% { transform: scale(1.3); opacity: 1; }
100% { transform: scale(0.9); opacity: 0.7; }
}
/* Nav Tabs */
.nav-tabs {
display: flex;
gap: 8px;
margin-bottom: 24px;
overflow-x: auto;
padding-bottom: 4px;
}
.tab-btn {
display: flex;
align-items: center;
gap: 8px;
background: var(--bg-card);
border: 1px solid var(--border-card);
color: var(--text-muted);
padding: 10px 18px;
border-radius: var(--radius-md);
cursor: pointer;
font-weight: 500;
transition: var(--transition);
white-space: nowrap;
backdrop-filter: blur(12px);
}
.tab-btn:hover {
color: var(--text-main);
border-color: rgba(255, 255, 255, 0.2);
background: rgba(255, 255, 255, 0.05);
}
.tab-btn.active {
background: rgba(6, 182, 212, 0.12);
border-color: var(--primary);
color: var(--primary);
box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}
/* Content Area & Panels */
.tab-panel {
display: none;
animation: fadeIn 0.3s ease;
}
.tab-panel.active {
display: block;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(6px); }
to { opacity: 1; transform: translateY(0); }
}
/* Grid Layouts */
.grid-layout {
display: grid;
gap: 24px;
}
.cols-3 {
grid-template-columns: repeat(3, 1fr);
}
.cols-2 {
grid-template-columns: repeat(2, 1fr);
}
.span-2 {
grid-column: span 2;
}
@media (max-width: 900px) {
.cols-3, .cols-2 {
grid-template-columns: 1fr;
}
.span-2 {
grid-column: span 1;
}
}
/* Cards */
.card {
background: var(--bg-card);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid var(--border-card);
border-radius: var(--radius-lg);
padding: 24px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 12px;
border-bottom: 1px solid var(--border-card);
}
.card-title {
font-family: var(--font-heading);
font-size: 18px;
font-weight: 600;
letter-spacing: 0.5px;
color: var(--text-main);
}
.card-footer {
display: flex;
justify-content: flex-end;
gap: 12px;
margin-top: 24px;
padding-top: 16px;
border-top: 1px solid var(--border-card);
}
/* Badges */
.badge {
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
padding: 3px 8px;
border-radius: var(--radius-sm);
letter-spacing: 0.5px;
background: rgba(255, 255, 255, 0.1);
color: var(--text-muted);
}
.badge-tech {
background: rgba(6, 182, 212, 0.15);
color: var(--primary);
border: 1px solid rgba(6, 182, 212, 0.3);
}
.badge-info {
background: rgba(59, 130, 246, 0.15);
color: #60a5fa;
}
/* Indicators Group */
.indicators-group {
display: flex;
gap: 12px;
}
.rf-pill {
display: flex;
align-items: center;
gap: 6px;
background: rgba(0, 0, 0, 0.3);
padding: 4px 10px;
border-radius: var(--radius-full);
border: 1px solid var(--border-card);
font-family: var(--font-mono);
font-size: 11px;
color: var(--text-dim);
transition: var(--transition);
}
.rf-pill.active {
color: var(--text-main);
border-color: rgba(255, 255, 255, 0.2);
}
.led {
width: 8px;
height: 8px;
border-radius: 50%;
background: #334155;
transition: var(--transition);
}
.rf-pill.active .led-green {
background: var(--rx-green);
box-shadow: 0 0 10px var(--rx-green);
}
.rf-pill.active .led-red {
background: var(--tx-red);
box-shadow: 0 0 10px var(--tx-red);
}
.rf-pill.active .led-purple {
background: var(--beacon-purple);
box-shadow: 0 0 10px var(--beacon-purple);
}
/* Audio VU Meter */
.meter-container {
margin-bottom: 24px;
}
.meter-labels {
display: flex;
justify-content: space-between;
font-size: 12px;
font-weight: 600;
color: var(--text-muted);
margin-bottom: 6px;
}
.audio-vu-track {
height: 18px;
background: rgba(0, 0, 0, 0.6);
border-radius: var(--radius-sm);
position: relative;
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.08);
}
.audio-vu-bar {
height: 100%;
background: linear-gradient(90deg, #10b981 0%, #10b981 60%, #f59e0b 80%, #ef4444 100%);
transition: width 0.08s ease-out;
border-radius: var(--radius-sm);
}
.vox-threshold-line {
position: absolute;
top: 0;
bottom: 0;
width: 2px;
background: #38bdf8;
box-shadow: 0 0 6px #38bdf8;
z-index: 2;
left: 45%;
}
.meter-scale {
display: flex;
justify-content: space-between;
font-family: var(--font-mono);
font-size: 10px;
color: var(--text-dim);
margin-top: 4px;
}
.vox-label-mark {
color: #38bdf8;
font-weight: 600;
}
/* Buffer Progress Box */
.buffer-box {
margin-bottom: 24px;
background: rgba(0, 0, 0, 0.35);
padding: 16px;
border-radius: var(--radius-md);
border: 1px solid var(--border-card);
}
.buffer-header {
display: flex;
justify-content: space-between;
font-size: 12px;
font-weight: 600;
color: var(--text-muted);
margin-bottom: 8px;
}
.progress-track {
height: 10px;
background: rgba(255, 255, 255, 0.06);
border-radius: var(--radius-full);
overflow: hidden;
}
.progress-bar {
height: 100%;
background: var(--primary);
box-shadow: 0 0 10px var(--primary-glow);
transition: width 0.2s ease;
border-radius: var(--radius-full);
}
/* Test Control Buttons Row */
.test-controls-row {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
/* Telemetry Stats List */
.stats-list {
display: flex;
flex-direction: column;
gap: 12px;
}
.stat-row {
display: flex;
justify-content: space-between;
align-items: center;
padding-bottom: 8px;
border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.stat-name {
color: var(--text-muted);
}
.stat-val {
color: var(--text-main);
font-weight: 600;
}
/* Tables */
.table-responsive {
overflow-x: auto;
}
.data-table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
.data-table th, .data-table td {
padding: 10px 14px;
text-align: left;
}
.data-table th {
color: var(--text-dim);
font-weight: 600;
border-bottom: 1px solid var(--border-card);
text-transform: uppercase;
font-size: 11px;
letter-spacing: 0.5px;
}
.data-table td {
border-bottom: 1px solid rgba(255, 255, 255, 0.04);
font-family: var(--font-mono);
}
/* Forms & Inputs */
.form-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
}
@media (max-width: 768px) {
.form-grid {
grid-template-columns: 1fr;
}
}
.form-group {
display: flex;
flex-direction: column;
gap: 6px;
}
.form-group.span-2 {
grid-column: span 2;
}
@media (max-width: 768px) {
.form-group.span-2 {
grid-column: span 1;
}
}
label {
font-size: 13px;
font-weight: 500;
color: var(--text-main);
}
.form-hint {
font-size: 11px;
color: var(--text-muted);
}
input[type="text"],
input[type="password"],
input[type="number"],
select.form-select {
background: rgba(0, 0, 0, 0.5);
border: 1px solid var(--border-card);
border-radius: var(--radius-sm);
color: var(--text-main);
padding: 10px 14px;
font-size: 14px;
outline: none;
transition: var(--transition);
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select.form-select:focus {
border-color: var(--border-focus);
box-shadow: 0 0 10px var(--primary-glow);
}
.input-with-unit {
display: flex;
align-items: center;
background: rgba(0, 0, 0, 0.5);
border: 1px solid var(--border-card);
border-radius: var(--radius-sm);
overflow: hidden;
}
.input-with-unit input {
background: transparent;
border: none;
flex: 1;
}
.input-with-unit .unit {
padding: 0 12px;
color: var(--text-dim);
font-size: 12px;
font-family: var(--font-mono);
}
/* Range Slider */
.form-range {
-webkit-appearance: none;
appearance: none;
width: 100%;
height: 6px;
background: rgba(255, 255, 255, 0.1);
border-radius: var(--radius-full);
outline: none;
}
.form-range::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 18px;
height: 18px;
border-radius: 50%;
background: var(--primary);
cursor: pointer;
box-shadow: 0 0 10px var(--primary);
}
.range-val {
font-family: var(--font-mono);
color: var(--primary);
font-weight: 600;
}
/* Switches & Radios */
.form-check {
display: flex;
align-items: center;
gap: 8px;
}
.form-switch input {
cursor: pointer;
width: 36px;
height: 20px;
appearance: none;
background: rgba(255, 255, 255, 0.15);
border-radius: var(--radius-full);
position: relative;
outline: none;
transition: var(--transition);
}
.form-switch input::before {
content: "";
position: absolute;
top: 2px;
left: 2px;
width: 16px;
height: 16px;
background: #fff;
border-radius: 50%;
transition: var(--transition);
}
.form-switch input:checked {
background: var(--primary);
}
.form-switch input:checked::before {
transform: translateX(16px);
}
.radio-toggle-group {
display: flex;
gap: 12px;
flex-wrap: wrap;
}
.radio-pill {
flex: 1;
display: flex;
align-items: center;
gap: 8px;
background: rgba(0, 0, 0, 0.4);
border: 1px solid var(--border-card);
padding: 10px 14px;
border-radius: var(--radius-md);
cursor: pointer;
transition: var(--transition);
}
.radio-pill:hover {
background: rgba(255, 255, 255, 0.05);
}
.radio-pill input:checked + span {
color: var(--primary);
font-weight: 600;
}
/* DTMF Keypad */
.dtmf-display {
background: #000;
border: 1px solid var(--border-card);
border-radius: var(--radius-md);
padding: 12px 16px;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
}
.dtmf-digits {
font-size: 24px;
letter-spacing: 4px;
color: var(--primary);
text-shadow: 0 0 10px var(--primary-glow);
}
.keypad-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
margin-bottom: 16px;
}
.key-btn {
background: rgba(255, 255, 255, 0.06);
border: 1px solid var(--border-card);
border-radius: var(--radius-md);
color: var(--text-main);
font-family: var(--font-heading);
font-size: 22px;
font-weight: 700;
padding: 14px 0;
cursor: pointer;
transition: var(--transition);
}
.key-btn:hover {
background: rgba(255, 255, 255, 0.12);
border-color: rgba(255, 255, 255, 0.25);
transform: translateY(-2px);
}
.key-btn:active {
background: var(--primary);
color: #000;
transform: translateY(1px);
}
.key-alpha {
color: #38bdf8;
}
.key-special {
color: #f59e0b;
}
/* DTMF Commands List */
.dtmf-command-list {
display: flex;
flex-direction: column;
gap: 10px;
margin-top: 14px;
}
.cmd-item {
display: flex;
align-items: center;
gap: 12px;
background: rgba(0, 0, 0, 0.3);
padding: 8px 12px;
border-radius: var(--radius-sm);
border: 1px solid rgba(255, 255, 255, 0.04);
}
.cmd-badge {
background: rgba(6, 182, 212, 0.15);
color: var(--primary);
border: 1px solid rgba(6, 182, 212, 0.3);
padding: 2px 8px;
border-radius: var(--radius-sm);
font-weight: 700;
min-width: 48px;
text-align: center;
}
.cmd-desc {
color: var(--text-muted);
font-size: 13px;
}
/* Morse Display */
.morse-preview-box {
background: rgba(0, 0, 0, 0.4);
border: 1px solid var(--border-card);
border-radius: var(--radius-md);
padding: 14px;
margin-top: 10px;
}
.morse-label {
font-size: 10px;
color: var(--text-dim);
letter-spacing: 1px;
margin-bottom: 4px;
}
.morse-symbols {
font-size: 18px;
color: var(--beacon-purple);
letter-spacing: 3px;
font-weight: 700;
word-break: break-all;
}
/* Buttons */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 10px 20px;
border-radius: var(--radius-md);
font-weight: 600;
cursor: pointer;
transition: var(--transition);
border: none;
font-size: 13px;
}
.btn-primary {
background: var(--primary);
color: #0b0f19;
box-shadow: 0 0 15px var(--primary-glow);
}
.btn-primary:hover {
background: var(--primary-hover);
transform: translateY(-1px);
box-shadow: 0 0 25px var(--primary-glow);
}
.btn-outline {
background: transparent;
border: 1px solid var(--border-card);
color: var(--text-main);
}
.btn-outline:hover {
background: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.2);
}
.btn-danger-outline {
background: transparent;
border: 1px solid rgba(239, 68, 68, 0.4);
color: #f87171;
}
.btn-danger-outline:hover {
background: rgba(239, 68, 68, 0.15);
border-color: var(--tx-red);
}
.btn-sm {
padding: 6px 12px;
font-size: 12px;
}
.btn-icon {
gap: 6px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid var(--border-card);
color: var(--text-muted);
}
.btn-icon:hover {
color: var(--text-main);
border-color: rgba(255, 255, 255, 0.2);
}
.w-100 {
width: 100%;
}
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.text-uppercase { text-transform: uppercase; }
.font-mono { font-family: var(--font-mono); }
.text-muted { color: var(--text-muted); }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
/* Toast */
.toast {
position: fixed;
bottom: 24px;
right: 24px;
background: var(--bg-surface);
border: 1px solid var(--primary);
color: var(--text-main);
padding: 12px 20px;
border-radius: var(--radius-md);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
opacity: 0;
pointer-events: none;
transform: translateY(12px);
transition: var(--transition);
z-index: 100;
font-weight: 500;
}
.toast.show {
opacity: 1;
pointer-events: auto;
transform: translateY(0);
}