@font-face { font-family: "Bender"; src: url("/static/fonts/Bender.woff2") format("woff2"); font-weight: 400; font-style: normal; } @font-face { font-family: "Bender"; src: url("/static/fonts/Bender-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; } * { box-sizing: border-box; } :root { --bg: #0f141a; --surface: #171e26; --surface-light: #1c252f; --border: #2b3743; --text: #e6edf3; --muted: #8b98a6; --green: #45d483; --yellow: #e5c07b; --red: #ef6262; --accent: #69a7ff; --terminal: #0a0f14; } body { margin: 0; background: var(--bg); color: var(--text); font-family: "Bender", sans-serif; font-size: 15px; line-height: 1.5; } button, select { font-family: inherit; } .app-header { position: sticky; top: 0; z-index: 1000; width: 100%; background: rgba(15, 20, 26, 0.96); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); } .header-inner { max-width: 1400px; margin: 0 auto; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 36px; padding: 0 30px; } .header-actions { display: flex; align-items: center; gap: 24px; } /* ============================================================ SCANNER HEADER CONTROLS Компактные START / STOP в sticky-шапке. ============================================================ */ .header-scanner-controls { display: flex; align-items: center; gap: 7px; } .header-scanner-controls form { margin: 0; } .header-button { height: 30px; padding: 0 11px; border: 0; border-radius: 5px; cursor: pointer; font-family: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; transition: opacity 0.15s ease, transform 0.05s ease; } .header-button:active:not(:disabled) { transform: translateY(1px); } .header-button:disabled { opacity: 0.25; cursor: not-allowed; } /* Цвет кнопки START */ .header-button.start { background: var(--green); color: #08110c; } /* Цвет кнопки STOP */ .header-button.stop { background: var(--red); color: #180909; } .header-link { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: 0.8px; transition: color 0.15s ease; } .header-link:hover { color: var(--accent); } h1, h2 { margin: 0; font-weight: 700; } h1 { font-size: 19px; letter-spacing: 0.4px; line-height: 1.1; } .subtitle { margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0.7px; line-height: 1.1; } /* ============================================================ SCANNER STATUS IN HEADER Здесь настраивается внешний вид индикатора сканера. ============================================================ */ .header-status { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; letter-spacing: 0.8px; transition: color 0.2s ease; } /* ------------------------------------------------------------ Размер и форма индикатора Меняй width / height, если нужен другой размер. Для READY / ACTIVE / WARNING используется круг. ------------------------------------------------------------ */ .status-indicator { width: 9px; height: 9px; display: inline-block; flex-shrink: 0; border-radius: 50%; } /* ------------------------------------------------------------ READY Жёлтый кружок и жёлтая надпись. Здесь можно самостоятельно менять цвет READY. ------------------------------------------------------------ */ .header-status.ready { color: var(--yellow); } .status-indicator.ready { background: var(--yellow); box-shadow: 0 0 9px rgba(229, 192, 123, 0.45); } /* ------------------------------------------------------------ ACTIVE КРАСНЫЙ кружок + ЗЕЛЁНАЯ надпись. Кружок и надпись плавно мигают вместе. ------------------------------------------------------------ */ .header-status.active { color: var(--green); animation: scanner-active-pulse 1.8s ease-in-out infinite; } .status-indicator.active { background: var(--red); box-shadow: 0 0 9px rgba(255, 70, 70, 0.65); } /* ------------------------------------------------------------ WARNING Всё красное. Состояние светится, но НЕ мигает. ------------------------------------------------------------ */ .header-status.warning { color: var(--red); text-shadow: 0 0 8px rgba(255, 70, 70, 0.55); } .status-indicator.warning { background: var(--red); box-shadow: 0 0 11px rgba(255, 70, 70, 0.8); } /* ------------------------------------------------------------ STOPPED Вместо кружка используется статичный CSS-квадрат. ------------------------------------------------------------ */ .header-status.stopped { color: var(--red); opacity: 0.8; } .status-indicator.stopped { width: 9px; height: 9px; border-radius: 1px; background: var(--red); } /* ------------------------------------------------------------ ACTIVE animation Здесь меняется скорость мигания ACTIVE. Например: 1s = быстрее 2s = медленнее 3s = ещё медленнее ------------------------------------------------------------ */ @keyframes scanner-active-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } } main { max-width: 1400px; margin: 0 auto; padding: 28px; } .panel { margin-bottom: 22px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; } .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; } .panel-kicker { margin-bottom: 3px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; } .panel h2 { font-size: 20px; } .panel-hint { color: var(--muted); font-size: 13px; } .scanner-panel { border-color: #354556; } .scanner-state { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; } .gps-diagnostics { display: flex; flex-direction: column; gap: 20px; } .gps-diagnostics-state { display: flex; align-items: center; gap: 16px; min-height: 82px; padding: 18px 20px; background: var(--terminal); border: 1px solid #202a34; border-radius: 8px; } .gps-state-indicator { font-size: 42px; line-height: 1; } .gps-diagnostics-state strong { display: block; font-size: 22px; line-height: 1.25; } .gps-diagnostics-state span:last-child { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; } .gps-state-indicator.ready { color: #aeb8c2; } .gps-state-indicator.connecting { color: #6fa8ff; } .gps-state-indicator.nmea { color: #e6c65c; } .gps-state-indicator.fix { color: var(--green); } .gps-state-indicator.error { color: var(--red); } .gps-state-indicator.stopped { color: var(--muted); } .gps-diagnostics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .gps-diagnostic { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; background: var(--terminal); border: 1px solid #202a34; border-radius: 7px; } .gps-diagnostic span { color: var(--muted); font-size: 12px; } .gps-diagnostic strong { font-size: 14px; } .gps-diagnostics-actions { display: flex; justify-content: flex-start; } .running { color: var(--green); } .stopped { color: var(--red); } .scanner-controls { display: flex; align-items: end; gap: 14px; } .interface-form { flex: 1; display: flex; align-items: end; gap: 14px; } .field { flex: 1; max-width: 430px; } .config-help { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.5; } label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 13px; font-weight: 700; } select { width: 100%; height: 43px; padding: 0 13px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 6px; outline: none; } select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(105, 167, 255, 0.12); } .button { height: 43px; padding: 0 20px; border: 0; border-radius: 6px; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.5px; transition: opacity 0.15s ease, transform 0.05s ease; } .button:active:not(:disabled) { transform: translateY(1px); } .button:disabled { opacity: 0.35; cursor: not-allowed; } .start { background: var(--green); color: #08110c; } .stop { background: var(--red); color: #180909; } .error { margin-top: 10px; padding: 10px 12px; background: rgba(239, 98, 98, 0.08); color: #ff9b9b; border: 1px solid rgba(239, 98, 98, 0.25); border-radius: 6px; font-size: 13px; } pre { margin: 0; padding: 16px; background: var(--terminal); border: 1px solid #202a34; border-radius: 7px; overflow: auto; white-space: pre-wrap; word-break: break-word; font-family: "Bender", monospace; font-size: 13px; line-height: 1.5; } #scanner-output { height: 430px; overflow-y: auto; white-space: pre; word-break: normal; color: #b8c5d1; } .configuration-panel pre { max-height: 500px; } .config-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; } .config-column { min-width: 0; } .config-column .field { width: 100%; max-width: none; margin-bottom: 18px; } .config-column .field:last-child { margin-bottom: 0; } .config-column-wifi { min-width: 0; } .config-column-wifi .wifi-configuration { width: 100%; max-width: none; } .config-info { opacity: 0.45; } .config-info-value { min-height: 43px; display: flex; align-items: center; padding: 0 13px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 6px; font-size: 13px; word-break: break-word; } .wifi-channels { margin-top: 18px; } .wifi-band { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); } .wifi-band:first-child { border-top: 0; } .wifi-band-header { display: flex; align-items: center; gap: 9px; min-height: 32px; } .wifi-band-header label { margin: 0; color: var(--text); font-size: 13px; font-weight: 700; } .wifi-band-header input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); } .wifi-band-header .band-hint { color: var(--muted); font-size: 11px; font-weight: 400; } .wifi-band-controls { min-width: 0; } .wifi-channel-actions { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; } .channel-action { height: 30px; padding: 0 10px; background: var(--surface-light); color: var(--text); border: 1px solid var(--border); border-radius: 5px; cursor: pointer; font-family: inherit; font-size: 11px; font-weight: 700; } .channel-action:disabled { opacity: 0.35; cursor: not-allowed; } .wifi-channel-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .wifi-channel { display: inline-flex; align-items: center; gap: 5px; margin: 0; padding: 4px 7px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 4px; font-size: 12px; font-weight: 400; line-height: 1.2; } .wifi-channel input[type="checkbox"] { width: 14px; height: 14px; margin: 0; accent-color: var(--accent); } .wifi-channel.unavailable { opacity: 0.35; } .wifi-channel.unavailable input[type="checkbox"] { cursor: not-allowed; } .wifi-channel-container { min-height: 30px; } .wifi-channel-container.band-unavailable { opacity: 0.45; } .wifi-channel-container.band-disabled { opacity: 0.35; pointer-events: none; } .wifi-diagnostics { margin-top: 12px; color: var(--muted); font-size: 12px; } .wifi-diagnostics-interface { color: var(--text); font-weight: 700; } #wifi-channel-error { margin-top: 7px; color: #ff9b9b; font-size: 12px; } @media (max-width: 760px) { .wifi-band { grid-template-columns: 1fr; gap: 8px; } .wifi-band-header { min-height: auto; } .wifi-channel-actions { flex-wrap: wrap; } } @media (max-width: 760px) { .header-inner { align-items: flex-start; flex-direction: column; } main { padding: 16px; } .panel { padding: 18px; } .scanner-controls { align-items: stretch; flex-direction: column; } .interface-form { align-items: stretch; flex-direction: column; } .field { max-width: none; } .button { width: 100%; } .scanner-state { align-items: flex-end; flex-direction: column; gap: 2px; } } @media (max-width: 760px) { .config-grid { grid-template-columns: 1fr; gap: 0; } .config-column { margin-bottom: 24px; } .config-column:last-child { margin-bottom: 0; } } .configuration-actions { display: flex; align-items: center; width: 100%; } #configuration-save-status { margin-left: auto; text-align: right; }