/* Remove the old layers control styles and replace with Google Maps style */
/* Air Traffic Layer Styles - REMOVED */




/* New Google Maps Style Layers Control */
.map-layers-control {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    z-index: 10000 !important;
    position: fixed !important;
    bottom: 20px;
    left: 20px;
    transition: left 0.3s ease;
}

/* Ensure sidebar toggle stays visible above map tiles */
.map-layers-control .sidebar-toggle {
    z-index: 10000 !important;
}

.layers-panel {
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid #333;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.layers-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #333;
    background: rgba(26, 26, 26, 0.8);
}

.layers-title {
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
}

.layers-toggle {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 16px;
}

.layers-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.layers-toggle.active {
    color: #00cc66;
}

.layers-content {
    display: none;
    min-width: 280px;
    max-height: 400px;
    overflow-y: auto;
}

.layers-content.show {
    display: block;
}

.layers-section {
    padding: 16px;
    border-bottom: 1px solid #333;
}

.layers-section:last-child {
    border-bottom: none;
}

.section-title {
    color: #aaa;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Map Style Selection */
.map-styles {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
    justify-content: center;
}

.map-style-option {
    width: 48px;
    cursor: pointer;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 4px;
    transition: all 0.2s ease;
    text-align: center;
    background: rgba(26, 26, 26, 0.5);
}

.map-style-option:hover {
    border-color: #666;
    background: rgba(40, 40, 40, 0.5);
}

.map-style-option.active {
    border-color: #00cc66;
    background: rgba(0, 204, 102, 0.1);
}

.map-preview {
    width: 100%;
    height: 32px;
    border-radius: 3px;
    margin-bottom: 2px;
    background-size: cover;
    background-position: center;
    border: 1px solid #555;
}

.day-preview {
    background: linear-gradient(135deg, #87CEEB 0%, #98FB98 50%, #F0E68C 100%);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.3) 2px, transparent 2px),
        radial-gradient(circle at 60% 70%, rgba(34,139,34,0.4) 3px, transparent 3px),
        linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%);
}

.night-preview {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f0f 100%);
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.8) 1px, transparent 1px),
        radial-gradient(circle at 70% 40%, rgba(255,255,255,0.6) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.4) 1px, transparent 1px);
}

.satellite-preview {
    background: linear-gradient(135deg, #2d4a3e 0%, #1a3a2a 30%, #0d2818 60%, #1a2f22 100%);
    background-image:
        radial-gradient(circle at 30% 20%, rgba(100,140,100,0.3) 4px, transparent 4px),
        radial-gradient(circle at 70% 60%, rgba(60,100,80,0.4) 6px, transparent 6px),
        radial-gradient(circle at 50% 80%, rgba(80,120,90,0.3) 3px, transparent 3px);
}

.map-style-option span {
    display: block;
    color: #e0e0e0;
    font-size: 10px;
    font-weight: 500;
}

.map-style-option.active span {
    color: #00cc66;
}

/* Data Layers */
.layer-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.layer-option {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid #444;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.layer-option:hover {
    background: rgba(40, 40, 40, 0.6);
    border-color: #555;
}

.layer-option input[type="checkbox"] {
    margin: 0;
    margin-right: 12px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #00cc66;
}

.layer-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    flex: 1;
}

.layer-icon {
    width: 16px;
    height: 16px;
    color: #888;
    font-size: 14px;
    text-align: center;
}

.layer-option input[type="checkbox"]:checked + label .layer-icon {
    color: #00cc66;
}

.layer-option input[type="checkbox"]:checked + label {
    color: #00cc66;
}

/* Clear tracks button */
.clear-tracks-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 8px;
    color: #ef4444;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-tracks-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.6);
}

.clear-tracks-btn i {
    font-size: 14px;
}

/* Custom scrollbar for layers content */
.layers-content::-webkit-scrollbar {
    width: 8px;
}

.layers-content::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 0.5);
    border-radius: 4px;
}

.layers-content::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.layers-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Keep all existing styles from the original CSS file unchanged */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #1a1a1a;
    color: #e0e0e0;
    overflow: hidden;
}

/* Toolbar (Finder-style) */
.toolbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--toolbar-height);
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 2000;
    transition: left 0.3s ease;
}

.sidebar.collapsed ~ .toolbar {
    left: 0;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.toolbar-separator {
    width: 1px;
    height: 20px;
    background: var(--border-primary);
    margin: 0 8px;
    opacity: 0.5;
}

.toolbar-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 14px;
}

.toolbar-btn:hover {
    background: rgba(0, 204, 102, 0.1);
    color: var(--text-primary);
}

.toolbar-btn:active {
    background: var(--border-primary);
    transform: scale(0.95);
}

/* Large toolbar icons variant */
body.toolbar-large .toolbar {
    height: 52px;
}

body.toolbar-large .toolbar-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
    border-radius: 8px;
}

body.toolbar-large .toolbar-separator {
    height: 24px;
}

body.toolbar-large .sidebar-header {
    height: 52px;
}

body.toolbar-large .main-content {
    top: 52px;
}

body.toolbar-large .toolbar-user {
    font-size: 13px;
}

body.toolbar-large .toolbar-user i {
    font-size: 16px;
}

.toolbar-user {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 12px;
}

.toolbar-user .user-name {
    color: var(--text-accent);
    text-transform: capitalize;
    font-size: 12px;
    font-weight: 500;
}

.toolbar-user i {
    font-size: 14px;
    color: var(--text-tertiary);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-label {
    color: #888;
    font-size: 13px;
}

.stat-value {
    font-size: 13px;
    font-weight: 500;
    min-width: 30px;
    text-align: right;
    display: inline-block;
    
}

.stat-value.active { color: #00ff88; }
.stat-value.warning { color: #ffaa00; }
.stat-value.danger { color: #ff4444; }

#system-time {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    min-width: 170px;
    display: inline-block;
    text-align: right;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-primary);
    display: flex;
    flex-direction: column;
    z-index: 2001;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.sidebar.collapsed {
    transform: translateX(calc(-1 * var(--sidebar-width)));
}

.sidebar-header {
    height: var(--toolbar-height);
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid var(--border-primary);
    flex-shrink: 0;
}

.sidebar.collapsed ~ .main-content {
    left: 0;
}

/* Sidebar Tabs */
.sidebar-tabs {
    display: flex;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-primary);
    flex-shrink: 0;
}

.sidebar-tab {
    flex: 1;
    padding: 12px 8px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #888;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-tab:hover {
    color: #ccc;
    background: #222;
}

.sidebar-tab.active {
    color: #00cc66;
    border-bottom-color: #00cc66;
}

.sidebar-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tab-panel {
    display: none;
    flex: 1;
    overflow: hidden;
}

.tab-panel.active {
    display: flex;
    flex-direction: column;
}

/* Sidebar toggle moved to bottom near layers button - see line ~2766 */

.node-list,
.zones-list,
.assets-list,
.targets-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

/* Targets Tab */
.targets-header {
    padding: 8px 10px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111;
}

.targets-kebab-wrapper {
    position: relative;
}

.targets-kebab-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 4px 6px;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s;
}

.targets-kebab-btn:hover {
    color: #fff;
    background: #333;
}

.targets-kebab-btn.done-mode {
    color: #00cc66;
}

.targets-kebab-btn.done-mode:hover {
    color: #fff;
    background: #00cc66;
}

.targets-kebab-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #222;
    border: 1px solid #444;
    border-radius: 6px;
    min-width: 160px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    overflow: hidden;
}

.targets-kebab-menu.open {
    display: block;
}

.kebab-menu-item {
    display: block;
    width: 100%;
    padding: 8px 12px;
    background: none;
    border: none;
    color: #ccc;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
}

.kebab-menu-item:hover {
    background: #333;
    color: #fff;
}

.kebab-menu-item.kebab-delete-all {
    color: #ff5555;
    border-top: 1px solid #333;
    margin-top: 2px;
    padding-top: 10px;
}

.kebab-menu-item.kebab-delete-all:hover {
    background: #4a1515;
    color: #ff7777;
}

.targets-header-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.targets-count-label {
    color: #888;
    font-size: 12px;
}

.targets-count-value {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.targets-sort {
    display: flex;
    gap: 4px;
}

.sort-btn {
    padding: 6px 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
}

.sort-btn:hover {
    background: #222;
    color: #ccc;
}

.sort-btn.active {
    background: #002233;
    border-color: #00cc66;
    color: #00cc66;
}

.target-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 8px;
    margin-bottom: 8px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.target-item > .target-checkbox {
    display: none;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 1px solid #555;
    border-radius: 4px;
    background: transparent;
    color: transparent;
    cursor: pointer;
    margin-right: 8px;
    margin-top: 2px;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.2s;
    padding: 0;
}

.target-item.select-mode > .target-checkbox {
    display: flex;
}

.target-item > .target-checkbox:hover {
    border-color: #00e5ff;
    color: #aaa;
}

.target-item > .target-checkbox.active {
    color: #00e5ff;
    border-color: #00e5ff;
    background: rgba(0, 229, 255, 0.1);
}

.target-item:hover {
    background: #222;
    border-color: #444;
}

.target-item.selected {
    background: #002233;
    border-color: #00cc66;
}

.target-item.no-coords {
    border-left: 3px solid #666;
}

.targets-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    color: var(--text-secondary, #888);
    font-size: 13px;
}

.targets-loading .fa-spinner {
    font-size: 16px;
    color: #00cc66;
}

.target-item.stale {
    opacity: 0.55;
    border-left: 3px solid #555;
}

.target-item.stale .target-badge {
    opacity: 0.6;
}

.target-item.stale .target-time {
    color: #999;
}

.target-info {
    flex: 1;
    min-width: 0;
    margin-top: 3px;
}

.target-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: nowrap;
}

.target-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}

.target-short-id {
    color: #888;
    font-weight: 400;
    font-size: 0.85em;
}

.target-badge {
    font-size: 9px;
    font-weight: 600;
    padding: 2px 0;
    border-radius: 3px;
    color: #fff;
    text-transform: uppercase;
    flex-shrink: 0;
    width: 57px;
    text-align: center;
    display: inline-block;
}

.target-classification {
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
}

.target-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    color: #888;
}

.target-details span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.target-details i {
    font-size: 10px;
    opacity: 0.7;
}

.target-time {
    color: #666;
    min-width: 52px;
}

.target-proxy {
    font-size: 10px;
    color: #666;
    margin-top: 4px;
    font-style: italic;
}

.target-proxy i {
    margin-right: 4px;
}

.target-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
    margin-left: 8px;
}

.target-item.expanded .target-actions {
    flex-direction: column;
}

.target-item:hover .target-actions {
    opacity: 1;
}

.target-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s;
}

.target-action-btn:hover {
    background: #333;
    color: #00cc66;
    border-color: #00cc66;
}

.target-action-btn.pin.active {
    color: #00cc66;
    border-color: #00cc66;
    opacity: 1;
}

.target-action-btn.controp-target-btn {
    color: #2196f3;
}

.target-action-btn.controp-target-btn:hover {
    background: #333;
    color: #2196f3;
    border-color: #2196f3;
}

.target-action-btn.unmerge:hover {
    background: #333;
    color: #ffa726;
    border-color: #ffa726;
}

.target-item.pinned .target-actions {
    opacity: 1;
}

.target-item.pinned .target-actions .target-action-btn:not(.pin) {
    opacity: 0;
}

.target-item.pinned:hover .target-actions .target-action-btn:not(.pin) {
    opacity: 1;
}

.target-item.pinned {
    border-left: 3px solid #00cc66;
}

/* Merge button hover */
.target-action-btn.merge:hover {
    color: #00e5ff;
    border-color: #00e5ff;
}

/* Merge mode target state */
.target-item.merge-mode {
    cursor: pointer;
}

.target-item.merge-selected {
    background: rgba(0, 229, 255, 0.1);
    border-color: #00e5ff;
}

.target-item.merge-disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: not-allowed;
}

.merge-checkbox.disabled {
    opacity: 0.3;
}

.merge-count-name {
    color: #fff;
    font-weight: 600;
}

.target-action-btn.target-checkbox:hover {
    color: #aaa;
}

.target-action-btn.target-checkbox.active {
    color: #00e5ff;
    border-color: #00e5ff;
    opacity: 1;
}

.target-item.checked {
    background: rgba(0, 229, 255, 0.06);
}

/* Display mode toggle button */
.display-mode-btn {
    padding: 4px 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.display-mode-btn:hover {
    background: #222;
    color: #ccc;
}

.display-mode-btn.active {
    background: #002233;
    border-color: #00cc66;
    color: #00cc66;
}

/* Per-item expand arrow */
.target-expand-arrow {
    width: 18px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    font-size: 10px;
    transition: transform 0.2s, color 0.2s;
    margin-right: 6px;
    margin-top: 3px;
    border-radius: 3px;
    flex-shrink: 0;
}

.target-expand-arrow:hover {
    color: #ccc;
    background: rgba(255,255,255,0.05);
}

.target-expand-arrow.open {
    color: #00cc66;
}

.target-expand-arrow.open i {
    transform: rotate(90deg);
}

.target-expand-arrow i {
    transition: transform 0.2s;
}

/* Expanded details section inside target-item */
.target-expanded-details {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.target-item.expanded .target-expanded-details {
    display: block;
}

/* Crop preview inside expanded target item */
.target-crop-preview {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.target-crop-item {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.target-crop-label {
    font-size: 9px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 3px;
    letter-spacing: 0.5px;
}

.target-crop-img {
    max-width: 100%;
    max-height: 80px;
    border-radius: 4px;
    border: 1px solid #333;
    cursor: pointer;
    transition: border-color 0.2s;
}

.target-crop-img:hover {
    border-color: #2196f3;
}

.target-crop-loading {
    font-size: 10px;
    color: #666;
    font-style: italic;
}

/* Action buttons inside expanded details — match sentrycs-event-item .event-btn */
.target-expanded-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.target-expanded-actions .event-btn {
    background: rgba(60, 60, 60, 0.8);
    border: 1px solid #444;
    color: #ccc;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.target-expanded-actions .event-btn:hover {
    background: rgba(80, 80, 80, 0.8);
    color: #fff;
}

.target-expanded-actions .event-btn.active {
    color: #00cc66;
    border-color: #00cc66;
}

/* Blue target checkbox inside expanded details */
.target-blue-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #888;
    cursor: pointer;
    margin-top: 6px;
}

.target-blue-label input[type="checkbox"] {
    accent-color: #4a90d9;
    cursor: pointer;
}

/* Light mode display mode styles */
body.light-mode .display-mode-btn {
    background: #fff;
    border-color: #ddd;
    color: #666;
}

body.light-mode .display-mode-btn:hover {
    background: #f0f0f0;
    color: #333;
}

body.light-mode .display-mode-btn.active {
    background: #e6f7ef;
    border-color: #00aa55;
    color: #00aa55;
}

body.light-mode .target-expand-arrow {
    color: #999;
}

body.light-mode .target-expand-arrow:hover {
    color: #333;
    background: rgba(0,0,0,0.05);
}

body.light-mode .target-expand-arrow.open {
    color: #00aa55;
}

body.light-mode .target-expanded-details {
    border-top-color: rgba(0,0,0,0.08);
}

body.light-mode .target-crop-img {
    border-color: #ddd;
}

body.light-mode .target-crop-label {
    color: #888;
}

body.light-mode .target-crop-loading {
    color: #999;
}

body.light-mode .target-blue-label {
    color: #555;
}

/* Bulk action bar */
.bulk-action-bar {
    background: #1a1a1a;
    border-bottom: 1px solid #00e5ff;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.bulk-count {
    color: #00e5ff;
    font-size: 12px;
    font-weight: 500;
}

.bulk-action-buttons {
    display: flex;
    gap: 6px;
}

.bulk-action-btn {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid #444;
    background: transparent;
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.bulk-action-btn:hover {
    background: #333;
    border-color: #666;
}

.bulk-action-btn.delete:hover {
    color: #ff6b6b;
    border-color: #ff6b6b;
}

.bulk-action-btn.merge:hover {
    color: #00e5ff;
    border-color: #00e5ff;
}

.bulk-action-btn.unmerge:hover {
    color: #ffa726;
    border-color: #ffa726;
}

.bulk-action-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.bulk-action-btn.cancel:hover {
    color: #fff;
}

/* Merge checkbox in merge mode */
.merge-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    min-width: 24px;
    margin-right: 8px;
    color: #666;
    font-size: 16px;
}

.merge-checkbox.checked {
    color: #00e5ff;
}

/* Merge action bar at bottom */
.merge-action-bar {
    background: #1a1a1a;
    border-bottom: 1px solid #00e5ff;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.merge-count {
    color: #00e5ff;
    font-size: 12px;
    font-weight: 500;
}

.merge-action-buttons {
    display: flex;
    gap: 8px;
}

.merge-cancel-btn {
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid #666;
    background: transparent;
    color: #aaa;
    cursor: pointer;
    font-size: 12px;
}

.merge-cancel-btn:hover {
    border-color: #888;
    color: #fff;
}

.merge-confirm-btn {
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid #00e5ff;
    background: rgba(0, 229, 255, 0.15);
    color: #00e5ff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
}

.merge-confirm-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.merge-confirm-btn:not(:disabled):hover {
    background: rgba(0, 229, 255, 0.3);
}

/* Merge approve step */
.merge-action-bar.approve-step {
    flex-direction: column;
    gap: 10px;
}

.merge-approve-summary {
    width: 100%;
}

.merge-approve-title {
    color: #00e5ff;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.merge-approve-targets {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.merge-approve-target {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 12px;
    color: #ccc;
}

.merge-approve-btn {
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid #00cc66;
    background: rgba(0, 204, 102, 0.15);
    color: #00cc66;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
}

.merge-approve-btn:hover {
    background: rgba(0, 204, 102, 0.3);
}

/* Fused target indicator */
.target-fused-indicator {
    color: #00e5ff;
    font-size: 11px;
    margin-right: 4px;
}

.target-fused-header {
    color: #00e5ff;
    font-size: 10px;
    font-weight: 500;
    margin-bottom: 4px;
}

.fused-source-section {
    border-left: 2px solid #444;
    padding-left: 8px;
    margin: 6px 0;
}

.fused-source-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.fused-source-label i {
    margin-right: 4px;
}

/* Merge confirm dialog target list */
.merge-dialog-targets {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.merge-dialog-target {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.merge-dialog-target-name {
    color: #fff;
    font-size: 13px;
}

.targets-empty {
    text-align: center;
    color: #666;
    padding: 40px 20px;
    font-size: 13px;
}

.targets-empty i {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
    opacity: 0.5;
}

.targets-empty small {
    display: block;
    margin-top: 8px;
    color: #555;
    font-size: 11px;
}

/* Tree Structure */
.region-group {
    margin-bottom: 10px;
}

.region-header {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #1a1a1a;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 5px;
}

.region-header:hover {
    background: #222;
}

.region-toggle {
    margin-right: 10px;
    transition: transform 0.2s;
}

.region-toggle.collapsed {
    transform: rotate(-90deg);
}

.region-name {
    font-weight: 500;
    color: #00cc66;
}

.region-count {
    margin-left: auto;
    font-size: 12px;
    color: #888;
}

.region-nodes {
    display: block;
    transition: all 0.3s ease;
}

.region-nodes.collapsed {
    display: none;
}

.region-alert {
    background: #ff4444;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 10px;
    animation: pulse 2s infinite;
}

.node-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px 15px;
    margin-left: 20px;
    margin-bottom: 5px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.node-item:hover {
    background: #222;
    border-color: #444;
    transform: none;
}

.node-item.selected {
    background: #002233;
    border-color: #00cc66;
}

.node-inline-actions {
    display: flex;
    gap: 4px;
    margin-left: auto;
    padding-left: 8px;
}

.node-inline-actions .node-action-btn {
    font-size: 12px;
    padding: 2px 5px;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0); }
}

.node-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.node-status.online { background: #ffeb3b; }
.node-status.ready { background: #4caf50; }
.node-status.transmitting { background: #2196F3; }
.node-status.offline { background: #666; }
.node-status.error { background: #ff4444; }
.node-status.detection { background: #ff4444; animation: blink 1s infinite; }
.node-status.mitigating { background: #9c27b0; animation: blink 1.5s infinite; }
.node-item.detection-active .node-status {
    background: #ff4444 !important;
    animation: blink 1s infinite;
}
.node-status.active {
    background: #00cc66;
    animation: blink 1s infinite;
}

/* Radar node status - tracking (Search mode) is green */
.node-status.tracking {
    background: #4caf50;
}

/* Radar node status - ready (Standby) should be yellow */
.radar-node .node-status.ready,
.elta-radar-node .node-status.ready,
.matrixspace-radar-node .node-status.ready {
    background: #ffeb3b;
}

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

.node-info {
    flex: 1;
}

.node-name {
    font-weight: 500;
    margin-bottom: 4px;
}

/* Radar type tags (MHR/ELM) */
.radar-type-tag {
    font-size: 9px;
    font-weight: 600;
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: 6px;
    text-transform: uppercase;
    vertical-align: middle;
}

.radar-type-tag.mhr {
    background: #2a5298;
    color: #fff;
}

.radar-type-tag.elm {
    background: #8b5a2b;
    color: #fff;
}

.radar-type-tag.matrixspace {
    background: #00838f;
    color: #fff;
}

.radar-type-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

.radar-type-badge.elm {
    background: #8b5a2b;
    color: #fff;
}

.radar-type-badge.matrixspace {
    background: #00838f;
    color: #fff;
}

.node-details {
    font-size: 12px;
    color: #888;
    display: flex;
    gap: 15px;
}

.node-modes {
    display: flex;
    gap: 5px;
    margin-left: auto;
}

.mode-indicator {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 1px solid #333;
    position: relative;
}

.mode-indicator.active {
    border-color: currentColor;
    background: currentColor;
}

.mode-indicator.active i {
    color: #000;
}

.mode-spoof { color: #00ff88; }
.mode-jam { color: #ffaa00; }
.mode-detect { color: #ff4444; }
.mode-motion { color: #ff9900; }

/* Zone & Asset List Items */
.zone-item,
.asset-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    margin-left: 20px;
    margin-bottom: 5px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.zone-item:hover,
.asset-item:hover {
    background: #222;
    border-color: #444;
}

.zone-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 10px;
    flex-shrink: 0;
}

.zone-icon,
.asset-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
    font-size: 12px;
}

.zone-info,
.asset-info {
    flex: 1;
    min-width: 0;
}

.zone-name,
.asset-name {
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zone-type,
.asset-category {
    font-size: 11px;
    color: #888;
    text-transform: capitalize;
}

.item-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.zone-item:hover .item-actions,
.asset-item:hover .item-actions {
    opacity: 1;
}

.item-action-btn {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.2s;
}

.item-action-btn:hover {
    background: #333;
    color: #fff;
    border-color: #555;
}

.item-action-btn.delete:hover {
    background: #442222;
    color: #ff4444;
    border-color: #ff4444;
}

/* Zone/Asset Group Headers (reuse region-header styling) */
.zones-list .region-group,
.assets-list .region-group {
    margin-bottom: 10px;
}

.zones-list .region-nodes,
.assets-list .region-nodes {
    display: block;
}

.zones-list .region-nodes.collapsed,
.assets-list .region-nodes.collapsed {
    display: none;
}

/* Empty state */
.nodes-empty,
.zones-empty,
.assets-empty {
    text-align: center;
    color: #666;
    padding: 40px 20px;
    font-size: 13px;
}

.nodes-empty i,
.zones-empty i,
.assets-empty i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
    opacity: 0.5;
}

/* Main Content */
.main-content {
    position: fixed;
    top: var(--toolbar-height);
    left: var(--sidebar-width);
    right: 0;
    bottom: 0;
    transition: left 0.3s ease;
}

#map {
    width: 100%;
    height: 100%;
    background: var(--map-bg, #0a0a0a);
}

/* Control Panel */
.control-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px 20px;
    min-width: 350px;
    max-width: 400px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.control-panel.vorpal-panel {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.control-panel h3 {
    margin-bottom: 10px;
    color: #00cc66;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-panel {
    cursor: pointer;
    padding: 5px;
    color: #888;
    transition: color 0.2s;
}

.close-panel:hover {
    color: #fff;
}

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

.control-section h4 {
    margin-bottom: 10px;
    color: #aaa;
    font-size: 14px;
    font-weight: 400;
}

.control-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.control-btn {
    flex: 1;
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 5px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-size: 14px;
}

.control-btn:hover:not(:disabled) {
    background: #222;
    border-color: #444;
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.control-btn.active {
    background: #1a1a1a;
    border-color: #00cc66;
    color: #00cc66;
}

.control-btn.active:hover:not(:disabled) {
    background: #003344;
    border-color: #00ff88;
    color: #00ff88;
    box-shadow: 0 0 10px rgba(0, 204, 102, 0.3);
}

/* Dual range slider */
.dual-range {
    position: relative;
    height: 28px;
    user-select: none;
}
.dual-range-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 5px;
    background: silver;
    border-radius: 3px;
}
.dual-range-fill {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 5px;
    background: #4a9eff;
    border-radius: 3px;
}
.dual-range-handle {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #4a9eff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 3;
}
.dual-range-handle:hover {
    box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.2);
}
.dual-range-tooltip {
    position: absolute;
    top: -22px;
    transform: translateX(-50%);
    background: grey;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}
.dual-range-edge-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #888;
}

/* Scan range block layout */
.scan-range-block {
    display: flex;
    align-items: center;
    padding: 7px;
}
.scan-range-az {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.scan-range-el {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}
.scan-range-az label {
    margin-bottom: 6px;
    font-size: 13px;
    margin-left: -6px;
}
.scan-range-az-inputs {
    display: flex;
    gap: 12px;
    align-items: center;
}
.scan-range-input-group {
    display: flex;
    align-items: center;
    gap: 4px;
}
.scan-range-input-label {
    font-size: 11px;
    color: #aaa;
    min-width: 28px;
}
.scan-range-input {
    width: 60px;
    padding: 4px 6px;
    background: grey;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    text-align: center;
    -moz-appearance: textfield;
}
.scan-range-input::-webkit-inner-spin-button,
.scan-range-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.scan-range-input:focus {
    outline: none;
    border-color: #4a9eff;
}
.scan-range-input-unit {
    font-size: 12px;
    color: #888;
}
.scan-range-el label {
    margin-bottom: 4px;
    font-size: 13px;
}

/* Vertical dual range slider */
.dual-range-vertical {
    position: relative;
    width: 28px;
    height: 140px;
    margin: 24px 0;
    user-select: none;
}
.dual-range-track-v {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 5px;
    background: silver;
    border-radius: 3px;
}
.dual-range-fill-v {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    background: #4a9eff;
    border-radius: 3px;
}
.dual-range-vertical .dual-range-handle {
    top: auto;
    left: 50%;
    transform: translate(-50%, 50%);
}
.dual-range-tooltip-v {
    position: absolute;
    left: 32px;
    transform: translateY(50%);
    background: grey;
    color: #fff;
    font-size: 11px;
    padding: 2px 4px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
    margin-left: -5px;
}
.dual-range-edge-label-top,
.dual-range-edge-label-bottom {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #888;
    white-space: nowrap;
}
.dual-range-edge-label-top {
    top: -24px;
}
.dual-range-edge-label-bottom {
    bottom: -30px;
}

.control-btn.danger {
    background: #1a1a1a;
    border-color: #ff4444;
    color: #ff4444;
}

.control-btn.danger:hover:not(:disabled) {
    background: #331111;
    border-color: #ff6666;
    color: #ff6666;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

/* Spoofing Controls */
.spoofing-params {
    display: grid;
    gap: 10px;
}

.param-group {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.param-label {
    font-size: 13px;
    color: #888;
    width: 100px;
}

.param-input {
    flex: 1;
    padding: 6px 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 3px;
    color: #e0e0e0;
    font-size: 13px;
}

.param-input:focus {
    border-color: #00cc66;
    outline: none;
}

/* Jamming Controls */
.band-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.band-toggle {
    padding: 8px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 3px;
    cursor: pointer;
    text-align: center;
    font-size: 13px;
    transition: all 0.2s;
}

.band-toggle:hover {
    background: #222;
}

.band-toggle.active {
    background: #332200;
    border-color: #ffaa00;
    color: #ffaa00;
}

/* Context Menu */
.context-menu {
    position: absolute;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid #333;
    border-radius: 5px;
    padding: 5px;
    z-index: 2000;
    backdrop-filter: blur(10px);
    display: none;
}

.context-menu-item {
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 3px;
}

.context-menu-item:hover {
    background: #222;
}

.context-menu-item i {
    width: 16px;
    text-align: center;
}

/* Notifications */
.notifications {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10003;
}

.notification {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #333;
    border-radius: 5px;
    padding: 15px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification.success { border-color: #00ff88; }
.notification.warning { border-color: #ffaa00; }
.notification.error { border-color: #ff4444; }

.notification i {
    font-size: 20px;
}

.notification.success i { color: #00ff88; }
.notification.warning i { color: #ffaa00; }
.notification.error i { color: #ff4444; }

/* Custom Leaflet Styles */
.leaflet-container {
    background: var(--map-bg, #0a0a0a);
}

.leaflet-control-zoom {
    display: none;
}

.node-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.node-marker .node-icon {
    background: #666;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.2s;
}

.node-marker .node-label {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8), -1px -1px 2px rgba(0,0,0,0.8);
    white-space: nowrap;
    text-align: center;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.node-marker.online .node-icon {
    background: #ffeb3b;
}

.node-marker.ready .node-icon {
    background: #4caf50;
}

.node-marker.transmitting .node-icon {
    background: #2196F3 !important;
    animation: transmitPulse 1.5s infinite;
}

@keyframes transmitPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.8);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(33, 150, 243, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0);
    }
}

.node-marker:hover {
    transform: scale(1.1);
}

.node-marker.offline .node-icon {
    background: #666;
}

.node-marker.detection .node-icon {
    background: #ff4444;
}

.node-marker.mitigating .node-icon {
    background: #9c27b0;
    animation: transmitPulse 1.5s infinite;
}

.node-marker.tracking .node-icon {
    background: #4caf50;
}

.node-marker.jamming .node-icon {
    background: #9c27b0;
}

/* Camera marker - uses icon instead of letter */
.node-marker.camera-marker .node-icon {
    font-size: 14px;
}

.node-marker.camera-marker .node-icon i {
    line-height: 26px;
}

.node-marker.detection-active .node-icon {
    background: #ff4444 !important;
    animation: radarPulse 2s infinite;
}

@keyframes radarPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.6);
    }
    70% {
        box-shadow: 0 0 0 30px rgba(255, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}

.detection-circle {
    fill: none;
    stroke: #ff4444;
    stroke-width: 2;
    stroke-opacity: 0.8;
    fill-opacity: 0.1;
    fill: #ff4444;
}

/* Custom Dropdown Styles */
.custom-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.dropdown-toggle {
    width: 100%;
    padding: 12px 15px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    box-sizing: border-box;
}

.dropdown-toggle:hover {
    border-color: #666;
    background: #333;
}

.dropdown-toggle.active {
    border-color: #00cc66;
    background: #333;
}

.dropdown-arrow {
    transition: transform 0.2s;
    color: #888;
    font-size: 12px;
    margin-left: 10px;
}

.dropdown-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
    color: #00cc66;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2a2a2a;
    border: 1px solid #00cc66;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
    border-bottom: 1px solid #333;
    color: #e0e0e0;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #444;
}

.dropdown-item.selected {
    background: #003344;
    color: #00cc66;
}

.param-group .custom-dropdown {
    flex: 1;
}

.param-group .dropdown-toggle {
    padding: 6px 10px;
    font-size: 13px;
    min-height: 32px;
}

.param-group .dropdown-item {
    padding: 8px 10px;
    font-size: 13px;
}

.dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Aircraft Markers */
.aircraft-icon-container {
    background: transparent;
    border: none;
}

.aircraft-marker {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
    transform-origin: center center;
    animation: aircraft-pulse 3s ease-in-out infinite;
}

@keyframes aircraft-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.aircraft-icon {
    width: 16px;
    height: 16px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
}

.aircraft-icon.airliner {
    background: #2196F3;
    clip-path: polygon(50% 0%, 0% 100%, 50% 75%, 100% 100%);
}

.aircraft-icon.private {
    background: #4CAF50;
    clip-path: polygon(50% 0%, 20% 100%, 50% 85%, 80% 100%);
}

.aircraft-icon.helicopter {
    background: #FF9800;
    border-radius: 50%;
    position: relative;
}

.aircraft-icon.helicopter::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: #FF9800;
    transform: translate(-50%, -50%);
}

.aircraft-icon.helicopter::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 20px;
    background: #FF9800;
    transform: translate(-50%, -50%);
}

.aircraft-icon.cargo {
    background: #9C27B0;
    clip-path: polygon(50% 0%, 10% 100%, 50% 80%, 90% 100%);
}

.aircraft-icon.military {
    background: #F44336;
    clip-path: polygon(50% 0%, 15% 70%, 0% 100%, 50% 90%, 100% 100%, 85% 70%);
}

.aircraft-trail {
    position: absolute;
    top: 50%;
    left: -8px;
    width: 8px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
    transform: translateY(-50%);
    z-index: 1;
}

.aircraft-marker.airliner .aircraft-icon {
    background: #2196F3;
}

.aircraft-marker.private .aircraft-icon {
    background: #4CAF50;
}

.aircraft-marker.helicopter .aircraft-icon {
    background: #FF9800;
}

.aircraft-marker.cargo .aircraft-icon {
    background: #9C27B0;
}

.aircraft-marker.military .aircraft-icon {
    background: #F44336;
}

.aircraft-marker:hover .aircraft-icon {
    transform: scale(1.3);
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.4));
}

.aircraft-marker:hover .aircraft-trail {
    background: rgba(255, 255, 255, 0.8);
    width: 16px;
}

/* Aircraft Popup Styles */
.aircraft-popup {
    min-width: 200px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.flight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.flight-number {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.aircraft-type-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    color: #fff;
}

.aircraft-type-badge.airliner {
    background: #2196F3;
}

.aircraft-type-badge.private {
    background: #4CAF50;
}

.aircraft-type-badge.helicopter {
    background: #FF9800;
}

.aircraft-type-badge.cargo {
    background: #9C27B0;
}

.aircraft-type-badge.military {
    background: #F44336;
}

.flight-details {
    display: grid;
    gap: 4px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
}

.detail-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.detail-value {
    font-size: 12px;
    color: #333;
    font-weight: 600;
    text-align: right;
}

.leaflet-popup-content-wrapper {
    background: rgba(31, 31, 31, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #444;
}

.leaflet-popup-content-wrapper .aircraft-popup .flight-header {
    border-bottom-color: #444;
}

.leaflet-popup-content-wrapper .flight-number {
    color: #e0e0e0;
}

.leaflet-popup-content-wrapper .detail-label {
    color: #888;
}

.leaflet-popup-content-wrapper .detail-value {
    color: #e0e0e0;
}

.leaflet-popup-tip {
    background: rgba(31, 31, 31, 0.95);
    border: 1px solid #444;
    border-top: none;
    border-right: none;
}

.leaflet-tile-pane {
    filter: brightness(0.7) contrast(1.2) saturate(1.2);
}

/* Login Screen Styles */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('resources/images/LeC2_wallpaper_dark.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 5%;
    z-index: 9999;
}

.login-container {
    background: rgba(31, 31, 31, 0.95);
    border: 1px solid #444;
    border-radius: 12px;
    padding: 40px;
    min-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    position: relative; /* Add this line */
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #00ff88;
    font-weight: 300;
    margin-bottom: 10px;
    margin-top: 0; /* Add this to remove default margin from h2 */
}

.login-header p {
    color: #888;
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #aaa;
    font-size: 14px;
    font-weight: 500;
}

.node-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 150px;
    overflow-y: auto;
    padding: 10px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
}

.node-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.node-checkbox-label:hover {
    background: #333;
}

.node-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #00ff88;
}

.node-checkbox-label span {
    color: #e0e0e0;
    font-size: 13px;
}

.node-select-actions {
    display: flex;
    gap: 15px;
    margin-top: 6px;
}

.link-btn {
    background: none;
    border: none;
    color: #00ff88;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
    text-decoration: underline;
}

.link-btn:hover {
    color: #00cc66;
}

.form-input {
    padding: 12px 15px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #00ff88;
}

.login-btn {
    padding: 12px 20px;
    background: #00ff88;
    color: #000;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover {
    background: #00cc66;
}

.login-error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    border-radius: 6px;
    padding: 12px;
    color: #ff4444;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* User Name */
.user-name {
    color: var(--text-accent);
    text-transform: capitalize;
    font-size: 13px;
}

/* Control Panel Status Styles */
.status-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 15px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 5px;
}

.status-label {
    font-size: 13px;
    color: #888;
}

.status-value {
    font-size: 13px;
    font-weight: 500;
}

.status-value.running {
    color: #00ff88;
}

.status-value.stopped {
    color: #888;
}

.status-value.armed {
    color: #ffaa00;
}

.status-value.online {
    color: #4caf50;
}

.status-value.offline {
    color: #666;
}

.status-value.active {
    color: #ff4444;
    animation: pulse 2s infinite;
}

.main-control-btn {
    font-size: 16px;
    padding: 12px 20px;
}

.config-sections {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Panel Header Styles */
.panel-header-buttons {
    display: flex;
    align-items: center;
    gap: 7px;
}

.panel-header-btn {
    background: transparent;
    border: 1px solid #444;
    color: #888;
    padding: 3px 3px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.panel-header-btn:hover {
    background: #333;
    color: #fff;
    border-color: #666;
}

.panel-header-btn.muted {
    color: #ff4444;
    border-color: #ff4444;
}

.panel-header-btn.muted:hover {
    background: rgba(255, 68, 68, 0.1);
    color: #ff6666;
}

.panel-header-btn.active {
    color: #00e5ff;
    border-color: #00e5ff;
    background: rgba(0, 229, 255, 0.1);
}

.panel-header-btn.active:hover {
    background: rgba(0, 229, 255, 0.2);
    color: #00e5ff;
}

/* Location Input Styles */


.location-input.valid {
    border-color: #4caf50 !important;
    background: rgba(76, 175, 80, 0.1);
}

.location-input.invalid {
    border-color: #ff4444 !important;
    background: rgba(255, 68, 68, 0.1);
}

.location-input::placeholder {
    color: #666;
    font-style: italic;
}

.location-input:focus {
    border-color: #00cc66;
    outline: none;
    background: rgba(0, 204, 102, 0.05);
}

.location-input:focus::placeholder {
    color: #888;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .map-layers-control {
        font-size: 12px;
    }
    
    .layers-content {
        min-width: 240px;
    }
    
    .map-styles {
        flex-direction: column;
        gap: 8px;
    }
    
    .map-preview {
        height: 36px;
    }
    
    .aircraft-popup {
        min-width: 180px;
    }
    
    .aircraft-marker {
        width: 20px;
        height: 20px;
    }
    
    .aircraft-icon {
        font-size: 14px;
    }
}

/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox
input[type=number] {
  -moz-appearance: textfield;
} */


.region-header {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #1a1a1a;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 5px;
    position: relative;
}

.region-header:hover {
    background: #222;
}

.region-toggle {
    margin-right: 10px;
    transition: transform 0.2s;
}

.region-toggle.collapsed {
    transform: rotate(-90deg);
}

.region-name {
    font-weight: 500;
    color: #00cc66;
}

.region-count {
    margin-left: auto;
    font-size: 12px;
    color: #888;
}

.region-controls {
    display: flex;
    gap: 8px;
    margin-left: 15px;
}

.region-control-btn {
    background: transparent;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    color: #888;
    transition: all 0.2s;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.region-control-btn:hover {
    background: #333;
    border-color: #666;
}

.region-control-btn.region-activate {
    color: #00cc66;
    border-color: #00cc66;
}

.region-control-btn.region-activate:hover {
    background: rgba(0, 204, 102, 0.2);
    color: #00ff88;
    border-color: #00ff88;
}

.region-control-btn.region-stop {
    color: #ff4444;
    border-color: #ff4444;
}

.region-control-btn.region-stop:hover {
    background: rgba(255, 68, 68, 0.2);
    color: #ff6666;
    border-color: #ff6666;
}

.region-nodes {
    display: block;
    transition: all 0.3s ease;
}

.region-nodes.collapsed {
    display: none;
}

.region-alert {
    background: #ff4444;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 10px;
    animation: pulse 2s infinite;
}


/* Add these styles to your existing styles.css file */

/* Auto button styles - Update the existing #auto-toggle styles */
#auto-toggle {
    padding: 6px 12px;
    min-width: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#auto-toggle.active {
    color: #00ccff;
    border-color: #00ccff;
    background: rgba(0, 204, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.3);
    text-shadow: 0 0 5px rgba(0, 204, 255, 0.5);
}

#auto-toggle.active:hover {
    background: rgba(0, 204, 255, 0.3);
    color: #66ddff;
    border-color: #66ddff;
    box-shadow: 0 0 15px rgba(0, 204, 255, 0.5);
}

#auto-toggle:not(.active) {
    opacity: 0.6;
}

#auto-toggle:not(.active):hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}

/* Add auto mode indicator style to existing mode indicators */
.mode-auto { 
    color: #00ccff; 
    animation: auto-pulse 2s ease-in-out infinite;
}

@keyframes auto-pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 204, 255, 0.4);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 5px 2px rgba(0, 204, 255, 0.3);
    }
}


.close-popup {
    font-size: 24px;
    color: #888;
    cursor: pointer;
    padding: 0 5px;
    transition: color 0.2s;
}

.close-popup:hover {
    color: #fff;
}

.close-btn {
    padding: 8px 20px;
    background: #333;
    border: 1px solid #444;
    color: #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #444;
    border-color: #666;
}



/* Status Footer Bar */
.status-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: rgba(15, 15, 15, 0.9);
    border-top: 1px solid #333;
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 1800;
    font-size: 12px;
    backdrop-filter: blur(5px);
}

.footer-stat {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-label {
    color: #666;
    
}

.footer-value {
    color: #666;

}

.footer-value.active {
    color: #00ff88;
}

.footer-value.warning {
    color: #ffaa00;
}

.footer-value.danger {
    color: #ff4444;
}

.footer-divider {
    width: 1px;
    height: 14px;
    background: #333;
    margin: 0 16px;
}

.footer-spacer {
    flex: 1;
}

.footer-icon {
    color: #555;
    font-size: 11px;
}

#system-time {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    min-width: 170px;
    text-align: right;
}

/* Adjust main content and sidebar to account for footer */
.main-content {
    bottom: 28px;
}

.sidebar {
    bottom: 28px;
}

/* Adjust layers control position for footer */
.map-layers-control {
    bottom: 48px;
}




/* Quick Notes Modal */
.quick-notes-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.quick-notes-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.quick-notes-modal {
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 24px;
    width: 440px;
    max-width: 90vw;
}

.quick-notes-modal h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.quick-notes-modal h3 i {
    color: var(--text-accent);
    margin-right: 8px;
}

.quick-notes-modal textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.quick-notes-modal textarea:focus {
    border-color: var(--text-accent);
}

.quick-notes-modal textarea::placeholder {
    color: var(--text-tertiary);
}

.quick-notes-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.quick-notes-btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border-secondary);
}

.quick-notes-btn.cancel {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-color: var(--border-primary);
}

.quick-notes-btn.cancel:hover {
    background: var(--border-primary);
    color: var(--text-primary);
}

.quick-notes-btn.submit {
    background: var(--text-accent);
    color: #fff;
    border-color: var(--text-accent);
}

.quick-notes-btn.submit:hover {
    filter: brightness(1.15);
}

/* Connection Lost Overlay */
.connection-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.connection-message {
    text-align: center;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.connection-message h2 {
    color: #ff4444;
    font-weight: 300;
    margin-bottom: 15px;
}

.connection-message p {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
}

#reconnect-status {
    color: #ffaa00;
    font-size: 14px;
    margin-top: 20px;
}

/* Help/About Modal */
.help-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.help-modal {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    width: 350px;
    max-width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.help-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
}

.help-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    color: #00cc66;
}

.help-modal-header h2 i {
    margin-right: 8px;
}

.help-close-btn {
    background: transparent;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.help-close-btn:hover {
    color: #fff;
}

.help-modal-body {
    padding: 30px 20px;
    text-align: center;
}

.help-logo {
    margin-bottom: 20px;
}

.help-modal-body h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 400;
    color: #999;
}

.help-modal-body .version-text {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.help-modal-body .copyright-text {
    color: #999;
    font-size: 14px;
    margin: 0;
}

/* Light mode help modal */
body.light-mode .help-modal-overlay {
    background: rgba(0, 0, 0, 0.5);
}

body.light-mode .help-modal {
    background: #ffffff;
    border-color: #d0d0d0;
}

body.light-mode .help-modal-header {
    border-bottom-color: #e0e0e0;
}

body.light-mode .help-modal-header h2 {
    color: #00aa55;
}

body.light-mode .help-close-btn {
    color: #999;
}

body.light-mode .help-close-btn:hover {
    color: #333;
}

body.light-mode .help-modal-body h3 {
    color: #666;
}

body.light-mode .help-modal-body .version-text {
    color: #666;
}

body.light-mode .help-modal-body .copyright-text {
    color: #666;
}

.custom-dropdown.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.custom-dropdown.disabled .dropdown-toggle {
    cursor: not-allowed;
    pointer-events: none;
}


/* ============================================
   STYLES.CSS - Add these styles for jammer band errors
   ============================================ */

/* Jammer status with errors indicator */
.status-value.has-errors {
    color: #ff8800 !important;
    position: relative;
}

.status-value.has-errors::after {
    content: '⚠';
    margin-left: 6px;
    font-size: 12px;
    animation: error-pulse 1.5s ease-in-out infinite;
}

@keyframes error-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}



/* Jammer Status Popup */
.jammer-status-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 15, 15, 0.98);
    border: 1px solid #444;
    border-radius: 8px;
    min-width: 350px;
    max-width: 450px;
    max-height: 550px;
    z-index: 3000;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.jammer-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #444;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 8px 8px 0 0;
}

.jammer-popup-header h4 {
    margin: 0;
    color: #00cc66;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.jammer-popup-header h4 i {
    color: #ff8800;
}

.jammer-popup-content {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

/* Summary section */
.jammer-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 12px 15px;
    background: rgba(26, 26, 26, 0.6);
    border-radius: 6px;
    border: 1px solid #333;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-label {
    color: #888;
    font-size: 13px;
}

.summary-value {
    color: #e0e0e0;
    font-weight: 500;
    font-size: 14px;
}

.summary-value.state-running {
    color: #00ff88;
}

.summary-value.state-online {
    color: #00ccff;
}

.summary-value.state-stopped,
.summary-value.state-offline {
    color: #888;
}

.summary-value.error-count {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.15);
    padding: 2px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.error-summary {
    margin-left: auto;
}

/* Band status table */
.band-status-table {
    width: 100%;
    border-collapse: collapse;
}

.band-status-table th {
    text-align: left;
    padding: 10px 12px;
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    border-bottom: 1px solid #444;
    font-weight: 500;
}

.band-status-table th i {
    font-size: 14px;
}

.band-status-table td {
    padding: 12px;
    color: #e0e0e0;
    font-size: 14px;
    border-bottom: 1px solid #333;
}

.band-row.active td {
    background: rgba(0, 255, 136, 0.05);
}

.band-row.active-with-errors td {
    background: rgba(255, 136, 0, 0.08);
}

.band-row.error td {
    background: rgba(255, 68, 68, 0.08);
}

.band-row.inactive td {
    opacity: 0.6;
}

.band-name {
    font-weight: 600;
    color: #fff;
}

/* Status icons */
.ok-icon {
    color: #00cc66;
    font-size: 16px;
}

.error-icon {
    color: #ff4444;
    font-size: 16px;
    animation: error-icon-pulse 1.5s ease-in-out infinite;
}

.na-icon {
    color: #555;
    font-size: 16px;
}

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

/* Global errors section */
.global-errors-section {
    margin-bottom: 15px;
    padding: 12px 15px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 6px;
}

.global-errors-title {
    color: #ff6666;
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.global-errors-list {
    margin: 0;
    padding-left: 20px;
    color: #ff8888;
    font-size: 12px;
}

.global-errors-list li {
    margin: 4px 0;
}

/* Status indicator badges */
.status-indicator {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-indicator.active {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.status-indicator.active-with-errors {
    background: rgba(255, 136, 0, 0.15);
    color: #ff8800;
    border: 1px solid rgba(255, 136, 0, 0.3);
}

.status-indicator.error {
    background: rgba(255, 68, 68, 0.15);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.status-indicator.inactive {
    background: rgba(136, 136, 136, 0.15);
    color: #888;
    border: 1px solid rgba(136, 136, 136, 0.3);
}



/* Footer */
.jammer-popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid #444;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 0 0 8px 8px;
}

.footer-note {
    color: #888;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-note i {
    font-size: 14px;
}

.footer-note .fa-info-circle {
    color: #ff8800;
}

.footer-note .fa-check-circle {
    color: #00cc66;
}

/* Scrollbar styling for jammer popup */
.jammer-popup-content::-webkit-scrollbar {
    width: 8px;
}

.jammer-popup-content::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 0.5);
    border-radius: 4px;
}

.jammer-popup-content::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.jammer-popup-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}


/* Make spoofer status item clickable */
#spoofer-status-item {
    cursor: pointer;
}

/* Unified hover for clickable status items */
#spoofer-status-item:hover,
#jammer-status-item[style*="cursor: pointer"]:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Spoofer Status Popup */
.spoofer-status-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 15, 15, 0.98);
    border: 1px solid #444;
    border-radius: 8px;
    min-width: 300px;
    max-width: 400px;
    z-index: 3000;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.spoofer-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #444;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 8px 8px 0 0;
}

.spoofer-popup-header h4 {
    margin: 0;
    color: #00cc66;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spoofer-popup-header h4 i {
    color: #00cc66;
}

.spoofer-popup-content {
    padding: 20px;
}

.spoofer-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(26, 26, 26, 0.6);
    border-radius: 6px;
    border: 1px solid #333;
    margin-bottom: 10px;
}

.spoofer-status-row:last-child {
    margin-bottom: 0;
}

.spoofer-status-row .status-label {
    color: #888;
    font-size: 14px;
}

.status-value-large {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Spoofer state colors */
.status-value-large.running {
    color: #00ff88;
}

.status-value-large.armed {
    color: #ffaa00;
}

.status-value-large.arming {
    color: #ffaa00;
    animation: pulse-text 1.5s ease-in-out infinite;
}

.status-value-large.stopped {
    color: #888;
}

/* Operation mode colors */
.status-value-large.optimal {
    color: #00ff88;
}

.status-value-large.optimal i {
    color: #00ff88;
}

.status-value-large.reduced {
    color: #ffcc00;
}

.status-value-large.reduced i {
    color: #ffcc00;
}

.status-value-large.degraded {
    color: #ff8800;
}

.status-value-large.degraded i {
    color: #ff8800;
}

.status-value-large.critical {
    color: #ff4444;
}

.status-value-large.critical i {
    color: #ff4444;
    animation: error-icon-pulse 1.5s ease-in-out infinite;
}

.status-value-large.inoperable {
    color: #ff0000;
}

.status-value-large.inoperable i {
    color: #ff0000;
}

.status-value-large.unknown {
    color: #888;
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.spoofer-popup-footer {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px;
    border-top: 1px solid #444;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 0 0 8px 8px;
}


/* Camera Button */
.camera-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.camera-btn-main {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid #00cc66;
    border-radius: 5px;
    color: #00cc66;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.camera-btn-main:hover {
    background: #003344;
    border-color: #00ff88;
    color: #00ff88;
    box-shadow: 0 0 10px rgba(0, 204, 102, 0.3);
}

/* Camera Popup */
.camera-popup {
    position: fixed;
    top: 100px;
    right: 420px;
    width: 480px;
    background: #000;
    border: 1px solid #444;
    border-radius: 8px;
    z-index: 900;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.camera-body {
    position: relative;
    background: #000;
}

.camera-popup video {
    width: 100%;
    display: block;
}

.camera-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(0,0,0,0.8);
    color: #888;
    z-index: 5;
}

.camera-overlay i { font-size: 24px; }

.detection-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.camera-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
    z-index: 20;
    cursor: move;
}

.camera-title {
    color: #00cc66;
    font-size: 13px;
    font-weight: 500;
}

.camera-title i { margin-right: 6px; }

.camera-top-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.camera-top-bar .pin-toggle {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 2px 6px;
    font-size: 14px;
    transition: color 0.2s;
}

.camera-top-bar .pin-toggle:hover {
    color: rgba(255,255,255,0.8);
}

.camera-top-bar .pin-toggle.active {
    color: #00cc66;
}

.camera-popup.pinned {
    box-shadow: 0 0 0 2px #00cc66, 0 8px 32px rgba(0, 0, 0, 0.8);
}

.camera-popup.pinned .camera-top-bar {
    cursor: default;
}

.camera-top-bar .close-popup {
    font-size: 20px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
    line-height: 1;
}

.camera-top-bar .close-popup:hover {
    color: #fff;
}

.camera-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    z-index: 20;
    font-size: 12px;
}

.camera-status {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.8);
}

.camera-popup .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f90;
}

.camera-popup .status-dot.live {
    background: #4CAF50;
    box-shadow: 0 0 6px #4CAF50;
}

.camera-popup .status-dot.offline {
    background: #f44;
}

/* Camera Detection Toggle Controls */
.camera-detection-controls {
    display: flex;
    gap: 6px;
}

.camera-detection-controls .detection-toggle,
.camera-detection-controls .motion-toggle {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    background: rgba(0,0,0,0.4);
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
}

.camera-detection-controls .detection-toggle:hover,
.camera-detection-controls .motion-toggle:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

.camera-detection-controls .detection-toggle.active {
    background: rgba(46, 204, 113, 0.3);
    border-color: #2ecc71;
    color: #2ecc71;
}

.camera-detection-controls .motion-toggle.active {
    background: rgba(0, 255, 255, 0.3);
    border-color: #00ffff;
    color: #00ffff;
}

.camera-detection-controls .detection-toggle.loading,
.camera-detection-controls .motion-toggle.loading {
    opacity: 0.5;
    pointer-events: none;
}

.camera-detection-controls .detection-toggle.loading i,
.camera-detection-controls .motion-toggle.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Camera Popup Resize Handles */
.camera-popup .resize-handle {
    position: absolute;
    width: 16px;
    height: 16px;
    z-index: 30;
}

.camera-popup .resize-nw {
    top: 0;
    left: 0;
    cursor: nw-resize;
}

.camera-popup .resize-ne {
    top: 0;
    right: 0;
    cursor: ne-resize;
}

.camera-popup .resize-sw {
    bottom: 0;
    left: 0;
    cursor: sw-resize;
}

.camera-popup .resize-se {
    bottom: 0;
    right: 0;
    cursor: se-resize;
}

.camera-popup.resizing {
    user-select: none;
}

.camera-popup.resizing video {
    pointer-events: none;
}

/* Camera Popup Compact Mode */
.camera-popup.compact .camera-top-bar {
    padding: 4px 6px;
}

.camera-popup.compact .camera-bottom-bar {
    padding: 4px 6px;
}

.camera-popup.compact .camera-title {
    font-size: 10px;
}

.camera-popup.compact .camera-title i {
    margin-right: 4px;
}

.camera-popup.compact .pin-toggle {
    font-size: 10px;
    padding: 1px 3px;
}

.camera-popup.compact .close-popup {
    font-size: 14px;
}

.camera-popup.compact .camera-status {
    font-size: 10px;
}

.camera-popup.compact .camera-detection-controls {
    gap: 4px;
}

.camera-popup.compact .camera-detection-controls .detection-toggle,
.camera-popup.compact .camera-detection-controls .motion-toggle {
    width: 20px;
    height: 20px;
    font-size: 10px;
}

.camera-popup.compact .camera-top-controls {
    gap: 4px;
}

/* ============================================
   Dark Mode / Light Mode Toggle
   ============================================ */

/* Theme Toggle Button (login page) */
.theme-toggle-btn {
    background: transparent;
    border: none;
    color: #888;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* CSS Variables for theming */
:root {
    /* Layout dimensions */
    --toolbar-height: 44px;
    --sidebar-width: 350px;
    /* Dark mode colors (default) */
    --bg-primary: #1a1a1a;
    --bg-secondary: #0f0f0f;
    --bg-tertiary: #2a2a2a;
    --bg-elevated: rgba(15, 15, 15, 0.95);
    --bg-overlay: rgba(15, 15, 15, 0.98);
    --text-primary: #e0e0e0;
    --text-secondary: #888;
    --text-tertiary: #666;
    --text-accent: #00cc66;
    --border-primary: #333;
    --border-secondary: #444;
    --map-bg: #0a0a0a;
}

/* Light mode colors */
body.light-mode {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8e8e8;
    --bg-elevated: rgba(255, 255, 255, 0.95);
    --bg-overlay: rgba(255, 255, 255, 0.98);
    --text-primary: #2a2a2a;
    --text-secondary: #666;
    --text-tertiary: #888;
    --text-accent: #00aa55;
    --border-primary: #d0d0d0;
    --border-secondary: #c0c0c0;
    --map-bg: #f0f0f0;
}

/* Apply theme variables to main elements */
body {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-primary);
}

.sidebar-toggle {
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
    font-size: 16px;
    color: var(--text-primary);
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.sidebar-toggle:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-accent);
    color: var(--text-accent);
}

.home-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
    font-size: 16px;
    color: var(--text-primary);
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    z-index: 10000 !important;
}

.home-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-accent);
    color: var(--text-accent);
}

/* Map Context Menu */
.map-context-menu {
    position: fixed;
    background: var(--bg-elevated);
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    padding: 6px 0;
    min-width: 180px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 100000;
    backdrop-filter: blur(10px);
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 13px;
    transition: background 0.15s;
}

.context-menu-item:hover {
    background: var(--bg-tertiary);
}

.context-menu-item i {
    width: 16px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
}

.context-menu-item:hover i {
    color: var(--text-accent);
}

.context-menu-item .coords-text {
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 12px;
    color: var(--text-accent);
}

.context-menu-divider {
    height: 1px;
    background: var(--border-secondary);
    margin: 4px 8px;
}

.context-menu-item-danger {
    color: #ef4444;
}

.context-menu-item-danger i {
    color: #ef4444 !important;
}

.context-menu-item-danger:hover {
    background: rgba(239, 68, 68, 0.15);
}

/* Measure Tool */
.measure-label {
    background: transparent !important;
    border: none !important;
}

.measure-label-content {
    background: var(--bg-elevated);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-secondary);
}

body.light-mode .map-context-menu {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body.light-mode .measure-label-content {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Polygon Name Labels */
.polygon-label-container {
    background: transparent !important;
    border: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: visible !important;
}

.polygon-label {
    position: absolute;
    background: transparent;
    border: none;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

body.light-mode .polygon-label {
    color: #1a1a1a;
    text-shadow:
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff,
        0 0 4px rgba(255, 255, 255, 0.9);
}

/* Tripwire Labels */
.tripwire-label-container {
    background: transparent !important;
    border: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: visible !important;
}

.tripwire-label {
    position: absolute;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    pointer-events: none;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 4px rgba(0, 0, 0, 0.9);
}

body.light-mode .tripwire-label {
    color: #1a1a1a;
    text-shadow:
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff,
        0 0 4px rgba(255, 255, 255, 0.9);
}

/* Tripwire Direction Markers */
.tripwire-direction-marker {
    background: transparent !important;
    border: none !important;
}

.tripwire-direction-marker div {
    font-size: 16px;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

/* Polygon Dialog */
.polygon-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100001;
    backdrop-filter: blur(4px);
}

.polygon-dialog {
    background: var(--bg-elevated);
    border: 1px solid var(--border-secondary);
    border-radius: 12px;
    width: 320px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.polygon-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-primary);
}

.polygon-dialog-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.polygon-dialog-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
}

.polygon-dialog-close:hover {
    color: var(--text-primary);
}

.polygon-dialog-body {
    padding: 16px 20px;
}

.polygon-dialog-body .form-group {
    margin-bottom: 12px;
}

.polygon-dialog-body .form-group:last-child {
    margin-bottom: 0;
}

.polygon-dialog-body .form-row {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}

.polygon-dialog-body .form-row .form-group {
    margin-bottom: 0;
}

.polygon-dialog-body label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.polygon-dialog-body input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 13px;
    box-sizing: border-box;
}

.polygon-dialog-body input[type="text"]:focus {
    outline: none;
    border-color: var(--text-accent);
}

.color-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.15s, border-color 0.15s;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 2px var(--bg-elevated);
}

.polygon-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-primary);
}

.polygon-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.15s, box-shadow 0.15s;
}

.polygon-btn.primary {
    background: var(--text-accent);
    color: white;
}

.polygon-btn.primary:hover {
    background: #00dd77;
    box-shadow: 0 0 8px rgba(0, 204, 102, 0.5);
}

.polygon-btn.secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-secondary);
}

.polygon-btn.secondary:hover {
    background: var(--bg-primary);
}

.polygon-btn.danger {
    background: #dc2626;
    color: white;
    margin-right: auto;
}

.polygon-btn.danger:hover {
    background: #b91c1c;
}

body.light-mode .polygon-dialog-overlay {
    background: rgba(0, 0, 0, 0.4);
}

body.light-mode .polygon-dialog {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Extended Polygon Dialog */
.polygon-dialog-extended {
    width: 400px;
}

.form-row-inline {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.form-row-inline .form-group {
    flex: 1;
}

.form-section-heading {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-accent);
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid var(--border-secondary);
}

.polygon-dialog-body select {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 13px;
    box-sizing: border-box;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.polygon-dialog-body select:focus {
    outline: none;
    border-color: var(--text-accent);
}

.polygon-dialog-body input[type="number"] {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 13px;
    box-sizing: border-box;
}

.polygon-dialog-body input[type="number"]:focus {
    outline: none;
    border-color: var(--text-accent);
}

.polygon-dialog-body .coords-display {
    padding: 8px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    color: var(--text-secondary);
}

.node-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 120px;
    overflow-y: auto;
    padding: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: 6px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 13px;
}

.checkbox-item:hover {
    background: var(--bg-elevated);
}

.checkbox-item input[type="checkbox"] {
    cursor: pointer;
    accent-color: var(--text-accent);
}

.checkbox-item span {
    color: var(--text-primary);
}

.activation-settings {
    margin-top: 4px;
}

#map {
    position: relative;
}

.region-header {
    background: var(--bg-primary);
}

.node-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
}

.control-panel {
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
}

.control-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
}

.param-input {
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
}

.dropdown-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    color: var(--text-primary);
}

.dropdown-menu {
    background: var(--bg-tertiary);
}

.dropdown-item {
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-primary);
}

.status-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
}

.status-label {
    color: var(--text-secondary);
}

.login-overlay {
    background: url('resources/images/LeC2_wallpaper_dark.jpg') no-repeat center center;
    background-size: cover;
}

body.light-mode .login-overlay {
    background: url('resources/images/LeC2_wallpaper_light.jpg') no-repeat center center;
    background-size: cover;
}

.login-container {
    background: var(--bg-overlay);
    border: 1px solid var(--border-secondary);
}

.form-input {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    color: var(--text-primary);
}

.layers-panel {
    background: var(--bg-overlay);
    border: 1px solid var(--border-primary);
}

.layers-header {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-primary);
}

.layers-title {
    color: var(--text-primary);
}

.layer-option {
    background: var(--bg-elevated);
    border: 1px solid var(--border-secondary);
}

.layer-option label {
    color: var(--text-primary);
}

.status-footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-primary);
}

.context-menu {
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
}

.notification {
    background: var(--bg-overlay);
    border: 1px solid var(--border-primary);
}

/* Modal/Popup Windows - Apply theme to ALL popups */
.jammer-status-popup,
.spoofer-status-popup {
    background: var(--bg-overlay);
    border: 1px solid var(--border-secondary);
}

.camera-popup {
    border: 1px solid var(--border-secondary);
}

.jammer-popup-header,
.spoofer-popup-header {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-secondary);
}

.jammer-popup-header h4,
.spoofer-popup-header h4 {
    color: var(--text-accent);
}

.jammer-popup-content,
.spoofer-popup-content {
    background: var(--bg-overlay);
}

.band-status-table th {
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-secondary);
}

.band-status-table td {
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-primary);
}

.jammer-summary,
.spoofer-status-row {
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
}

.summary-label,
.spoofer-status-row .status-label {
    color: var(--text-secondary);
}

.summary-value {
    color: var(--text-primary);
}

.jammer-popup-footer,
.spoofer-popup-footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-secondary);
}

.footer-note {
    color: var(--text-secondary);
}

.close-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    color: var(--text-primary);
}

.close-btn:hover {
    background: var(--bg-primary);
    border-color: var(--border-primary);
}

.band-name {
    color: var(--text-primary);
}

.close-popup {
    color: var(--text-secondary);
}

.close-popup:hover {
    color: var(--text-primary);
}

/* Light mode specific adjustments */
body.light-mode .region-name {
    color: #00aa55;
}

body.light-mode .node-name {
    color: var(--text-primary);
}

body.light-mode .control-panel h3 {
    color: #00aa55;
}

body.light-mode .leaflet-container {
    background: var(--map-bg);
}

body.light-mode #map {
    background: var(--map-bg);
}

body.light-mode .leaflet-tile-pane {
    filter: brightness(1) contrast(1) saturate(1);
}

body.light-mode .user-name {
    color: #00aa55;
}

/* Light mode toolbar buttons */
body.light-mode .toolbar-btn {
    background: transparent !important;
    color: #777;
}

body.light-mode .toolbar-btn:hover {
    background: rgba(0, 0, 0, 0.06) !important;
    color: var(--text-primary);
}

body.light-mode .login-header h2 {
    color: #00aa55;
}

body.light-mode .sidebar-toggle:hover {
    background: rgba(255, 255, 255, 1);
}

body.light-mode .home-btn:hover {
    background: rgba(255, 255, 255, 1);
}

body.light-mode .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

body.light-mode .node-item:hover {
    background: #f0f0f0;
}

body.light-mode .region-header:hover {
    background: #f0f0f0;
}

/* Light mode sidebar tabs */
body.light-mode .sidebar-tabs {
    background: #f5f5f5;
    border-bottom-color: #ddd;
}

body.light-mode .sidebar-tab {
    color: #666;
}

body.light-mode .sidebar-tab:hover {
    color: #333;
    background: #eee;
}

body.light-mode .sidebar-tab.active {
    color: #00aa55;
    border-bottom-color: #00aa55;
}

/* Light mode zone/asset items */
body.light-mode .zone-item,
body.light-mode .asset-item {
    background: #f8f8f8;
    border-color: #ddd;
}

body.light-mode .zone-item:hover,
body.light-mode .asset-item:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

/* Light mode targets list */
body.light-mode .targets-header {
    background: #f5f5f5;
    border-bottom-color: #ddd;
}

body.light-mode .targets-count-label {
    color: #666;
}

body.light-mode .targets-count-value {
    color: #222;
}

body.light-mode .sort-btn {
    background: #fff;
    border-color: #ddd;
    color: #666;
}

body.light-mode .sort-btn:hover {
    background: #f0f0f0;
    color: #333;
}

body.light-mode .sort-btn.active {
    background: #e6f7ef;
    border-color: #00aa55;
    color: #00aa55;
}

body.light-mode .target-item {
    background: #f8f8f8;
    border-color: #ddd;
}

body.light-mode .target-item.blue-target{
    background: rgba(68, 133, 255, 0.15);
    border-color: rgba(68, 133, 255, 0.4);

}

body.light-mode .target-item.stale {
    opacity: 0.55;
    background: #f0f0f0;
}

body.light-mode .target-item:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

body.light-mode .target-item.selected {
    background: #e6f7ef;
    border-color: #00aa55;
}

body.light-mode .target-name {
    color: #333;
}

body.light-mode .target-details {
    color: #666;
}

body.light-mode .target-time {
    color: #888;
}

body.light-mode .target-proxy {
    color: #888;
}

body.light-mode .target-action-btn {
    background: #f0f0f0;
    border-color: #ccc;
    color: #666;
}

body.light-mode .target-action-btn:hover {
    background: #e0e0e0;
    color: #00aa55;
    border-color: #00aa55;
}

body.light-mode .target-action-btn.unmerge:hover {
    background: #e0e0e0;
    color: #e65100;
    border-color: #e65100;
}

body.light-mode .target-action-btn.pin.active {
    color: #00aa55;
    border-color: #00aa55;
}

body.light-mode .target-item.merge-selected {
    background: rgba(0, 180, 220, 0.1);
    border-color: rgba(0, 180, 220, 0.5);
}

body.light-mode .target-item > .target-checkbox.active {
    color: #0088cc;
    border-color: #0088cc;
    background: rgba(0, 136, 204, 0.1);
}

body.light-mode .target-item.checked {
    background: rgba(0, 136, 204, 0.06);
}

body.light-mode .targets-kebab-btn {
    color: #666;
}

body.light-mode .targets-kebab-btn:hover {
    color: #333;
    background: #e0e0e0;
}

body.light-mode .targets-kebab-btn.done-mode {
    color: #00aa55;
}

body.light-mode .targets-kebab-btn.done-mode:hover {
    color: #fff;
    background: #00aa55;
}

body.light-mode .targets-kebab-menu {
    background: #fff;
    border-color: #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

body.light-mode .kebab-menu-item {
    color: #333;
}

body.light-mode .kebab-menu-item:hover {
    background: #f0f0f0;
}

body.light-mode .kebab-menu-item.kebab-delete-all {
    color: #cc3333;
    border-top: 1px solid #ddd;
}

body.light-mode .kebab-menu-item.kebab-delete-all:hover {
    background: #fff0f0;
    color: #cc0000;
}

body.light-mode .target-item > .target-checkbox {
    border-color: #ccc;
}

body.light-mode .target-item > .target-checkbox:hover {
    border-color: #0088cc;
}

body.light-mode .bulk-action-bar {
    background: #f5f5f5;
    border-bottom-color: #0088cc;
}

body.light-mode .bulk-count {
    color: #0088cc;
}

body.light-mode .bulk-action-btn {
    border-color: #ccc;
    color: #555;
}

body.light-mode .bulk-action-btn:hover {
    background: #e8e8e8;
}

body.light-mode .bulk-action-btn.delete:hover {
    color: #d32f2f;
    border-color: #d32f2f;
}

body.light-mode .bulk-action-btn.merge:hover {
    color: #0088cc;
    border-color: #0088cc;
}

body.light-mode .bulk-action-btn.unmerge:hover {
    color: #e65100;
    border-color: #e65100;
}

body.light-mode .merge-count-name {
    color: #333;
}

body.light-mode .merge-action-bar {
    background: #ffffff;
    border-bottom-color: #00acc1;
}

body.light-mode .merge-dialog-target {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .targets-empty {
    color: #888;
}

body.light-mode .targets-empty small {
    color: #aaa;
}

body.light-mode .zone-type,
body.light-mode .asset-category {
    color: #666;
}

body.light-mode .item-action-btn {
    background: #f0f0f0;
    border-color: #ccc;
    color: #666;
}

body.light-mode .item-action-btn:hover {
    background: #e0e0e0;
    color: #333;
    border-color: #aaa;
}

body.light-mode .item-action-btn.delete:hover {
    background: #ffeeee;
    color: #cc3333;
    border-color: #cc3333;
}

body.light-mode .nodes-empty,
body.light-mode .zones-empty,
body.light-mode .assets-empty {
    color: #999;
}

body.light-mode .control-btn:hover:not(:disabled) {
    background: #f0f0f0;
}

body.light-mode .control-btn.active {
    background: #e8f5e9;
    border-color: #00aa55;
    color: #00aa55;
}

body.light-mode .control-btn.active:hover:not(:disabled) {
    background: #d0f0d8;
    border-color: #008844;
    color: #008844;
    box-shadow: 0 0 10px rgba(0, 170, 85, 0.2);
}

body.light-mode .control-btn.danger {
    background: #fff5f5;
    border-color: #cc3333;
    color: #cc3333;
}

body.light-mode .control-btn.danger:hover:not(:disabled) {
    background: #ffe8e8;
    border-color: #aa2222;
    color: #aa2222;
    box-shadow: 0 0 10px rgba(204, 51, 51, 0.2);
}

body.light-mode .camera-btn-main {
    background: #e8f5e9;
    border-color: #00aa55;
    color: #00aa55;
}

body.light-mode .camera-btn-main:hover {
    background: #d0f0d8;
    border-color: #008844;
    color: #008844;
}

body.light-mode #spoofer-status-item:hover,
body.light-mode #jammer-status-item[style*="cursor: pointer"]:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
}

/* Fix close buttons in light mode */
body.light-mode .close-panel:hover {
    color: #333;
}

body.light-mode .camera-top-bar .close-popup:hover {
    color: #333;
}

body.light-mode .dropdown-item:hover {
    background: #f0f0f0;
}

body.light-mode .layer-option:hover {
    background: #f0f0f0;
}

body.light-mode .clear-tracks-btn {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
    color: #dc2626;
}

body.light-mode .clear-tracks-btn:hover {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.5);
}

body.light-mode .context-menu-item:hover {
    background: #f0f0f0;
}

/* Fix selected node in light mode */
body.light-mode .node-item.selected {
    background: #e8f5e9;
    border-color: #00aa55;
}

/* Fix custom dropdowns in light mode */
body.light-mode .dropdown-toggle {
    background: #ffffff;
    border-color: #c0c0c0;
    color: #2a2a2a;
}

body.light-mode .dropdown-toggle:hover {
    border-color: #999;
    background: #f9f9f9;
}

body.light-mode .dropdown-toggle.active {
    border-color: #00aa55;
    background: #ffffff;
}

body.light-mode .dropdown-arrow {
    color: #666;
}

body.light-mode .dropdown-toggle.active .dropdown-arrow {
    color: #00aa55;
}

body.light-mode .dropdown-menu {
    background: #ffffff;
    border-color: #00aa55;
}

body.light-mode .dropdown-item {
    color: #2a2a2a;
    border-bottom-color: #e8e8e8;
}

body.light-mode .dropdown-item:hover {
    background: #f0f0f0;
}

body.light-mode .dropdown-item.selected {
    background: #e8f5e9;
    color: #00aa55;
}

/* Improve text contrast for better readability */
body.light-mode .node-details {
    color: #555;
}

body.light-mode .stat-label,
body.light-mode .footer-label {
    color: #555;
}

body.light-mode .login-header p {
    color: #666;
}

body.light-mode .form-group label {
    color: #555;
}

body.light-mode .node-checkbox-group {
    background: #ffffff;
    border-color: #c0c0c0;
}

body.light-mode .node-checkbox-label:hover {
    background: #f0f0f0;
}

body.light-mode .node-checkbox-label input[type="checkbox"] {
    accent-color: #00aa55;
}

body.light-mode .node-checkbox-label span {
    color: #2a2a2a;
}

body.light-mode .link-btn {
    color: #00aa55;
}

body.light-mode .link-btn:hover {
    color: #008844;
}

/* Fix scrollbars in light mode */
body.light-mode .node-list::-webkit-scrollbar-track,
body.light-mode .dropdown-menu::-webkit-scrollbar-track {
    background: #f5f5f5;
}

body.light-mode .node-list::-webkit-scrollbar-thumb,
body.light-mode .dropdown-menu::-webkit-scrollbar-thumb {
    background: #c0c0c0;
}

body.light-mode .node-list::-webkit-scrollbar-thumb:hover,
body.light-mode .dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Update icon based on theme - only for theme toggle, not help button */
body.light-mode #theme-toggle i:before,
body.light-mode #login-theme-toggle i:before {
    content: "\f0eb"; /* fa-lightbulb */
}

/* Logo switching for light/dark mode */
.logo-dark {
    display: inline-block;
}

.logo-light {
    display: none;
}

body.light-mode .logo-dark {
    display: none;
}

body.light-mode .logo-light {
    display: inline-block;
}

/* Style for login screen theme toggle */
.login-theme-toggle {
    font-size: 18px;
}

body.light-mode .login-theme-toggle {
    color: #666;
}

body.light-mode .login-theme-toggle:hover {
    color: #333;
}
/* Motion Detection Animation */
@keyframes motionPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(255, 165, 0, 0); }
}

.node-item.motion-detected {
    animation: motionPulse 1s ease-out 3;
    border-left-color: #ff9900 !important;
    background: rgba(255, 153, 0, 0.1) !important;
}

body.light-mode .node-item.motion-detected {
    background: rgba(255, 153, 0, 0.15) !important;
}

/* Motion Detection on Map Markers */
.node-marker.motion-pulse .node-icon {
    animation: markerMotionPulse 1s ease-out 3;
}

@keyframes markerMotionPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.7), 0 0 10px rgba(255, 165, 0, 0.5);
        border-color: #fff !important;
    }
    50% {
        box-shadow: 0 0 0 15px rgba(255, 165, 0, 0), 0 0 20px rgba(255, 165, 0, 0.8);
        border-color: #ff9900 !important;
    }
}

/* ============== Sentrycs Styles ============== */

/* Sentrycs node in sidebar */
.sentrycs-node .node-name i {
    margin-right: 6px;
}

/* Sentrycs uses same styling as Ring nodes */

.sentrycs-node.detection-active {
    border-left-color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

.sentrycs-node .event-count {
    font-size: 11px;
    font-weight: 600;
}

.sentrycs-node .mode-detection {
    background: #ff4444;
    border-radius: 10px;
    padding: 2px 8px;
}

/* Sentrycs region uses default styling */

/* Sentrycs Control Panel */
/* Title inherits green from .control-panel h3, close button uses .close-panel styling */

.sentrycs-events-list {
    /* Each event item is ~100px, fit 4 items fully visible before scrolling */
    max-height: 412px;
    overflow-y: auto;
    min-width: 310px;
}

.sentrycs-sensors-list {
    max-height: 200px;
    overflow-y: auto;
}

.sentrycs-event-item {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
    min-width: 290px;
}

.sentrycs-event-item.blue-target {
    background: rgba(68, 133, 255, 0.1);
    border-color: rgba(68, 133, 255, 0.4);
}

.sentrycs-event-item:last-child {
    margin-bottom: 0;
}

.sentrycs-event-item .event-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.sentrycs-event-item .event-type {
    font-weight: 600;
    color: #fff;
}

.sentrycs-event-item .event-status {
    font-size: 11px;
    font-weight: 600;
}

.sentrycs-event-item .event-details {
    font-size: 11px;
    color: #888;
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
}

.sentrycs-event-item .event-details span {
    white-space: nowrap;
}

.sentrycs-event-item .event-details .event-location {
    min-width: 150px;
}

.sentrycs-event-item .event-details .event-altitude {
    min-width: 55px;
}

.sentrycs-event-item .event-sensors {
    font-size: 10px;
    color: #8ab4f8;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sentrycs-event-item .event-sensors i {
    margin-right: 4px;
    font-size: 9px;
}

.sentrycs-event-item .event-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding-bottom: 10px;
}

.sentrycs-event-item .event-actions-left {
    display: flex;
    gap: 6px;
}

.sentrycs-event-item .event-btn {
    background: rgba(60, 60, 60, 0.8);
    border: 1px solid #444;
    color: #ccc;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.sentrycs-event-item .event-btn:hover {
    background: rgba(80, 80, 80, 0.8);
    color: #fff;
}

.sentrycs-event-item .ring-btn {
    background: rgba(33, 150, 243, 0.2);
    border-color: #2196F3;
    color: #2196F3;
}

.sentrycs-event-item .ring-btn:hover {
    background: rgba(33, 150, 243, 0.4);
}

.sentrycs-event-item .rc-home-toggle-btn {
    background: rgba(255, 152, 0, 0.2);
    border-color: #ff9800;
    color: #ff9800;
}

.sentrycs-event-item .rc-home-toggle-btn:hover {
    background: rgba(255, 152, 0, 0.4);
}

.sentrycs-event-item .rc-home-toggle-btn.active {
    background: rgba(255, 152, 0, 0.6);
    color: #fff;
}

.sentrycs-event-item .takeover-btn {
    background: rgba(156, 39, 176, 0.2);
    border-color: #9c27b0;
    color: #9c27b0;
}

.sentrycs-event-item .takeover-btn:hover {
    background: rgba(156, 39, 176, 0.4);
}

.sentrycs-event-item .release-btn {
    background: rgba(255, 68, 68, 0.2);
    border-color: #ff4444;
    color: #ff4444;
}

.sentrycs-event-item .release-btn:hover {
    background: rgba(255, 68, 68, 0.4);
}

/* Stale drone detection styling */
.sentrycs-event-item.stale-detection {
    opacity: 0.7;
    border-color: #555;
    background: rgba(40, 40, 40, 0.6);
}

.sentrycs-event-item.stale-detection .event-type {
    color: #999;
}

.sentrycs-event-item .event-last-seen {
    margin-right: 10px;
}

.sentrycs-event-item .stale-actions {
    opacity: 0.6;
}

/* ThirdEye control panel */
.control-panel.thirdeye-panel {
    width: 350px;
    min-width: 350px;
    max-width: 350px;
    max-height: calc(100vh - 40px);
    overflow: hidden;
    overflow-y: auto;
}

/* ThirdEye detection items */
.sentrycs-event-item.thirdeye-selected {
    border-color: #9b59b6;
    background: rgba(155, 89, 182, 0.15);
}

.sentrycs-event-item .thirdeye-crop-btn {
    background: rgba(155, 89, 182, 0.2);
    border-color: #9b59b6;
    color: #9b59b6;
}

.sentrycs-event-item .thirdeye-crop-btn:hover {
    background: rgba(155, 89, 182, 0.4);
}

.sentrycs-event-item .thirdeye-crop-btn.active {
    background: rgba(155, 89, 182, 0.5);
    color: #fff;
}

/* Detection item selected from target list - matches .target-item.selected */
.sentrycs-event-item.detection-selected {
    background: #002233;
    border-color: #00cc66;
}

body.light-mode .sentrycs-event-item.detection-selected {
    background: #e6f7ef;
    border-color: #00aa55;
}

/* ThirdEye History Modal */
.thirdeye-history-modal {
    max-width: 480px;
    width: 95vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.thirdeye-history-filters {
    display: flex;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color, #444);
    background: var(--bg-secondary, #2a2a2a);
    flex-shrink: 0;
}

.thirdeye-history-filters label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary, #aaa);
}

.thirdeye-history-filters .custom-dropdown {
    min-width: 90px;
}

.thirdeye-history-filters .dropdown-toggle {
    padding: 4px 8px;
    font-size: 12px;
}

.thirdeye-history-filters .dropdown-menu {
    min-width: 90px;
    z-index: 10002;
}

.thirdeye-history-filters .dropdown-item {
    padding: 4px 10px;
    font-size: 12px;
}

.thirdeye-history-body {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    padding: 0 !important;
}

.thirdeye-history-list {
    padding: 8px;
}

.thirdeye-history-entry {
    background: var(--bg-secondary, #2a2a2a);
    border: 1px solid var(--border-color, #444);
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 8px;
}

.thirdeye-history-entry-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.thirdeye-history-target {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary, #eee);
}

.thirdeye-history-time {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-secondary, #999);
}

.thirdeye-history-entry-details {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--text-secondary, #aaa);
    margin-bottom: 8px;
}

.thirdeye-history-entry-details i {
    margin-right: 3px;
    opacity: 0.7;
}

.thirdeye-history-crops {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.thirdeye-history-crop-slot {
    flex: 1;
    min-width: 100px;
    text-align: center;
}

.thirdeye-history-crop-img {
    max-width: 100%;
    max-height: 120px;
    border-radius: 4px;
    border: 1px solid var(--border-color, #444);
    cursor: pointer;
    object-fit: contain;
}

/* Controp SIGHT control panel */
.control-panel.controp-panel {
    width: 350px;
    min-width: 350px;
    max-width: 350px;
    max-height: calc(100vh - 40px);
    overflow: hidden;
    overflow-y: auto;
}

/* Controp video preview (inside control panel) */
.controp-video-section {
    padding: 0 !important;
}

.controp-video-preview {
    display: flex;
    gap: 4px;
    cursor: pointer;
    position: relative;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-primary);
}

.controp-video-preview:hover {
    border-color: var(--accent-color, #4a9eff);
}

.controp-video-thumb {
    flex: 1;
    position: relative;
    background: #111;
    aspect-ratio: 16/9;
    overflow: hidden;
    min-height: 90px;
}

.controp-video-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.controp-video-label {
    position: absolute;
    top: 4px;
    left: 6px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: rgba(0,0,0,0.55);
    padding: 1px 5px;
    border-radius: 3px;
    z-index: 2;
    pointer-events: none;
    letter-spacing: 0.5px;
}

.controp-video-thumb-single {
    flex: none;
    width: 100%;
}

.controp-lrf-btn {
    position: relative;
}

.controp-lrf-range {
    font-weight: 700;
    color: #4fc3f7;
}

.controp-cam-toggle-group {
    display: inline-flex;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.controp-cam-toggle-btn {
    padding: 6px 12px;
    font-size: 12px;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.controp-cam-toggle-btn:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.1);
}

.controp-cam-toggle-btn.active {
    background: var(--accent-color, #4a9eff);
    color: #fff;
}

.controp-cam-toggle-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.controp-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    z-index: 1;
}

.controp-video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    gap: 4px;
}

.controp-video-placeholder i {
    font-size: 18px;
}

.controp-video-placeholder span {
    font-size: 10px;
}

.controp-video-expand-hint {
    position: absolute;
    bottom: 5px;
    right: 6px;
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    pointer-events: none;
    z-index: 3;
}

/* Controp video popup */
.controp-video-fullscreen {
    position: fixed;
    z-index: 980;
    background: #000;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    resize: both;
    min-width: 320px;
    min-height: 200px;
}

.controp-video-fullscreen video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.controp-video-fullscreen .controp-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    color: rgba(255,255,255,0.7);
    font-size: 24px;
    z-index: 1;
}

.controp-video-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s;
}

.controp-video-fullscreen:hover .controp-video-controls {
    opacity: 1;
}

.controp-video-tab {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    letter-spacing: 0.5px;
}

.controp-video-tab:hover {
    color: rgba(255,255,255,0.7);
}

.controp-video-tab.active {
    color: rgba(255,255,255,0.9);
    border-bottom-color: rgba(255,255,255,0.8);
}

.controp-video-tab:disabled {
    opacity: 0.3;
    cursor: wait;
}

.controp-video-close-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 10;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.controp-video-fullscreen:hover .controp-video-close-btn {
    opacity: 0.7;
}

.controp-video-close-btn:hover {
    opacity: 1 !important;
}

.controp-video-legend-btn {
    position: absolute;
    top: 6px;
    right: 40px;
    z-index: 10;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.5);
    color: #f5c842;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.controp-video-fullscreen:hover .controp-video-legend-btn {
    opacity: 0.7;
}

.controp-video-legend-btn:hover {
    opacity: 1 !important;
}

.controp-video-track-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ff3333;
    background: rgba(180, 0, 0, 0.6);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.controp-video-track-btn:hover {
    background: rgba(220, 0, 0, 0.8);
    transform: scale(1.1);
}

.controp-video-track-btn.tracking {
    background: rgba(255, 0, 0, 0.9);
    border-color: #fff;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.6);
    animation: pulse-track 1.5s infinite;
}

@keyframes pulse-track {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

.controp-legend-popup {
    position: fixed;
    top: 80px;
    left: 20px;
    z-index: 10000;
    background: #1e1e1e;
    border: 1px solid #444;
    border-radius: 8px;
    width: 460px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.controp-legend-dragbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #333;
    cursor: grab;
    user-select: none;
}

.controp-legend-dragbar:active {
    cursor: grabbing;
}

.controp-legend-dragbar h3 {
    margin: 0;
    font-size: 15px;
    color: #fff;
}

.controp-legend-close {
    background: transparent;
    border: none;
    color: #888;
    font-size: 16px;
    cursor: pointer;
}

.controp-legend-close:hover {
    color: #fff;
}

.controp-legend-body {
    padding: 12px 16px;
    display: flex;
    gap: 24px;
}

.controp-legend-section {
    flex: 1;
}

.controp-legend-section h4 {
    margin: 0 0 8px;
    font-size: 13px;
    color: #00e5ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.controp-legend-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.controp-legend-table th {
    text-align: left;
    padding: 4px 6px;
    color: #888;
    border-bottom: 1px solid #333;
    font-weight: normal;
}

.controp-legend-table td {
    padding: 4px 6px;
    color: #ccc;
    border-bottom: 1px solid #222;
}

.controp-legend-table tr:last-child td {
    border-bottom: none;
}

.controp-legend-table td:first-child {
    color: #f5c842;
    font-weight: 600;
    white-space: nowrap;
}

.controp-video-dragbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 28px;
    height: 24px;
    z-index: 10;
    cursor: move;
}

.controp-tracker-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    cursor: crosshair;
    box-sizing: border-box;
    border: 3px solid transparent;
    transition: border-color 0.2s ease;
}

.controp-tracker-canvas.controp-joystick-active {
    border-color: #ffd700;
}

.controp-ptz-layout {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.controp-dpad {
    display: grid;
    grid-template-columns: repeat(3, 36px);
    grid-template-rows: repeat(3, 36px);
    gap: 2px;
}

.controp-ptz-col {
    display: grid;
    grid-template-rows: repeat(3, 36px);
    gap: 2px;
}

.controp-ptz-layout .controp-ptz-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    max-width: 36px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex: none;
    box-sizing: border-box;
}

.controp-ptz-col-wide {
    flex: 1;
}

.controp-ptz-btn-wide {
    width: 100% !important;
    max-width: none !important;
    min-width: 36px !important;
    padding: 0 8px !important;
    gap: 5px;
    font-size: 12px;
    white-space: nowrap;
}

.controp-diag-btn {
    opacity: 0.6;
    font-size: 11px;
}

.controp-diag-btn:hover:not(:disabled) {
    opacity: 1;
}

.controp-stop-btn {
    background: #8b2020 !important;
    border-color: #a03030 !important;
    color: #fff !important;
}

.controp-stop-btn:hover:not(:disabled) {
    background: #a03030 !important;
    border-color: #c04040 !important;
}

/* Controp SIGHT status popup */
.controp-status-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-overlay);
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    min-width: 320px;
    max-width: 400px;
    z-index: 3000;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.controp-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-secondary);
    background: var(--bg-elevated);
    border-radius: 8px 8px 0 0;
}

.controp-popup-header h4 {
    margin: 0;
    color: var(--text-accent);
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.controp-popup-header h4 i {
    color: var(--text-accent);
}

.controp-popup-header .close-panel {
    color: var(--text-secondary);
}

.controp-popup-content {
    padding: 15px 20px;
    background: var(--bg-overlay);
}

.controp-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--bg-elevated);
    border-radius: 5px;
    border: 1px solid var(--border-primary);
    margin-bottom: 6px;
}

.controp-status-row:last-child {
    margin-bottom: 0;
}

.controp-status-row .status-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.controp-status-row .status-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.controp-status-clickable {
    cursor: pointer;
    transition: all 0.2s;
}

.controp-status-clickable:hover {
    border-color: var(--text-accent);
    background: var(--bg-tertiary);
}

/* Controp modal overlay (Az/El, Move To) */
.controp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3500;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.controp-modal {
    background: var(--bg-overlay);
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    min-width: 320px;
    max-width: 400px;
    width: 90vw;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.controp-modal-field {
    margin-bottom: 14px;
}

.controp-modal-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.controp-modal-field input {
    width: 100%;
    padding: 9px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'SF Mono', Consolas, monospace;
    outline: none;
    transition: border-color 0.2s;
}

.controp-modal-field input:focus {
    border-color: var(--text-accent);
}

.controp-modal-actions {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.controp-modal-actions .control-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 8px 16px;
}

.controp-modal-info {
    font-size: 12px;
    color: var(--text-accent);
    padding: 8px 12px;
    background: var(--bg-elevated);
    border-radius: 5px;
    border: 1px solid var(--border-primary);
    min-height: 32px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.controp-modal-info:empty {
    display: none;
}

.controp-modal-hint {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    opacity: 0.7;
}

.controp-calibration-row {
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
    border-color: var(--border-secondary);
}

.controp-calibration-row:hover {
    border-color: var(--text-accent);
    background: var(--bg-tertiary);
}

.controp-modal-select {
    width: 100%;
    padding: 9px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    cursor: pointer;
}

.controp-modal-select:focus {
    border-color: var(--text-accent);
}

/* Video popup joystick button separator */
.controp-video-controls-sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 4px;
    align-self: center;
}

/* ContROP light-mode overrides */
body.light-mode .controp-video-fullscreen {
    background: #e8e8e8;
    border-color: rgba(0,0,0,0.15);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

body.light-mode .controp-video-fullscreen .controp-video-overlay {
    background: rgba(240,240,240,0.8);
    color: rgba(0,0,0,0.6);
}

body.light-mode .controp-video-tab {
    color: rgba(0,0,0,0.4);
}

body.light-mode .controp-video-tab:hover {
    color: rgba(0,0,0,0.7);
}

body.light-mode .controp-video-tab.active {
    color: rgba(0,0,0,0.9);
    border-bottom-color: rgba(0,0,0,0.7);
}

body.light-mode .controp-video-close-btn {
    background: rgba(255,255,255,0.7);
    color: #333;
}

body.light-mode .controp-video-legend-btn {
    background: rgba(255,255,255,0.7);
    color: #b8860b;
}

body.light-mode .controp-video-controls-sep {
    background: rgba(0,0,0,0.15);
}

body.light-mode .controp-legend-popup {
    background: #ffffff;
    border-color: #d0d0d0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

body.light-mode .controp-legend-dragbar {
    border-bottom-color: #d0d0d0;
}

body.light-mode .controp-legend-dragbar h3 {
    color: #2a2a2a;
}

body.light-mode .controp-legend-close {
    color: #999;
}

body.light-mode .controp-legend-close:hover {
    color: #333;
}

body.light-mode .controp-legend-section h4 {
    color: #0097a7;
}

body.light-mode .controp-legend-table th {
    color: #666;
    border-bottom-color: #d0d0d0;
}

body.light-mode .controp-legend-table td {
    color: #333;
    border-bottom-color: #e0e0e0;
}

body.light-mode .controp-legend-table td:first-child {
    color: #b8860b;
}

/* Sensor sub-items in sidebar tree (inside .node-item) */
.sensor-sub-list {
    width: 100%;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #333;
}

.sensor-sub-item {
    display: flex;
    align-items: center;
    padding: 4px 0 4px 24px;
    cursor: pointer;
    font-size: 12px;
    color: #aaa;
    transition: background 0.2s;
    border-radius: 3px;
}

.sensor-sub-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.sensor-sub-item .node-status {
    width: 8px;
    height: 8px;
    margin-right: 8px;
}

.sensor-sub-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sentrycs-sensor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 6px;
}

.sentrycs-sensor-item .sensor-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.sentrycs-sensor-item .sensor-name {
    color: #fff;
    font-size: 13px;
}

.sentrycs-sensor-item .sensor-health {
    font-size: 11px;
}

.sentrycs-sensor-item .sensor-mitigating {
    font-size: 10px;
    color: #9c27b0;
    font-weight: 600;
}

.sentrycs-sensor-item .sensor-mitigating i {
    margin-right: 2px;
}

.sentrycs-event-item .event-btn.takeover-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.sensor-toggle {
    background: rgba(60, 60, 60, 0.8);
    border: 1px solid #444;
    color: #888;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.sensor-toggle:hover {
    color: #fff;
}

.sensor-toggle.active {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
    color: #4CAF50;
}

.no-events,
.no-sensors,
.no-tracks {
    color: #666;
    font-size: 12px;
    text-align: center;
    padding: 20px;
}

/* Ring Selection Popup */
.ring-selection-popup {
    position: fixed;
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    min-width: 340px;
    max-height: 400px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ring-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #333;
    background: rgba(30, 30, 30, 0.9);
    flex-shrink: 0;
}

.ring-popup-header h4 {
    margin: 0;
    color: #fff;
    font-size: 14px;
}

.ring-popup-target {
    padding: 10px 16px;
    background: rgba(40, 40, 40, 0.5);
    border-bottom: 1px solid #333;
    font-size: 12px;
    color: #888;
}

.ring-popup-target span {
    display: block;
}

.ring-list {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.ring-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #2a2a2a;
}

.ring-option:hover {
    background: rgba(50, 50, 50, 0.5);
}

.ring-option-info {
    display: flex;
    flex-direction: column;
}

.ring-option .ring-name {
    color: #fff;
    font-size: 13px;
}

.ring-option .ring-distance {
    color: #888;
    font-size: 11px;
}

.ring-activate-buttons {
    display: flex;
    gap: 6px;
}

.ring-activate-btn {
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.ring-activate-btn.hold-btn {
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid #2196F3;
    color: #2196F3;
}

.ring-activate-btn.hold-btn:hover {
    background: rgba(33, 150, 243, 0.4);
}

.ring-activate-btn.pushback-btn {
    background: rgba(255, 152, 0, 0.2);
    border: 1px solid #ff9800;
    color: #ff9800;
}

.ring-activate-btn.pushback-btn:hover {
    background: rgba(255, 152, 0, 0.4);
}

.ring-activate-btn.static-btn {
    background: rgba(156, 39, 176, 0.2);
    border: 1px solid #9c27b0;
    color: #9c27b0;
}

.ring-activate-btn.static-btn:hover {
    background: rgba(156, 39, 176, 0.4);
}

/* Preset-based activation UI */
.ring-preset-activation {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Custom dropdown in popup context */
.ring-preset-activation .popup-preset-dropdown {
    flex: 1;
    min-width: 120px;
    position: relative;
}

.ring-preset-activation .dropdown-toggle {
    padding: 6px 10px;
    font-size: 12px;
    min-height: auto;
    background: rgba(30, 30, 30, 0.9);
    cursor: pointer;
}

.ring-preset-activation .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10001;
    background: rgba(30, 30, 30, 0.98);
    border: 1px solid #444;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Floating dropdown menu appended to body - matches standard dropdown styles */
.floating-dropdown-menu {
    position: fixed;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10002;
    background: #2a2a2a;
    border: 1px solid #00cc66;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.floating-dropdown-menu .dropdown-item {
    padding: 8px 10px;
    font-size: 12px;
    color: #e0e0e0;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #333;
}

.floating-dropdown-menu .dropdown-item:last-child {
    border-bottom: none;
}

.floating-dropdown-menu .dropdown-item:hover {
    background: #444;
}

.floating-dropdown-menu .dropdown-item.selected {
    background: #003344;
    color: #00cc66;
}

/* Light mode styles for floating dropdown */
body.light-mode .floating-dropdown-menu {
    background: #ffffff;
    border-color: #00aa55;
}

body.light-mode .floating-dropdown-menu .dropdown-item {
    color: #2a2a2a;
    border-bottom-color: #e8e8e8;
}

body.light-mode .floating-dropdown-menu .dropdown-item:hover {
    background: #f0f0f0;
}

body.light-mode .floating-dropdown-menu .dropdown-item.selected {
    background: #e8f5e9;
    color: #00aa55;
}

.ring-preset-activation .dropdown-item {
    padding: 8px 10px;
    font-size: 12px;
}

.ring-activate-btn.activate-preset-btn {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    color: #4caf50;
    white-space: nowrap;
    flex-shrink: 0;
}

.ring-activate-btn.activate-preset-btn:hover {
    background: rgba(76, 175, 80, 0.4);
}

/* Sentrycs Map Markers */
.sentrycs-drone-marker {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;  /* Center content in larger clickable area */
    cursor: pointer;
}

.sentrycs-drone-marker .drone-icon {
    position: relative;
    width: 24px;
    height: 24px;
    background: rgba(255, 68, 68, 0.9);
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

@keyframes dronePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Target color classes */
.target-color-red {
    color: red;
}

.target-color-blue {
    color: #4485ff;
}

.drone-icon.target-color-blue,
.manual-target-icon.target-color-blue {
    background: rgba(68, 133, 255, 0.9);
    box-shadow: 0 2px 8px rgba(68, 133, 255, 0.5);
}

.drone-icon.target-color-blue .drone-direction i {
    color: #4485ff;
}

@keyframes target-flash-yellow {
    0%, 100% { background: yellow; box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5); }
    50% { background: rgba(255, 215, 0, 0.3); box-shadow: 0 2px 4px rgba(255, 215, 0, 0.2); }
}

.drone-icon.target-flashing-yellow,
.manual-target-icon.target-flashing-yellow {
    background: yellow;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
    animation: target-flash-yellow 1s ease-in-out infinite;
}

.drone-icon.target-flashing-yellow .drone-direction i {
    color: #ffd700;
}

.target-label-black {
    color: #000;
}

.sentrycs-drone-marker .drone-direction {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    pointer-events: none;
}

.sentrycs-drone-marker .drone-direction i {
    position: absolute;
    top: -4px;
    left: 50%;
    margin-left: -8px;
    color: #ff4444;
    font-size: 16px;
    text-shadow: 0 0 4px #fff, 0 0 8px #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.sentrycs-drone-marker .drone-label {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8), -1px -1px 2px rgba(0,0,0,0.8);
    white-space: nowrap;
    text-align: center;
}

/* Tractor Beam Animation */
.tractor-beam {
    animation: tractorBeamPulse 1s ease-in-out infinite;
    filter: drop-shadow(0 0 8px #00d4ff) drop-shadow(0 0 16px rgba(0, 212, 255, 0.5));
    stroke-dasharray: 10, 5;
    stroke-dashoffset: 0;
    animation: tractorBeamFlow 0.5s linear infinite, tractorBeamPulse 1.5s ease-in-out infinite;
}

@keyframes tractorBeamFlow {
    0% { stroke-dashoffset: 15; }
    100% { stroke-dashoffset: 0; }
}

@keyframes tractorBeamPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.tractor-beam-source {
    animation: sourceGlow 1.2s ease-in-out infinite;
}

@keyframes sourceGlow {
    0%, 100% {
        opacity: 0.6;
        filter: drop-shadow(0 0 8px #00d4ff);
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 0 16px #00d4ff) drop-shadow(0 0 24px #00d4ff);
    }
}

.tractor-beam-lock {
    animation: lockOnPulse 0.8s ease-in-out infinite;
}

@keyframes lockOnPulse {
    0%, 100% {
        opacity: 0.8;
        stroke-width: 3;
    }
    50% {
        opacity: 1;
        stroke-width: 5;
    }
}

.traveling-pulse {
    filter: drop-shadow(0 0 6px #00d4ff) drop-shadow(0 0 12px #00d4ff);
}

/* Centered popup for marker click */
.ring-selection-popup.marker-popup {
    position: fixed;
    z-index: 10000;
    max-height: none;
    overflow: visible;
}

/* Drone info section in popup */
.drone-info-section {
    padding: 12px 16px;
    border-bottom: 1px solid #333;
    background: rgba(40, 40, 40, 0.5);
    flex-shrink: 0;
}

.drone-info-name {
    font-size: 16px;
    font-weight: 600;
    color: #ff4444;
    margin-bottom: 10px;
}

.drone-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.drone-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.drone-info-label {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.drone-info-value {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.ring-section-header {
    padding: 10px 16px 6px;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    border-bottom: 1px solid #333;
    background: rgba(30, 30, 30, 0.5);
    flex-shrink: 0;
}

.no-rings-message {
    padding: 16px;
    text-align: center;
    color: #888;
    font-size: 13px;
    flex-shrink: 0;
}

.no-rings-message i {
    margin-right: 6px;
}

/* Light mode */
body.light-mode .drone-info-section {
    background: rgba(240, 240, 240, 0.9);
    border-color: #ddd;
}

body.light-mode .drone-info-name {
    color: #d32f2f;
}

body.light-mode .drone-info-item {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .drone-info-label {
    color: #666;
}

body.light-mode .drone-info-value {
    color: #333;
}

body.light-mode .ring-section-header {
    background: rgba(245, 245, 245, 0.9);
    border-color: #ddd;
    color: #666;
}

body.light-mode .no-rings-message {
    color: #666;
}

.sentrycs-operator-marker .operator-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 152, 0, 0.9);
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.5);
}

.sentrycs-home-marker .home-icon {
    width: 20px;
    height: 20px;
    background: rgba(76, 175, 80, 0.9);
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.5);
}

.drone-popup {
    min-width: 150px;
}

.drone-popup .popup-header {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
}

.drone-popup .popup-status {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.drone-popup .popup-coords {
    font-size: 11px;
    color: #888;
    font-family: monospace;
}

/* Light mode Sentrycs adjustments */
body.light-mode .sentrycs-event-item,
body.light-mode .sentrycs-sensor-item {
    background: rgba(240, 240, 240, 0.9);
    border-color: #ddd;
}

body.light-mode .sentrycs-event-item.blue-target {
    background: rgba(68, 133, 255, 0.15);
    border-color: rgba(68, 133, 255, 0.4);
}

body.light-mode .sentrycs-event-item .event-type,
body.light-mode .sentrycs-sensor-item .sensor-name {
    color: #333;
}

body.light-mode .sentrycs-event-item .event-sensors {
    color: #1a73e8;
}

body.light-mode .sensor-sub-list {
    border-top-color: #ddd;
}

body.light-mode .sensor-sub-item {
    color: #666;
}

body.light-mode .sensor-sub-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

body.light-mode .ring-selection-popup {
    background: rgba(255, 255, 255, 0.98);
    border-color: #ddd;
}

body.light-mode .ring-popup-header {
    background: rgba(245, 245, 245, 0.9);
    border-color: #ddd;
}

body.light-mode .ring-popup-header h4,
body.light-mode .ring-option .ring-name {
    color: #333;
}

body.light-mode .ring-option {
    border-color: #eee;
}

body.light-mode .ring-option:hover {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .ring-popup-target {
    background: rgba(240, 240, 240, 0.9);
    border-color: #ddd;
    color: #555;
}

/* ============== Radar Track Markers ============== */
.radar-track-marker {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.radar-track-marker .radar-track-icon {
    position: relative;
    width: 28px;
    height: 28px;
    background: rgba(33, 150, 243, 0.9);
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.5);
}

.radar-track-marker .radar-track-icon i {
    color: #fff;
}

.radar-track-marker .track-direction {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    margin-left: -22px;
    pointer-events: none;
}

.radar-track-marker .track-direction i {
    position: absolute;
    top: -6px;
    left: 50%;
    margin-left: -8px;
    color: #2196F3;
    font-size: 14px;
    text-shadow: 0 0 4px #fff, 0 0 8px #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.radar-track-marker .radar-track-label {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8), -1px -1px 2px rgba(0,0,0,0.8);
    white-space: nowrap;
    text-align: center;
}

/* Radar Track Popup */
.radar-track-popup {
    font-size: 12px;
}

.radar-track-popup .popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 8px;
}

.radar-track-popup .track-classification {
    background: rgba(33, 150, 243, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    text-transform: uppercase;
}

.radar-track-popup .popup-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.radar-track-popup .popup-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.radar-track-popup .popup-row .label {
    color: #aaa;
}

.radar-track-popup .popup-row .value {
    font-weight: 500;
}

/* Radar UI Styles */
.radar-mode-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.radar-mode-btn {
    flex: 1;
    min-width: 80px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ccc;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.radar-mode-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.radar-mode-btn.active {
    background: rgba(33, 150, 243, 0.3);
    border-color: #2196F3;
    color: #2196F3;
}

.radar-mode-btn i {
    font-size: 16px;
}

/* Radar Tracks List */
.radar-tracks-list {
    max-height: 300px;
    overflow-y: auto;
    min-width: 310px;
}

/* Radar track items - same styling as sentrycs-event-item */
.radar-track-item {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
    min-width: 290px;
}

.radar-track-item:last-child {
    margin-bottom: 0;
}

.radar-track-item .event-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.radar-track-item .event-type {
    font-weight: 600;
    color: #fff;
}

.radar-track-item .event-status {
    font-size: 11px;
    font-weight: 600;
}

.radar-track-item .event-details {
    font-size: 11px;
    color: #888;
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
}

.radar-track-item .event-details span {
    white-space: nowrap;
}

.radar-track-item .event-details .event-location {
    min-width: 150px;
}

.radar-track-item .event-details .event-altitude,
.radar-track-item .event-details .event-speed,
.radar-track-item .event-details .event-heading {
    min-width: 55px;
}

.radar-track-item .event-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.radar-track-item .event-actions-left {
    display: flex;
    gap: 6px;
}

.radar-track-item .event-btn {
    background: rgba(60, 60, 60, 0.8);
    border: 1px solid #444;
    color: #ccc;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
}

.radar-track-item .event-btn:hover {
    background: rgba(80, 80, 80, 0.8);
    color: #fff;
}

.radar-track-item .ring-btn {
    background: rgba(33, 150, 243, 0.2);
    border-color: #2196F3;
    color: #2196F3;
}

.radar-track-item .ring-btn:hover {
    background: rgba(33, 150, 243, 0.4);
}


/* Light mode radar styles */
body.light-mode .radar-mode-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #666;
}

body.light-mode .radar-mode-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

body.light-mode .radar-mode-btn.active {
    background: rgba(33, 150, 243, 0.15);
    color: #1976D2;
}

body.light-mode .radar-track-item {
    background: rgba(240, 240, 240, 0.9);
    border-color: #ddd;
}

body.light-mode .radar-track-item .event-type {
    color: #333;
}

body.light-mode .radar-track-item .event-details {
    color: #666;
}

body.light-mode .radar-track-popup .popup-row .label {
    color: #666;
}

/* Radar Map Popup - use same styling as control panel */
.radar-track-map-popup .leaflet-popup-content-wrapper {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 8px;
    padding: 0;
}

.radar-track-map-popup .leaflet-popup-content {
    margin: 0;
}

.radar-track-map-popup .leaflet-popup-tip {
    background: rgba(30, 30, 30, 0.95);
}

.radar-track-map-popup .radar-track-item {
    margin: 0;
    border: none;
    background: transparent;
}

body.light-mode .radar-track-map-popup .leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.98);
}

body.light-mode .radar-track-map-popup .leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.98);
}

/* ============== Elta Radar Track Markers ============== */
.elta-radar-track-marker {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.elta-radar-track-marker .track-crosshair {
    position: relative;
    width: 24px;
    height: 24px;
    border: 2px solid #ff6b6b;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.6);
}

.elta-radar-track-marker .track-crosshair::before,
.elta-radar-track-marker .track-crosshair::after {
    content: '';
    position: absolute;
    background: #ff6b6b;
}

.elta-radar-track-marker .track-crosshair::before {
    width: 2px;
    height: 100%;
}

.elta-radar-track-marker .track-crosshair::after {
    width: 100%;
    height: 2px;
}

.elta-radar-track-marker .track-crosshair.aircraft,
.elta-radar-track-marker .track-crosshair.mti\ aircraft {
    border-color: #2196F3;
    background: rgba(33, 150, 243, 0.3);
    box-shadow: 0 0 8px rgba(33, 150, 243, 0.6);
}

.elta-radar-track-marker .track-crosshair.aircraft::before,
.elta-radar-track-marker .track-crosshair.aircraft::after,
.elta-radar-track-marker .track-crosshair.mti\ aircraft::before,
.elta-radar-track-marker .track-crosshair.mti\ aircraft::after {
    background: #2196F3;
}

.elta-radar-track-marker .track-crosshair.helicopter {
    border-color: #9c27b0;
    background: rgba(156, 39, 176, 0.3);
    box-shadow: 0 0 8px rgba(156, 39, 176, 0.6);
}

.elta-radar-track-marker .track-crosshair.helicopter::before,
.elta-radar-track-marker .track-crosshair.helicopter::after {
    background: #9c27b0;
}

.elta-radar-track-marker .track-crosshair.uav,
.elta-radar-track-marker .track-crosshair.drone {
    border-color: #ff9800;
    background: rgba(255, 152, 0, 0.3);
    box-shadow: 0 0 8px rgba(255, 152, 0, 0.6);
}

.elta-radar-track-marker .track-crosshair.uav::before,
.elta-radar-track-marker .track-crosshair.uav::after,
.elta-radar-track-marker .track-crosshair.drone::before,
.elta-radar-track-marker .track-crosshair.drone::after {
    background: #ff9800;
}

.elta-radar-track-marker .track-crosshair.multicopter {
    border-color: #e91e63;
    background: rgba(233, 30, 99, 0.3);
    box-shadow: 0 0 8px rgba(233, 30, 99, 0.6);
}

.elta-radar-track-marker .track-crosshair.multicopter::before,
.elta-radar-track-marker .track-crosshair.multicopter::after {
    background: #e91e63;
}

.elta-radar-track-marker .track-crosshair.surface {
    border-color: #00bcd4;
    background: rgba(0, 188, 212, 0.3);
    box-shadow: 0 0 8px rgba(0, 188, 212, 0.6);
}

.elta-radar-track-marker .track-crosshair.surface::before,
.elta-radar-track-marker .track-crosshair.surface::after {
    background: #00bcd4;
}

.elta-radar-track-marker .track-label {
    position: absolute;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.9), -1px -1px 2px rgba(0,0,0,0.9);
}

/* ============== MatrixSpace Radar Track Markers ============== */
.matrixspace-marker .drone-icon {
    background: rgba(0, 188, 212, 0.9);
    box-shadow: 0 2px 8px rgba(0, 188, 212, 0.5);
}

.matrixspace-marker .drone-direction i {
    color: #00bcd4;
}

/* ============================================
   Point Asset Markers & Dialog
   ============================================ */

.point-asset-icon-container {
    background: transparent !important;
    border: none !important;
}

.point-asset-marker {
    font-size: 24px;
    text-shadow:
        2px 2px 4px rgba(0,0,0,0.8),
        -1px -1px 2px rgba(0,0,0,0.8);
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.point-asset-marker:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
}

/* Asset Category Tabs */
.asset-category-tabs {
    display: flex;
    gap: 8px;
}

.category-tab {
    flex: 1;
    padding: 10px 12px;
    background: var(--bg-tertiary, #2a2a2a);
    border: 1px solid var(--border-color, #444);
    border-radius: 6px;
    color: var(--text-secondary, #999);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.category-tab:hover {
    background: var(--bg-hover, #333);
}

.category-tab.active {
    background: var(--accent-color, #00cc66);
    color: white;
    border-color: var(--accent-color, #00cc66);
}

/* Asset Type Grid */
.asset-type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.asset-type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: var(--bg-tertiary, #2a2a2a);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.asset-type-option:hover {
    background: var(--bg-hover, #333);
    transform: translateY(-2px);
}

.asset-type-option.selected {
    border-color: var(--accent-color, #00cc66);
    background: rgba(0, 204, 102, 0.15);
}

.asset-type-option i {
    font-size: 22px;
    margin-bottom: 6px;
}

.asset-type-option span {
    font-size: 10px;
    text-align: center;
    color: var(--text-secondary, #999);
    line-height: 1.2;
}

.asset-type-option.selected span {
    color: var(--text-primary, #fff);
}

/* Asset Location Display */
.asset-location-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-tertiary, #2a2a2a);
    border-radius: 6px;
    color: var(--text-secondary, #999);
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
}

.asset-location-display i {
    color: var(--accent-color, #00cc66);
}

/* Asset Popup */
.asset-popup-container .leaflet-popup-content-wrapper {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid #444;
    border-radius: 8px;
}

.asset-popup-container .leaflet-popup-tip {
    background: rgba(30, 30, 30, 0.95);
}

.asset-popup {
    padding: 4px;
    font-size: 13px;
}

.asset-popup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #444;
}

.asset-popup-header i {
    font-size: 18px;
}

.asset-popup-body {
    color: #ccc;
    line-height: 1.6;
}

.asset-popup-body strong {
    color: #fff;
}

.asset-popup-footer {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #444;
    color: #666;
    font-size: 11px;
}

/* Light mode adjustments */
body.light-mode .category-tab {
    background: #f0f0f0;
    border-color: #ddd;
    color: #666;
}

body.light-mode .category-tab:hover {
    background: #e5e5e5;
}

body.light-mode .category-tab.active {
    background: var(--accent-color, #00cc66);
    color: white;
}

body.light-mode .asset-type-option {
    background: #f0f0f0;
}

body.light-mode .asset-type-option:hover {
    background: #e5e5e5;
}

body.light-mode .asset-type-option span {
    color: #666;
}

body.light-mode .asset-type-option.selected span {
    color: #333;
}

body.light-mode .asset-location-display {
    background: #f0f0f0;
    color: #666;
}

body.light-mode .asset-popup-container .leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.98);
    border-color: #ddd;
}

body.light-mode .asset-popup-container .leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.98);
}

body.light-mode .asset-popup-body {
    color: #555;
}

body.light-mode .asset-popup-body strong {
    color: #333;
}

/* ============================================
   D-Fend EnforceAir Styles
   ============================================ */

/* D-Fend Control Panel */
.dfend-panel {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

.dfend-system-status {
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.system-status-display {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
}

.system-status-display i {
    font-size: 18px;
}

/* D-Fend Buttons */
.dfend-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    background: #374151;
    color: #e5e7eb;
}

.dfend-btn:hover:not(:disabled) {
    background: #4b5563;
}

.dfend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dfend-btn.activate-jammer-btn {
    background: #ef4444;
    color: #fff;
    width: 100%;
    justify-content: center;
}

.dfend-btn.activate-jammer-btn:hover:not(:disabled) {
    background: #dc2626;
}

.dfend-btn.abort-jammer-btn {
    background: #6b7280;
    color: #fff;
    width: 100%;
    justify-content: center;
}

/* D-Fend Drone List */
.dfend-drones-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ============== Dart Styles ============== */
.dart-interceptors-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dart-mode-controls {
    padding: 4px 0;
}

.dart-mode-toggle {
    display: flex;
    gap: 4px;
}

.dart-mode-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
}

.dart-mode-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
}

.dart-mode-btn.active {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
    color: #60a5fa;
}

.dart-stages {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 0;
    font-size: 11px;
}

.dart-stage-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dart-stage-label {
    color: #9ca3af;
    font-weight: 500;
}

.dart-stage-value {
    font-weight: 600;
}

.dart-video-section {
    padding: 4px 0;
}

.dart-video-btn {
    background: rgba(59, 130, 246, 0.2) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
    color: #60a5fa !important;
}

.dart-video-btn:hover {
    background: rgba(59, 130, 246, 0.3) !important;
}

.dart-launch-btn {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #ef4444 !important;
    font-weight: 600 !important;
}

.dart-launch-btn:hover {
    background: rgba(239, 68, 68, 0.3) !important;
}

/* Dart Video Popup - matches Controp pattern */
.dart-video-popup {
    position: fixed;
    z-index: 980;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    resize: both;
    min-width: 320px;
    min-height: 200px;
}

.dart-video-popup img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.dart-video-popup .dart-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    z-index: 2;
}

.dart-video-dragbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 28px;
    height: 24px;
    z-index: 10;
    cursor: move;
}

.dart-target-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    cursor: default;
}

.dart-video-close-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 11;
    opacity: 0;
    transition: opacity 0.2s;
}

.dart-video-popup:hover .dart-video-close-btn {
    opacity: 0.7;
}

.dart-video-close-btn:hover {
    opacity: 1 !important;
    background: rgba(239, 68, 68, 0.8);
}

/* Light mode overrides for Dart */
body.light-mode .dart-mode-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
    color: #6b7280;
}

body.light-mode .dart-mode-btn.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #2563eb;
}

body.light-mode .dart-stage-label {
    color: #6b7280;
}

body.light-mode .dart-video-popup {
    background: #e8e8e8;
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

body.light-mode .dart-video-popup .dart-video-overlay {
    background: rgba(240, 240, 240, 0.8);
    color: rgba(0, 0, 0, 0.6);
}

/* Vorpal Detection List */
.vorpal-detections-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 412px;
    overflow-y: auto;
}

.dfend-drone-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dfend-drone-item .drone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.dfend-drone-item .drone-type {
    font-weight: 600;
    color: #fff;
}

.dfend-drone-item .drone-status {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.dfend-drone-item .drone-details {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #9ca3af;
}

.dfend-drone-item .drone-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dfend-drone-item .drone-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.dfend-drone-item .drone-actions-left,
.dfend-drone-item .drone-actions-right {
    display: flex;
    gap: 6px;
}

.no-drones {
    color: #6b7280;
    font-size: 13px;
    padding: 15px;
    text-align: center;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

/* D-Fend Map Markers */
.dfend-drone-marker {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.dfend-drone-marker .dfend-drone-icon {
    position: relative;
    width: 24px;
    height: 24px;
    background: rgba(245, 158, 11, 0.9);
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
    animation: dfendPulse 2s ease-in-out infinite;
}

@keyframes dfendPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.dfend-drone-marker .drone-direction {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    pointer-events: none;
}

.dfend-drone-marker .drone-direction i {
    position: absolute;
    top: -4px;
    left: 50%;
    margin-left: -8px;
    color: #f59e0b;
    font-size: 16px;
    text-shadow: 0 0 4px #fff, 0 0 8px #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.dfend-drone-marker .dfend-drone-label {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8), -1px -1px 2px rgba(0,0,0,0.8);
    white-space: nowrap;
    text-align: center;
}

.dfend-operator-marker .operator-icon,
.dfend-home-marker .home-icon {
    width: 20px;
    height: 20px;
    background: rgba(30, 30, 30, 0.9);
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.dfend-operator-marker .operator-icon {
    color: #ff9800;
}

.dfend-home-marker .home-icon {
    color: #4CAF50;
}

/* D-Fend Sidebar Node Status */
.node-status.jamming {
    background: #ef4444;
    animation: jammerPulse 1s ease-in-out infinite;
}

/* Light Mode Overrides */
body.light-mode .dfend-drone-item {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .dfend-drone-item .drone-type {
    color: #111;
}

body.light-mode .dfend-drone-item .drone-details {
    color: #666;
}

body.light-mode .dfend-btn {
    background: #e5e7eb;
    color: #374151;
}

body.light-mode .dfend-btn:hover:not(:disabled) {
    background: #d1d5db;
}

body.light-mode .no-drones {
    background: rgba(0, 0, 0, 0.05);
    color: #6b7280;
}

body.light-mode .dfend-system-status {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .jammer-active {
    background: rgba(239, 68, 68, 0.1);
}

/* ============== Manual Target Styles ============== */

/* Manual Target Map Marker */
.manual-target-marker {
    background: transparent !important;
    border: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.drone-icon,
.manual-target-icon {
    position: relative;
    width: 24px;
    height: 24px;
    background: rgba(255, 107, 107, 0.9);
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.manual-target-icon > i {
    color: #fff;
    font-size: 12px;
}

.manual-target-marker .target-direction {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    pointer-events: none;
}

.manual-target-marker .target-direction i {
    position: absolute;
    top: -4px;
    left: 50%;
    margin-left: -8px;
    color: #ff6b6b;
    font-size: 16px;
    text-shadow: 0 0 4px #fff, 0 0 8px #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.manual-target-label {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8), -1px -1px 2px rgba(0,0,0,0.8);
    white-space: nowrap;
    text-align: center;
}

/* Manual Target Popup */
.manual-target-popup-container .leaflet-popup-content-wrapper {
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid #333;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.manual-target-popup-container .leaflet-popup-content {
    margin: 0;
    padding: 0;
}

.manual-target-popup-container .leaflet-popup-tip {
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid #333;
}

.manual-target-popup {
    min-width: 220px;
}

.manual-target-popup .popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #333;
    background: rgba(26, 26, 26, 0.5);
}

.manual-target-popup .popup-header strong {
    color: #fff;
    font-size: 14px;
}

.manual-target-popup .popup-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    background: #ff6b6b;
    color: #fff;
    text-transform: uppercase;
}

.manual-target-popup .popup-details {
    padding: 10px 12px;
}

.manual-target-popup .popup-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    color: #aaa;
    font-size: 12px;
}

.manual-target-popup .popup-row i {
    width: 16px;
    text-align: center;
    color: #666;
}

.manual-target-popup .popup-actions {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid #333;
    background: rgba(26, 26, 26, 0.5);
}

.manual-target-popup .popup-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.manual-target-popup .popup-btn.edit {
    background: #3b82f6;
    color: #fff;
}

.manual-target-popup .popup-btn.edit:hover {
    background: #2563eb;
}

.manual-target-popup .popup-btn.delete {
    background: #ef4444;
    color: #fff;
}

.manual-target-popup .popup-btn.delete:hover {
    background: #dc2626;
}

/* Light mode overrides */
body.light-mode .manual-target-popup-container .leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.98);
    border-color: #ddd;
}

body.light-mode .manual-target-popup-container .leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.98);
    border-color: #ddd;
}

body.light-mode .manual-target-popup .popup-header {
    background: rgba(0, 0, 0, 0.03);
    border-color: #eee;
}

body.light-mode .manual-target-popup .popup-header strong {
    color: #333;
}

body.light-mode .manual-target-popup .popup-row {
    color: #666;
}

body.light-mode .manual-target-popup .popup-row i {
    color: #999;
}

body.light-mode .manual-target-popup .popup-actions {
    background: rgba(0, 0, 0, 0.03);
    border-color: #eee;
}

body.light-mode .manual-target-label {
    color: #cc5555;
    text-shadow: 0 0 3px #fff, 0 0 3px #fff;
}

/* Manual Target Actions in popup (DOM-based popup) */
.manual-target-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #333;
    background: rgba(26, 26, 26, 0.5);
    flex-shrink: 0;
}

.manual-target-actions .manual-target-close-btn {
    margin-left: auto;
    height: 28px;
    padding: 0 12px;
    font-size: 12px;
}

.manual-target-actions .action-btn {
    background: transparent;
    border: 1px solid #444;
    color: #888;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.manual-target-actions .action-btn:hover {
    background: #333;
    color: #fff;
    border-color: #666;
}

.manual-target-actions .action-btn.delete-manual-target:hover {
    background: rgba(255, 68, 68, 0.2);
    border-color: #ff4444;
    color: #ff4444;
}

body.light-mode .manual-target-actions {
    background: rgba(245, 245, 245, 0.9);
    border-color: #ddd;
}

body.light-mode .manual-target-actions .action-btn {
    border-color: #c0c0c0;
    color: #666;
}

body.light-mode .manual-target-actions .action-btn:hover {
    background: #f0f0f0;
    border-color: #999;
    color: #2a2a2a;
}

body.light-mode .manual-target-actions .action-btn.delete-manual-target:hover {
    background: #ffebee;
    border-color: #ef5350;
    color: #d32f2f;
}

/* ============== Regulus Standalone Jammer Styles ============== */

/* Jammer bands grid in control panel */
.jammer-bands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
    padding: 8px 0;
}

.jammer-band-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.jammer-band-item.has-fault {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.1);
}

.jammer-band-item.is-jamming {
    border-color: rgba(147, 51, 234, 0.5);
    background: rgba(147, 51, 234, 0.15);
}

.jammer-band-item .band-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.jammer-band-item .band-name {
    font-weight: 600;
    font-size: 13px;
    color: #fff;
}

.jammer-band-item .band-status-indicators {
    display: flex;
    gap: 4px;
}

.jammer-band-item .band-indicator {
    font-size: 10px;
    padding: 2px;
}

.jammer-band-item .band-indicator.ok {
    color: #4ade80;
}

.jammer-band-item .band-indicator.fault {
    color: #ef4444;
    animation: blink 1s infinite;
}

.jammer-band-item .band-toggle-btn {
    width: 100%;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.jammer-band-item .band-toggle-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Ignore editor: Node Type dropdown uses fixed positioning to escape modal overflow */
#nodeList-type-selector .dropdown-menu.show {
    position: fixed;
    z-index: 10002;
    max-height: 300px;
    overflow-y: auto;
}

.jammer-band-item .band-toggle-btn.active {
    background: rgba(147, 51, 234, 0.8);
    border-color: #9333ea;
    color: #fff;
}

.jammer-band-item .band-toggle-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Jammer control panel - main button full width */
.jammer-bands-grid + .control-buttons,
.control-section .jammer-bands-grid ~ .control-buttons {
    margin-top: 5px;
}

.control-section .main-control-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Jammer marker on map */
.jammer-marker .node-icon {
    background: #9333ea;
}

.jammer-marker.jamming .node-icon {
    background: #ef4444;
    animation: jammerPulse 1s ease-in-out infinite;
}

.jammer-marker.ready .node-icon {
    background: #4ade80;
}

.jammer-marker.offline .node-icon {
    background: #666;
}

@keyframes jammerPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

/* Light Mode overrides for Jammer */
body.light-mode .jammer-band-item {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .jammer-band-item.has-fault {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.08);
}

body.light-mode .jammer-band-item.is-jamming {
    border-color: rgba(147, 51, 234, 0.5);
    background: rgba(147, 51, 234, 0.1);
}

body.light-mode .jammer-band-item .band-name {
    color: #333;
}

body.light-mode .jammer-band-item .band-toggle-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
    color: #666;
}

body.light-mode .jammer-band-item .band-toggle-btn:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

body.light-mode .jammer-band-item .band-toggle-btn.active {
    background: rgba(147, 51, 234, 0.8);
    border-color: #9333ea;
    color: #fff;
}

/* MatrixSpace Radar control buttons */
.radar-control-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.radar-control-buttons .control-btn {
    flex: 1;
}

/* ============== Laser Styles ============== */

/* Laser map marker */
.laser-marker .node-icon {
    background: #FF5722;
}

.laser-marker.ready .node-icon {
    background: #4ade80;
}

.laser-marker.offline .node-icon {
    background: #666;
}

/* Laser control panel */
.control-panel.laser-panel {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

/* Laser target list */
.laser-targets-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 412px;
    overflow-y: auto;
}

.laser-target-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid #FF5722;
}

.laser-target-item.in-range {
    border-left-color: #4ade80;
}

.laser-target-item.out-of-range {
    border-left-color: #666;
    opacity: 0.65;
}

.laser-target-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.laser-target-name {
    font-weight: 600;
    color: #fff;
    font-size: 13px;
}

.laser-target-name i {
    margin-right: 5px;
    color: #FF5722;
    font-size: 11px;
}

.laser-target-source {
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 3px;
}

.laser-target-coords {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.laser-target-coords i {
    margin-right: 4px;
    color: #666;
}

.laser-target-metrics {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.laser-metric {
    font-size: 12px;
    color: #d1d5db;
    display: flex;
    align-items: center;
    gap: 4px;
}

.laser-metric i {
    color: #FF5722;
    font-size: 10px;
}

.laser-target-actions {
    display: flex;
    gap: 6px;
}

.laser-target-actions .laser-send-btn {
    flex: 1;
}

.laser-target-actions .laser-zoom-btn {
    width: 32px;
    flex-shrink: 0;
}

/* Laser target buttons - same style as Sentrycs/Radar event buttons */
.laser-target-item .event-btn {
    background: rgba(60, 60, 60, 0.8);
    border: 1px solid #444;
    color: #ccc;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.laser-target-item .event-btn:hover {
    background: rgba(80, 80, 80, 0.8);
    color: #fff;
}

.laser-target-item .laser-send-btn {
    background: rgba(255, 87, 34, 0.2);
    border-color: #FF5722;
    color: #FF5722;
}

.laser-target-item .laser-send-btn:hover {
    background: rgba(255, 87, 34, 0.4);
}

.laser-target-item .laser-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Light mode overrides for Laser */
body.light-mode .laser-target-item {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .laser-target-name {
    color: #111;
}

body.light-mode .laser-target-coords {
    color: #666;
}

body.light-mode .laser-metric {
    color: #374151;
}

body.light-mode .laser-target-source {
    background: rgba(0, 0, 0, 0.05);
    color: #666;
}
