* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Courier New", monospace;
    background: #000;
    color: #fff;
    overflow: hidden;
    height: 100vh;
}

/* Основной контейнер */
.ar-container {
    display: flex;
    height: 100vh;
    background:
        radial-gradient(
            circle at 20% 80%,
            rgba(255, 126, 0, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(255, 126, 0, 0.1) 0%,
            transparent 50%
        ),
        #000;
}

/* Левая секция - карта */
.map-section {
    flex: 1;
    position: relative;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: left;
}

.map-container {
    width: 95vh;
    height: 95vh; /* Квадрат */
    max-width: 80vw; /* Ограничение по ширине */
    max-height: 80vw; /* Ограничение по высоте */
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 126, 0, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Сетка карты */
.grid-line {
    position: absolute;
    background: rgba(255, 126, 0, 0.15);
}

.grid-line.vertical {
    width: 1px;
    height: 100%;
}

.grid-line.horizontal {
    height: 1px;
    width: 100%;
}

/* Маркер робота */
.robot-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ff7e00;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(255, 126, 0, 0.8);
    z-index: 10;
    transition: transform 0.1s ease;
}

.robot-direction {
    position: absolute;
    width: 3px;
    height: 30px;
    background: #ffeb3b;
    transform-origin: bottom center;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px #ffeb3b;
}

.coordinates {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: #ff7e00;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 600;
    border: 1px solid rgba(255, 126, 0, 0.2);
    backdrop-filter: blur(5px);
    text-shadow: 0 0 6px rgba(255, 126, 0, 0.3);
}

.velocities {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: #ff7e00;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 600;
    border: 1px solid rgba(255, 126, 0, 0.2);
    backdrop-filter: blur(5px);
    text-shadow: 0 0 6px rgba(255, 126, 0, 0.3);
}

.map-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
}

.map-title {
    color: rgba(255, 126, 0, 0.8);
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Правая секция - управление */
.control-section {
    width: calc(100vw - 80vh - 40px);
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    border-left: 1px solid rgba(255, 126, 0, 0.1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Заголовок */
.header-panel {
    text-align: center;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: #ff7e00;
    margin-bottom: 4px;
    text-shadow: 0 0 10px rgba(255, 126, 0, 0.4);
}

.subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75em;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status {
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75em;
    border: 1px solid;
}

.connected {
    background: rgba(46, 213, 115, 0.1);
    color: #2ed573;
    border-color: rgba(46, 213, 115, 0.3);
}

.disconnected {
    background: rgba(255, 126, 0, 0.1);
    color: #ff7e00;
    border-color: rgba(255, 126, 0, 0.3);
}

/* Телеметрия */
.telemetry-panel {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 126, 0, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.telemetry-title {
    text-align: center;
    color: #ff7e00;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.telemetry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.telemetry-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid rgba(255, 126, 0, 0.15);
    transition: all 0.3s ease;
}

.telemetry-name {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.telemetry-value {
    font-size: 0.8em;
    font-weight: 700;
    color: #ff7e00;
    text-shadow: 0 0 8px rgba(255, 126, 0, 0.4);
    animation: value-pulse 2s infinite alternate;
}

/* Батарея */

.battery-container {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.battery-icon {
    width: 45px;
    height: 22px;
    border: 2px solid rgba(255, 126, 0, 0.4);
    border-radius: 4px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
}

.battery-icon::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 7px;
    width: 3px;
    height: 8px;
    background: rgba(255, 126, 0, 0.4);
    border-radius: 0 2px 2px 0;
}

.battery-level {
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 71, 87, 0.8),
        rgba(255, 165, 2, 0.8),
        rgba(46, 213, 115, 0.8)
    );
    border-radius: 2px;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(255, 126, 0, 0.3);
}

.battery-percentage {
    font-size: 1.1em;
    font-weight: 700;
    color: #ff7e00;
    text-shadow: 0 0 8px rgba(255, 126, 0, 0.4);
}

.battery-status {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Активные команды */
.active-commands {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    text-align: center;
    border: 1px solid rgba(255, 126, 0, 0.2);
    backdrop-filter: blur(10px);
    display: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8em;
    font-weight: 600;
}

.active-commands span {
    display: inline-block;
    background: rgba(255, 126, 0, 0.15);
    color: #ff7e00;
    padding: 4px 8px;
    margin: 2px 4px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
    border: 1px solid rgba(255, 126, 0, 0.3);
    text-shadow: 0 0 6px rgba(255, 126, 0, 0.4);
    animation: command-pulse 1.5s infinite alternate;
}

/* Управление */
.controls-panel {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 126, 0, 0.2);
    backdrop-filter: blur(10px);
}

.controls-title {
    text-align: center;
    color: #ff7e00;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.controls-grid {
    display: grid;
    grid-template-areas:
        ". up ."
        "left stop right"
        ". down .";
    gap: 8px;
}

.control-btn {
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 126, 0, 0.3);
    color: #ff7e00;
    font-family: "Courier New", monospace;
}

.control-btn:hover {
    background: rgba(255, 126, 0, 0.1);
    border-color: rgba(255, 126, 0, 0.5);
}

.control-btn:active {
    transform: translateY(1px);
    background: rgba(255, 126, 0, 0.2);
}

.btn-forward {
    grid-area: up;
}
.btn-backward {
    grid-area: down;
}
.btn-left {
    grid-area: left;
}
.btn-right {
    grid-area: right;
}
.btn-stop {
    grid-area: stop;
}

.control-btn .key {
    font-size: 1em;
    font-weight: 800;
    margin-bottom: 1px;
    text-shadow: 0 0 6px rgba(255, 126, 0, 0.4);
}

.control-btn .label {
    font-size: 0.7em;
    opacity: 0.9;
}

/* Звуки */
.sound-panel {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 126, 0, 0.2);
    backdrop-filter: blur(10px);
}

.sound-title {
    text-align: center;
    color: #ff7e00;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sound-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* Инструкции */
.instructions {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7em;
    line-height: 1.3;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 126, 0, 0.1);
}

.key-hint {
    display: inline-block;
    background: rgba(255, 126, 0, 0.2);
    color: #ff7e00;
    padding: 1px 6px;
    border-radius: 3px;
    margin: 0 1px;
    font-weight: 700;
    border: 1px solid rgba(255, 126, 0, 0.3);
}

/* Анимации */
@keyframes value-pulse {
    0% {
        opacity: 0.8;
        text-shadow: 0 0 6px rgba(255, 126, 0, 0.3);
    }
    100% {
        opacity: 1;
        text-shadow: 0 0 12px rgba(255, 126, 0, 0.6);
    }
}

@keyframes command-pulse {
    0% {
        background: rgba(255, 126, 0, 0.15);
        box-shadow: 0 0 4px rgba(255, 126, 0, 0.2);
    }
    100% {
        background: rgba(255, 126, 0, 0.25);
        box-shadow: 0 0 8px rgba(255, 126, 0, 0.4);
    }
}

/* Эффекты свечения */
.telemetry-panel::before,
.battery-panel::before,
.active-commands::before,
.controls-panel::before,
.sound-panel::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        rgba(255, 126, 0, 0.1),
        rgba(255, 126, 0, 0.05),
        rgba(255, 126, 0, 0.1)
    );
    border-radius: 10px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.telemetry-panel:hover::before,
.battery-panel:hover::before,
.active-commands:hover::before,
.controls-panel:hover::before,
.sound-panel:hover::before {
    opacity: 1;
}
/* Конфигуратор */
.config-panel {
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 0;
    backdrop-filter: none;
    box-shadow: none;
}

.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ff7e00;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.config-controls {
    display: flex;
    gap: 4px;
}

.config-btn {
    background: rgba(255, 126, 0, 0.2);
    border: 1px solid rgba(255, 126, 0, 0.4);
    color: #ff7e00;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s;
    font-family: "Courier New", monospace;
}

.config-btn:hover {
    background: rgba(255, 126, 0, 0.3);
    border-color: rgba(255, 126, 0, 0.6);
}

.config-status {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.8em;
}

/* Стили для вкладки маршрута */
.route-controls-panel {
    background: none;
    border: none;
    padding: 0;
}

.route-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: #ff7e00;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
}

.route-panel-controls {
    display: flex;
    gap: 5px;
}

.waypoints-section {
    margin-bottom: 15px;
}

.section-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.waypoints-list {
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 126, 0, 0.2);
    border-radius: 4px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE и Edge */
}

.waypoints-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari и Opera */
}

.waypoint-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.8em;
    border-left: 3px solid rgba(255, 193, 7, 0.6);
}

.waypoint-order {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.8em;
    min-width: 20px;
    text-align: center;
}

.waypoint-coords {
    color: rgba(255, 255, 255, 0.8);
    font-family: "Courier New", monospace;
    font-size: 0.8em;
    flex: 1;
    margin: 0 10px;
}

.waypoint-remove {
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid rgba(255, 71, 87, 0.4);
    color: #ff4757;
    border-radius: 3px;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 0.8em;
    transition: all 0.2s;
}

.waypoint-remove:hover {
    background: rgba(255, 71, 87, 0.3);
}

.route-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 15px;
}

.route-action-btn {
    padding: 10px 8px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8em;
    font-weight: 600;
    transition: all 0.2s;
    font-family: "Courier New", monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.route-action-btn.start {
    background: rgba(46, 213, 115, 0.2);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.4);
}

.route-action-btn.start:hover {
    background: rgba(46, 213, 115, 0.3);
}

.route-action-btn.stop {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.4);
}

.route-action-btn.stop:hover {
    background: rgba(255, 71, 87, 0.3);
}

.route-action-btn.save {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    border: 1px solid rgba(33, 150, 243, 0.4);
}

.route-action-btn.save:hover {
    background: rgba(33, 150, 243, 0.3);
}

.route-action-btn.load {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.route-action-btn.load:hover {
    background: rgba(255, 193, 7, 0.3);
}

.route-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 126, 0, 0.2);
}

.route-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8em;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
}

.stat-value {
    color: #ff7e00;
    font-weight: 600;
}

.stat-value.inactive {
    color: rgba(255, 126, 0, 0.6);
}

.stat-value.active {
    color: #2ed573;
}

.stat-value.running {
    color: #ffc107;
}

.api-endpoint {
    color: #3776ab;
    background: rgba(55, 118, 171, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid rgba(55, 118, 171, 0.3);
}

.config-version {
    color: #ff7e00;
    background: rgba(255, 126, 0, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid rgba(255, 126, 0, 0.3);
}

/* Секции конфигурации */
.config-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 126, 0, 0.2);
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

.section-header {
    background: rgba(255, 126, 0, 0.1);
    padding: 8px 12px;
    font-weight: 600;
    color: #ff7e00;
    cursor: pointer;
    font-size: 1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-content {
    padding: 12px;
    display: grid;
    gap: 10px;
}

/* Поля конфигурации */
.config-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 126, 0, 0.15);
    border-radius: 6px;
    padding: 10px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    position: relative;
}

.config-field:hover {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 126, 0, 0.3);
    box-shadow: 0 0 10px rgba(255, 126, 0, 0.1);
}

.config-field:focus-within {
    border-color: rgba(255, 126, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 126, 0, 0.2);
}

.field-label {
    font-size: 0.85em;
    color: #ff7e00;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 6px rgba(255, 126, 0, 0.4);
}

.field-description {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2px;
    font-style: italic;
}

.field-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 126, 0, 0.3);
    border-radius: 4px;
    padding: 8px 10px;
    color: #fff;
    font-family: "Courier New", monospace;
    font-size: 0.85em;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.field-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 126, 0, 0.6);
    outline: none;
    box-shadow: 0 0 8px rgba(255, 126, 0, 0.3);
    color: #ff7e00;
}

.field-select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 126, 0, 0.3);
    border-radius: 4px;
    padding: 8px 10px;
    color: #fff;
    font-family: "Courier New", monospace;
    font-size: 0.85em;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.field-select:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 126, 0, 0.6);
    outline: none;
    box-shadow: 0 0 8px rgba(255, 126, 0, 0.3);
    color: #ff7e00;
}

.field-select option {
    background: #1a1a1a;
    color: #fff;
}

.field-range {
    width: 100%;
    height: 6px;
    background: rgba(255, 126, 0, 0.2);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.field-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #ff7e00;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 126, 0, 0.8);
    transition: all 0.2s ease;
}

.field-range::-webkit-slider-thumb:hover {
    background: #ff9a3d;
    box-shadow: 0 0 15px rgba(255, 126, 0, 1);
}

.field-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #ff7e00;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 126, 0, 0.8);
}

.range-value {
    font-size: 0.85em;
    font-weight: 700;
    color: #ff7e00;
    text-align: center;
    margin-top: 6px;
    text-shadow: 0 0 6px rgba(255, 126, 0, 0.4);
    background: rgba(255, 126, 0, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 126, 0, 0.3);
    display: inline-block;
}

.field-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
}

.field-checkbox input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 126, 0, 0.4);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.field-checkbox input[type="checkbox"]:checked {
    background: rgba(255, 126, 0, 0.3);
    border-color: rgba(255, 126, 0, 0.8);
    box-shadow: 0 0 10px rgba(255, 126, 0, 0.4);
}

.field-checkbox input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff7e00;
    font-weight: bold;
    font-size: 12px;
    text-shadow: 0 0 6px rgba(255, 126, 0, 0.8);
}

.field-checkbox input[type="checkbox"]:hover {
    border-color: rgba(255, 126, 0, 0.6);
    box-shadow: 0 0 8px rgba(255, 126, 0, 0.3);
}

.checkbox-label {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.field-checkbox:hover .checkbox-label {
    color: #ff7e00;
}

/* Эффекты свечения для полей */
.config-field::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        rgba(255, 126, 0, 0.1),
        rgba(255, 126, 0, 0.05),
        rgba(255, 126, 0, 0.1)
    );
    border-radius: 8px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.config-field:hover::before {
    opacity: 1;
}

.loading-config {
    text-align: center;
    color: rgba(255, 126, 0, 0.7);
    padding: 20px;
    font-style: italic;
}

.config-console {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 126, 0, 0.3);
    border-radius: 6px;
    font-family: "Courier New", monospace;
    font-size: 0.85em;
    height: 200px;
    min-height: 200px;
    max-height: 200px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.console-header {
    background: rgba(255, 126, 0, 0.1);
    padding: 6px 10px;
    border-bottom: 1px solid rgba(255, 126, 0, 0.2);
    color: #ff7e00;
    font-weight: 600;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.console-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.console-content::-webkit-scrollbar {
    width: 6px;
}

.console-content::-webkit-scrollbar-track {
    background: rgba(255, 126, 0, 0.1);
    border-radius: 3px;
}

.console-content::-webkit-scrollbar-thumb {
    background: rgba(255, 126, 0, 0.4);
    border-radius: 3px;
}

.console-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 126, 0, 0.6);
}

.console-line {
    margin-bottom: 2px;
    padding: 6px 8px;
    border-radius: 4px;
    border-left: 3px solid transparent;
    font-size: 1em;
    line-height: 1.3;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.console-line:hover {
    background: rgba(255, 255, 255, 0.08);
}

.timestamp {
    color: rgba(255, 126, 0, 0.6);
    font-size: 0.75em;
    font-weight: 600;
    margin-right: 8px;
}

/* Типы сообщений в темной теме */
.console-line.info {
    background: rgba(33, 150, 243, 0.1);
    border-left-color: rgba(33, 150, 243, 0.6);
    color: rgba(173, 216, 230, 0.9);
}

.console-line.success {
    background: rgba(76, 175, 80, 0.1);
    border-left-color: rgba(76, 175, 80, 0.6);
    color: rgba(144, 238, 144, 0.9);
}

.console-line.warning {
    background: rgba(255, 152, 0, 0.15);
    border-left-color: rgba(255, 152, 0, 0.7);
    color: rgba(255, 213, 128, 0.9);
}

.console-line.error {
    background: rgba(244, 67, 54, 0.15);
    border-left-color: rgba(244, 67, 54, 0.7);
    color: rgba(255, 173, 173, 0.9);
}

.console-line.debug {
    background: rgba(156, 39, 176, 0.1);
    border-left-color: rgba(156, 39, 176, 0.6);
    color: rgba(216, 191, 216, 0.9);
}

.console-line.system {
    background: rgba(96, 125, 139, 0.1);
    border-left-color: rgba(96, 125, 139, 0.6);
    color: rgba(176, 196, 222, 0.9);
}

/* Анимации для консоли */
@keyframes console-appear {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.console-line {
    animation: console-appear 0.3s ease-out;
}

/* Эффект свечения при новых сообщениях */
.console-line:last-child {
    background: rgba(255, 126, 0, 0.08);
    box-shadow: 0 0 10px rgba(255, 126, 0, 0.1);
}

.console-line:last-child::before {
    content: ">";
    display: inline-block;
    margin-right: 6px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%,
    50% {
        opacity: 1;
    }
    51%,
    100% {
        opacity: 0.3;
    }
}

/* Статус консоли */
.console-status {
    position: absolute;
    top: -8px;
    right: 10px;
    background: rgba(255, 126, 0, 0.9);
    color: #000;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
}

.tabs-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 126, 0, 0.2);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background: rgba(255, 126, 0, 0.1);
    border-bottom: 1px solid rgba(255, 126, 0, 0.2);
}

.tab-btn {
    flex: 1;
    padding: 12px 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-family: "Courier New", monospace;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: rgba(255, 126, 0, 0.1);
    color: #ff7e00;
}

.tab-btn.active {
    background: rgba(255, 126, 0, 0.2);
    color: #ff7e00;
    border-bottom-color: #ff7e00;
}

.tab-content {
    display: none;
    padding: 15px;
    max-height: 50vh;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE и Edge */
}

.tab-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari и Opera */
}

.tab-content.active {
    display: block;
}

.robot-sprite {
    position: absolute;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    filter: drop-shadow(0 0 8px rgba(255, 126, 0, 0.6));
    z-index: 10;
}

.robot-sprite svg {
    width: 75%;
    height: 75%;
    transition: transform 0.3s ease;
}

.robot-sprite.moving svg {
    animation: moveAnimation 0.5s ease-in-out infinite alternate;
}

/* Контекстное меню карты */
.context-menu {
    display: none;
    position: fixed;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 126, 0, 0.4);
    border-radius: 8px;
    padding: 6px 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    min-width: 200px;
}

.context-menu-item {
    padding: 10px 15px;
    color: #fff;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.context-menu-item:hover {
    background: rgba(255, 126, 0, 0.2);
    border-left-color: #ff7e00;
    color: #ff7e00;
}

.context-menu-divider {
    height: 1px;
    background: rgba(255, 126, 0, 0.3);
    margin: 6px 0;
}

/* Маркер целевой точки */
.target-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 9;
    filter: drop-shadow(0 0 8px rgba(81, 207, 102, 0.6));
    animation: target-pulse 2s infinite;
}

@keyframes target-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Подсветка карты при наведении */
.map-container:hover {
    cursor: crosshair;
}

/* Система маршрутов */
.route-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* Линии маршрута */
.route-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(
        90deg,
        rgba(255, 126, 0, 0.8),
        rgba(255, 165, 2, 0.8)
    );
    transform-origin: 0 0;
    z-index: 6;
    animation: route-pulse 2s infinite;
}

@keyframes route-pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

/* Маркеры точек маршрута */
.waypoint-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 7;
    pointer-events: auto;
    cursor: pointer;
}

.waypoint-marker::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 193, 7, 0.9);
    border: 2px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.6);
}

.waypoint-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 0.85em;
    font-weight: bold;
    z-index: 8;
}

.waypoint-marker.current::before {
    background: rgba(255, 71, 87, 0.9);
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.8);
    animation: current-waypoint 1s infinite alternate;
}

@keyframes current-waypoint {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Панель управления маршрутом */
.route-panel {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 250px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 126, 0, 0.4);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    z-index: 20;
    transition: all 0.3s ease;
}

.route-panel.collapsed {
    height: 40px;
    overflow: hidden;
}

.route-panel.collapsed .route-content {
    display: none;
}

.route-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 126, 0, 0.1);
    border-bottom: 1px solid rgba(255, 126, 0, 0.2);
    color: #ff7e00;
    font-weight: 600;
    font-size: 0.9em;
}

.route-controls {
    display: flex;
    gap: 5px;
}

.route-btn {
    background: rgba(255, 126, 0, 0.2);
    border: 1px solid rgba(255, 126, 0, 0.4);
    color: #ff7e00;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s;
}

.route-btn:hover {
    background: rgba(255, 126, 0, 0.3);
}

.route-content {
    padding: 10px;
}

.waypoints-list {
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 126, 0, 0.2);
    border-radius: 4px;
    padding: 5px;
}

.waypoint-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    margin-bottom: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.8em;
}

.waypoint-order {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.8em;
}

.waypoint-coords {
    color: rgba(255, 255, 255, 0.8);
    font-family: "Courier New", monospace;
    font-size: 0.8em;
}

.waypoint-remove {
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid rgba(255, 71, 87, 0.4);
    color: #ff4757;
    border-radius: 3px;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 0.8em;
}

.waypoint-remove:hover {
    background: rgba(255, 71, 87, 0.3);
}

.route-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.route-action-btn {
    padding: 6px 8px;
    background: rgba(255, 126, 0, 0.2);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    font-weight: 600;
    transition: all 0.2s;
    font-family: "Courier New", monospace;
}

.route-action-btn.start {
    background: rgba(46, 213, 115, 0.2);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.4);
}

.route-action-btn.start:hover {
    background: rgba(46, 213, 115, 0.3);
}

.route-action-btn.stop {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.4);
}

.route-action-btn.stop:hover {
    background: rgba(255, 71, 87, 0.3);
}

.route-action-btn.save {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    border: 1px solid rgba(33, 150, 243, 0.4);
}

.route-action-btn.save:hover {
    background: rgba(33, 150, 243, 0.3);
}

.route-action-btn.load {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.route-action-btn.load:hover {
    background: rgba(255, 193, 7, 0.3);
}

/* Адаптивность */
@media (max-height: 700px) {
    .route-panel {
        top: 10px;
    }

    .waypoints-list {
        max-height: 100px;
    }
}
