/* ========================================
   SECTOR MAP EDITOR - STYLES
   ======================================== */

/* Overlay backdrop — transparent so map stays visible */
#sector-editor-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1999;
    pointer-events: none;
}

#sector-editor-overlay.active {
    display: block;
}

/* Editor Panel */
#sector-editor {
    position: fixed;
    top: 0;
    right: 0;
    width: 30vw;
    height: 100%;
    background: #12141a;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.6);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e0e0e0;
    pointer-events: auto;
}

#sector-editor.open {
    transform: translateX(0);
}

/* ---- Resize Handle ---- */
.editor-resize-handle {
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    cursor: ew-resize;
    z-index: 10;
    transition: background 0.15s;
}

.editor-resize-handle:hover,
.editor-resize-handle:active {
    background: rgba(66, 133, 244, 0.4);
}

/* ---- Title Bar ---- */
.editor-titlebar {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: #0d0f14;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 16px;
    flex-shrink: 0;
}

.editor-titlebar h2 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    flex: 1;
}

.editor-titlebar .editor-search {
    width: 220px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 12px;
    outline: none;
    transition: border-color 0.2s;
}

.editor-titlebar .editor-search:focus {
    border-color: #4285f4;
}

.editor-titlebar .editor-search::placeholder {
    color: #666;
}

.editor-help-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: #888;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-family: 'Segoe UI', sans-serif;
}

.editor-help-btn:hover {
    background: rgba(66, 133, 244, 0.15);
    color: #4285f4;
}

.editor-unselect-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.editor-unselect-btn:hover {
    background: rgba(66, 133, 244, 0.15);
    color: #4285f4;
}

.editor-close-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: #aaa;
    font-size: 18px;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.editor-close-btn:hover {
    background: rgba(255, 60, 60, 0.2);
    color: #ff4444;
}

/* ---- Focus Mode Toggle ---- */
.editor-focus-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.editor-focus-toggle input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #4285f4;
    cursor: pointer;
    margin: 0;
}

.editor-focus-toggle .focus-label {
    font-size: 11px;
    color: #888;
    font-weight: 500;
}

/* ---- Coordinate Display ---- */
.editor-coords {
    font-size: 11px;
    color: #666;
    font-family: 'Consolas', 'Courier New', monospace;
    white-space: nowrap;
}

/* ---- Tab Bar ---- */
.editor-tabs {
    display: flex;
    background: #0d0f14;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    padding: 0 16px;
}

.editor-tab {
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.editor-tab:hover {
    color: #ccc;
    background: rgba(255, 255, 255, 0.03);
}

.editor-tab.active {
    color: #4285f4;
    border-bottom-color: #4285f4;
}

.editor-tab .tab-dirty {
    display: none;
    width: 6px;
    height: 6px;
    background: #ff6b35;
    border-radius: 50%;
    position: absolute;
    top: 8px;
    right: 8px;
}

.editor-tab.dirty .tab-dirty {
    display: block;
}

/* ---- Editor Body (Split Pane) ---- */
.editor-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* ---- List Pane (Left) ---- */
.editor-list-pane {
    width: 38%;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    background: #12141a;
}

.editor-list-header {
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    overflow: hidden;
}

.editor-list-search {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 12px;
    outline: none;
}

.editor-list-search:focus {
    border-color: #4285f4;
}

.editor-list-search::placeholder {
    color: #555;
}

.editor-sort-select {
    padding: 5px 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: #aaa;
    font-size: 10px;
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
}

.editor-sort-select:focus {
    border-color: #4285f4;
}

.editor-add-btn {
    padding: 5px 10px;
    background: #4285f4;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
}

.editor-add-btn:hover {
    background: #5a95f5;
}

.editor-list-content {
    flex: 1;
    overflow-y: auto;
}

.editor-list-stats {
    padding: 6px 16px;
    font-size: 10px;
    color: #555;
    font-family: 'Consolas', monospace;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

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

.editor-list-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
}

.editor-list-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Zone Row */
.zone-row {
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
    gap: 4px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.15s;
}

.zone-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.zone-row.selected {
    background: rgba(66, 133, 244, 0.12);
    border-left: 3px solid #4285f4;
    padding-left: 13px;
}

.zone-row-top {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.zone-row-bottom {
    padding-left: 18px;
}

.zone-row .zone-color {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.zone-row .zone-name {
    flex: 1;
    font-size: 13px;
    color: #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zone-row .zone-badge {
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    max-width: none;
}

.zone-badge.high { background: rgba(255, 0, 0, 0.2); color: #ff4444; }
.zone-badge.medium { background: rgba(255, 140, 0, 0.2); color: #ff8c00; }
.zone-badge.low { background: rgba(255, 215, 0, 0.2); color: #ffd700; }
.zone-badge.military { background: rgba(139, 0, 0, 0.2); color: #ff4444; }
.zone-badge.hazmat { background: rgba(255, 165, 0, 0.2); color: #ffa500; }
.zone-badge.authorized { background: rgba(30, 144, 255, 0.2); color: #1E90FF; }

.zone-row .zone-geo-icon {
    font-size: 11px;
    color: #555;
}

.zone-row .zone-delete-btn {
    display: flex;
    width: 22px;
    height: 22px;
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.5;
    transition: all 0.15s;
}

.zone-row:hover .zone-delete-btn {
    opacity: 1;
}

.zone-row .zone-delete-btn:hover {
    color: #ff4444;
    background: rgba(255, 60, 60, 0.15);
}

/* ---- Empty State ---- */
.editor-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    gap: 6px;
    text-align: center;
}

.editor-empty-state .empty-icon {
    font-size: 28px;
    opacity: 0.4;
    margin-bottom: 4px;
}

.editor-empty-state .empty-title {
    font-size: 13px;
    color: #888;
    font-weight: 600;
}

.editor-empty-state .empty-desc {
    font-size: 11px;
    color: #555;
}

/* ---- Search Highlight ---- */
.search-highlight {
    background: rgba(255, 215, 0, 0.5);
    color: #fff;
    border-radius: 2px;
    padding: 1px 2px;
}

/* ---- Detail Pane (Right) ---- */
.editor-detail-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.editor-detail-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 14px;
    font-style: italic;
}

.editor-form-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.editor-form-container::-webkit-scrollbar {
    width: 4px;
}

.editor-form-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
}

/* Form Header Bar */
.form-header-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.form-zone-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-dirty-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6b35;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s;
}

.form-dirty-dot.visible {
    opacity: 1;
}

/* Form Groups */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #4285f4;
}

.form-group input:read-only {
    color: #666;
    cursor: default;
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: #1a1c24;
    color: #e0e0e0;
}

.form-group input[type="color"] {
    width: 48px;
    height: 32px;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.form-row {
    display: flex;
    gap: 12px;
}

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

.form-error {
    font-size: 11px;
    color: #ff4444;
    margin-top: 4px;
}

/* ---- Geometry Section ---- */
.geometry-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.geometry-type-select {
    margin-bottom: 12px;
}

.geometry-draw-btn {
    padding: 8px 16px;
    background: rgba(66, 133, 244, 0.15);
    border: 1px solid rgba(66, 133, 244, 0.3);
    color: #4285f4;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.geometry-draw-btn:hover {
    background: rgba(66, 133, 244, 0.25);
}

.geometry-draw-btn.drawing {
    background: rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.3);
    color: #ff6b35;
}

.geometry-cancel-btn {
    padding: 8px 16px;
    background: rgba(255, 60, 60, 0.1);
    border: 1px solid rgba(255, 60, 60, 0.2);
    color: #ff4444;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 8px;
    display: none;
}

.geometry-cancel-btn.visible {
    display: inline-block;
}

.geometry-finish-btn {
    padding: 8px 16px;
    background: rgba(50, 205, 50, 0.1);
    border: 1px solid rgba(50, 205, 50, 0.2);
    color: #32cd32;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 8px;
    display: none;
}

.geometry-finish-btn.visible {
    display: inline-block;
}

/* Drawing Hint */
.geo-draw-hint {
    display: none;
    font-size: 11px;
    color: #ccc;
    background: rgba(66, 133, 244, 0.12);
    border-left: 3px solid #4285f4;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 8px 0;
    line-height: 1.6;
}

/* Coordinate Table */
.coord-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-top: 8px;
}

.coord-table th {
    text-align: left;
    padding: 6px 8px;
    color: #666;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.coord-table td {
    padding: 4px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.coord-table input {
    width: 80px;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    color: #e0e0e0;
    font-size: 12px;
    font-family: 'Consolas', monospace;
    outline: none;
}

.coord-table input:focus {
    border-color: #4285f4;
}

.coord-table .coord-remove-btn {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
    border-radius: 3px;
}

.coord-table .coord-remove-btn:hover {
    color: #ff4444;
    background: rgba(255, 60, 60, 0.1);
}

.coord-add-btn {
    margin-top: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    color: #888;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.coord-add-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
}

/* ---- Unit Manager Section ---- */
.unit-manager {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 16px;
}

.unit-manager-title {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.unit-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}

.unit-row .unit-color-swatch {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.unit-row .unit-name-text {
    flex: 1;
    font-size: 12px;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.unit-row button {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
}

.unit-row button:hover {
    color: #ff4444;
    background: rgba(255, 60, 60, 0.1);
}

.unit-row.focused {
    background: rgba(66, 133, 244, 0.1);
    border-left: 3px solid #4285f4;
    padding-left: 5px;
}

.unit-row {
    cursor: pointer;
    transition: background 0.15s;
    border-left: 3px solid transparent;
    padding-left: 8px;
}

.unit-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* ---- Toolbar ---- */
.editor-toolbar {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #0d0f14;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    gap: 6px;
    flex-shrink: 0;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.toolbar-group-end {
    margin-left: auto;
}

.editor-toolbar-btn {
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}

.toolbar-btn-primary {
    background: #4285f4;
    color: #fff;
    border-color: #4285f4;
}

.toolbar-btn-primary:hover {
    background: #5a95f5;
}

.toolbar-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #ccc;
    border-color: rgba(255, 255, 255, 0.1);
}

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

.toolbar-btn-danger {
    background: rgba(255, 60, 60, 0.1);
    color: #ff6b6b;
    border-color: rgba(255, 60, 60, 0.2);
}

.toolbar-btn-danger:hover {
    background: rgba(255, 60, 60, 0.2);
}

.toolbar-separator {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 4px;
}

.toolbar-spacer {
    flex: 1;
}

.toolbar-stats {
    font-size: 11px;
    color: #555;
    font-family: 'Consolas', monospace;
}

/* ---- Toast Notifications ---- */
.editor-toast-container {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 8px;
    z-index: 3500;
    pointer-events: none;
}

.editor-toast {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 400px;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(18, 20, 26, 0.95);
    color: #e0e0e0;
    border-left: 3px solid #888;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.editor-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.editor-toast .toast-msg { flex: 1; }

.editor-toast .toast-retry {
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.editor-toast .toast-retry:hover { background: rgba(255, 255, 255, 0.15); }

.editor-toast.success {
    border-left-color: #32cd32;
    color: #a0f0a0;
}

.editor-toast.error {
    border-left-color: #ff4444;
    color: #ffaaaa;
}

.editor-toast.info {
    border-left-color: #4285f4;
    color: #b0ccf8;
}

/* ---- Confirm Dialog ---- */
.editor-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.editor-confirm-dialog {
    background: #1a1c24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.editor-confirm-dialog h3 {
    font-size: 15px;
    color: #fff;
    margin: 0 0 12px;
}

.editor-confirm-dialog p {
    font-size: 13px;
    color: #aaa;
    margin: 0 0 20px;
    line-height: 1.5;
}

.editor-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ---- Shortcuts Dialog ---- */
.shortcuts-dialog {
    max-width: 440px;
}

.shortcuts-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.shortcut-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #aaa;
}

.shortcut-row span {
    margin-left: auto;
    color: #888;
    font-size: 11px;
}

.shortcut-row kbd {
    display: inline-block;
    padding: 2px 7px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    font-size: 11px;
    font-family: 'Consolas', monospace;
    color: #ddd;
    min-width: 20px;
    text-align: center;
}

/* ---- Map Drawing Mode ---- */
.map-drawing-mode {
    cursor: crosshair !important;
}

.map-drawing-mode .leaflet-interactive {
    cursor: crosshair !important;
}

/* Drawing vertex markers */
.vertex-marker {
    width: 14px;
    height: 14px;
    background: #4285f4;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 0 4px rgba(0,0,0,0.4);
    transition: transform 0.1s, background 0.1s;
}

.vertex-marker:hover {
    background: #ff6b35;
    transform: scale(1.4);
}

/* ---- Midpoint Insert Markers ---- */
.midpoint-marker {
    width: 10px;
    height: 10px;
    background: rgba(66, 133, 244, 0.4);
    border: 1.5px solid rgba(66, 133, 244, 0.8);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}

.midpoint-marker:hover {
    background: #4285f4;
    transform: scale(1.5);
}

/* ---- Coordinate Indicator (eski, editör bağımlı - kaldırıldı) ---- */
.coord-indicator { display: none !important; }

/* ---- Import Diff Summary ---- */
/* ---- Offset Control Bar ---- */
.geo-offset-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    flex-wrap: wrap;
}

.geo-offset-bar .offset-label {
    font-size: 10px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 50px;
}

.geo-offset-bar .offset-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.geo-offset-bar .offset-btn {
    width: 32px;
    height: 32px;
    background: rgba(66, 133, 244, 0.1);
    border: 1px solid rgba(66, 133, 244, 0.2);
    color: #4285f4;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    padding: 0;
    line-height: 1;
}

.geo-offset-bar .offset-btn:hover {
    background: rgba(66, 133, 244, 0.25);
    color: #fff;
}

.geo-offset-bar .offset-btn:active {
    transform: scale(0.92);
}

.geo-offset-bar .offset-step-input {
    width: 48px;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    color: #e0e0e0;
    font-size: 11px;
    font-family: 'Consolas', monospace;
    text-align: center;
    outline: none;
}

.geo-offset-bar .offset-step-input:focus {
    border-color: #4285f4;
}

.geo-offset-separator {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 4px;
}

.import-diff {
    margin: 12px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    font-size: 12px;
}

.import-diff .diff-added { color: #32cd32; }
.import-diff .diff-modified { color: #ffa500; }
.import-diff .diff-removed { color: #ff4444; }

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    #sector-editor {
        width: 40vw;
    }
}

@media (max-width: 900px) {
    #sector-editor {
        width: 100vw;
    }
    .editor-body {
        flex-direction: column;
    }
    .editor-list-pane {
        width: 100%;
        max-height: 35vh;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .editor-toolbar {
        flex-wrap: wrap;
    }
}

/* ---- Keyboard shortcut badge ---- */
.editor-toolbar-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background: #000;
    color: #ccc;
    font-size: 10px;
    white-space: nowrap;
    border-radius: 4px;
    pointer-events: none;
}

.editor-toolbar-btn {
    position: relative;
}

/* Editör butonu sidebar.css'te (.sidebar-editor-btn) tanımlı */

/* ---- Canlıya Al Butonu ---- */
.toolbar-btn-publish {
    background: linear-gradient(135deg, #32cd32, #228b22);
    color: #fff;
    border-color: #32cd32;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: publish-glow 2s ease-in-out infinite;
}

.toolbar-btn-publish:hover {
    background: linear-gradient(135deg, #3de03d, #2da52d);
    box-shadow: 0 0 12px rgba(50, 205, 50, 0.4);
}

@keyframes publish-glow {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 8px rgba(50, 205, 50, 0.25); }
}
