/**
 * Network Topology Designer - Styles
 * Modern Dark Mode Professional UI
 */

/* ============================================
   CSS Variables (aligned with app shell in base.html)
   ============================================ */
:root {
    /* Bridge — same visual language as global dashboard */
    --topo-bg-primary: var(--bg-primary);
    --topo-bg-secondary: var(--bg-secondary);
    --topo-bg-tertiary: var(--bg-tertiary);
    --topo-border: var(--border-color);
    --topo-text-primary: var(--text-primary);
    --topo-text-secondary: var(--text-secondary);
    --topo-accent: var(--accent-primary);
    
    /* Grid (subtle, matches accent) */
    --topo-grid-color: rgba(0, 245, 212, 0.04);
    --topo-grid-size: 30px;
    
    /* Device type tints (diagram semantics; aligned with TopologyTheme) */
    --device-router: var(--accent-primary);
    --device-switch: var(--accent-success);
    --device-firewall: var(--accent-danger);
    --device-server: var(--accent-secondary);
    --device-access-point: var(--accent-warning);
    --device-client: var(--text-muted);
    --device-load-balancer: var(--accent-tertiary);
    
    --link-ethernet: var(--accent-primary);
    --link-fiber: var(--accent-warning);
    --link-wireless: #a371f7;
    --link-vpn: var(--accent-success);
    
    --status-up: var(--accent-success);
    --status-down: var(--accent-danger);
    --status-warning: var(--accent-warning);
    --status-unknown: var(--text-muted);
    
    --panel-width: 280px;
    --toolbar-height: 52px;
    /* Sağ cihaz paneli — genişlik aralığı (aşağıdaki .topology-detail-panel ile birlikte) */
    --topology-detail-panel-min: 240px;
    --topology-detail-panel-max: 420px;
    --topology-detail-panel-prefer: 32vw;
}

/* ============================================
   Main Layout
   ============================================ */
.topology-page {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: calc(100vh - var(--app-header-height) - 2 * var(--app-page-padding-y));
    min-height: 400px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
}
@supports (height: 100dvh) {
    .topology-page {
        height: var(--app-main-inner-height);
    }
}

/* ============================================
   Left Panel - Device Selector
   ============================================ */
.topology-sidebar {
    width: var(--panel-width);
    min-width: var(--panel-width);
    flex-shrink: 0;
    min-height: 0;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* Fills sidebar height so .sidebar-body flex:1 + overflow can scroll */
#deviceSelectorPanel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    height: 100%;
}

.topology-sidebar.collapsed {
    transform: translateX(-100%);
    width: 0;
    min-width: 0;
}

.sidebar-header {
    padding: 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.sidebar-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--bg-tertiary, var(--bg-secondary));
}

.sidebar-body::-webkit-scrollbar {
    width: 6px;
}

.sidebar-body::-webkit-scrollbar-track {
    background: var(--bg-tertiary, rgba(0, 0, 0, 0.2));
    border-radius: 3px;
}

.sidebar-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.sidebar-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Collapsible sections (Cihaz Ekle / Bağlantı / Mevcut cihazlar) */
.topology-sidebar-accordion {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary, var(--bg-secondary));
    overflow: hidden;
}

.topology-sidebar-accordion-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    user-select: none;
}

.topology-sidebar-accordion-summary::-webkit-details-marker {
    display: none;
}

.topology-sidebar-accordion-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.topology-sidebar-accordion-title i {
    color: var(--accent-primary);
    font-size: 12px;
}

.topology-sidebar-accordion-chevron {
    flex-shrink: 0;
    font-size: 10px;
    opacity: 0.75;
    transition: transform 0.2s ease;
}

.topology-sidebar-accordion[open] .topology-sidebar-accordion-chevron {
    transform: rotate(180deg);
}

.topology-sidebar-accordion-panel {
    padding: 0 10px 12px 10px;
}

/* Tek kaydırma: .sidebar-body — iç liste sınırı yok */
.topology-sidebar-accordion-panel--devices {
    display: block;
}

.topology-sidebar-accordion-panel--devices .device-search {
    margin-bottom: 8px;
}

.topology-sidebar-accordion-panel--devices .existing-device-list {
    max-height: none;
    overflow-y: visible;
}

.sidebar-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* Device Type Grid - Packet Tracer style palette */
.device-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 2px;
}

.device-type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    cursor: grab;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    border: 2px solid transparent;
    text-align: center;
    user-select: none;
    min-height: 72px;
}

.device-type-item:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.device-type-item:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.device-type-item.active {
    border-color: var(--accent-primary);
    background: rgba(0, 245, 212, 0.12);
    box-shadow: 0 0 12px var(--border-glow);
}

.device-type-item.dragging {
    opacity: 0.5;
    transform: scale(1.1);
}

.device-type-icon {
    --d-bg: var(--bg-tertiary);
    --d-accent: var(--accent-primary);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--d-bg);
    border: 1px solid var(--d-accent);
    border-radius: 10px;
    box-sizing: border-box;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2) inset;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.device-type-icon .topology-device-svg,
.device-type-icon .topology-device-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.device-type-item:hover .device-type-icon {
    box-shadow: 0 0 16px rgba(0, 245, 212, 0.12);
}

.device-type-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* Link Types */
.link-type-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.link-type-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.link-type-item:hover {
    background: var(--bg-hover);
}

.link-type-item.active {
    border-color: var(--accent-primary);
    background: rgba(123, 97, 255, 0.1);
}

.link-line-preview {
    width: 30px;
    height: 3px;
    border-radius: 2px;
}

.link-line-preview.ethernet { background: var(--link-ethernet); }
.link-line-preview.fiber { background: var(--link-fiber); }
.link-line-preview.wireless { 
    background: repeating-linear-gradient(
        90deg, 
        var(--link-wireless) 0px, 
        var(--link-wireless) 4px, 
        transparent 4px, 
        transparent 8px
    ); 
}
.link-line-preview.vpn { 
    background: repeating-linear-gradient(
        90deg, 
        var(--link-vpn) 0px, 
        var(--link-vpn) 6px, 
        transparent 6px, 
        transparent 10px
    ); 
}

.link-type-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.link-type-check {
    color: var(--accent-primary);
    font-size: 10px;
    margin-left: auto;
}

/* Existing Devices List */
.device-search {
    margin-bottom: 12px;
}

.device-search-input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    transition: border-color 0.2s;
}

.device-search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.device-search-input::placeholder {
    color: var(--text-muted);
}

.existing-device-list {
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.existing-device-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-primary);
    border-radius: 8px;
    cursor: grab;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.existing-device-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
}

.existing-device-item.in-topology {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    cursor: default;
    opacity: 0.7;
}

.existing-device-item .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.existing-device-item .status-dot.up { background: var(--status-up); box-shadow: 0 0 6px var(--status-up); }
.existing-device-item .status-dot.down { background: var(--status-down); animation: pulse-status 1.5s infinite; }
.existing-device-item .status-dot.warning { background: var(--status-warning); }
.existing-device-item .status-dot.unknown { background: var(--status-unknown); }

@keyframes pulse-status {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    50% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
}

.existing-device-info {
    flex: 1;
    min-width: 0;
}

.existing-device-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.existing-device-ip {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ============================================
   Main Canvas Area
   ============================================ */
.topology-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

/* Toolbar */
.topology-toolbar {
    height: var(--toolbar-height);
    min-height: var(--toolbar-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 8px;
    padding: 8px 12px;
    gap: 8px;
    z-index: 2;
    box-sizing: border-box;
    min-width: 0;
}

@media (min-width: 900px) {
    .topology-toolbar {
        flex-wrap: nowrap;
        height: var(--toolbar-height);
        padding: 0 16px;
    }
}

.toolbar-group {
    display: flex;
    gap: 2px;
    padding: 4px;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.toolbar-divider {
    width: 1px;
    height: 28px;
    background: var(--border-color);
    margin: 0 8px;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.toolbar-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.toolbar-btn.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(123, 97, 255, 0.4);
}

.toolbar-btn.danger:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
}

.toolbar-btn.success:hover {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-success);
}

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

.toolbar-spacer {
    flex: 1;
}

.toolbar-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 1;
    min-width: 0;
    flex-wrap: wrap;
}

.toolbar-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--bg-tertiary);
    border-radius: 6px;
}

.toolbar-stat-value {
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

/* Canvas Container */
.topology-canvas-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: 
        linear-gradient(rgba(10, 14, 23, 0.97), rgba(10, 14, 23, 0.97)),
        repeating-linear-gradient(
            0deg, 
            var(--topo-grid-color) 0px, 
            var(--topo-grid-color) 1px, 
            transparent 1px, 
            transparent var(--topo-grid-size)
        ),
        repeating-linear-gradient(
            90deg, 
            var(--topo-grid-color) 0px, 
            var(--topo-grid-color) 1px, 
            transparent 1px, 
            transparent var(--topo-grid-size)
        );
}

.topology-canvas-container.no-grid {
    background: var(--bg-primary);
}

#topology-canvas {
    width: 100%;
    height: 100%;
}

/* Cursor modes */
.topology-canvas-container.mode-select { cursor: default; }
.topology-canvas-container.mode-pan { cursor: grab; }
.topology-canvas-container.mode-pan:active { cursor: grabbing; }
.topology-canvas-container.mode-connect { 
    cursor: crosshair; 
}

/* Connect mode indicator - Packet Tracer style */
.topology-canvas-container.mode-connect::before {
    content: '🔗 CONNECTION MODE - Click source device, then target device';
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-sans), system-ui, sans-serif;
    border-radius: var(--radius-sm);
    z-index: 100;
    pointer-events: none;
    box-shadow: var(--shadow-md);
    letter-spacing: 0.5px;
}

/* Modern dark canvas with subtle grid */
#topology-canvas {
    background-color: var(--topo-bg-primary, #0d1117);
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(88, 166, 255, 0.015) 0%, transparent 50%),
        linear-gradient(var(--topo-grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--topo-grid-color) 1px, transparent 1px);
    background-size: 100% 100%, var(--topo-grid-size) var(--topo-grid-size), var(--topo-grid-size) var(--topo-grid-size);
    background-position: 0 0, -1px -1px, -1px -1px;
}

/* Node label styling override for dark mode */
.topology-canvas-container {
    --cy-node-label-color: var(--topo-text-primary);
}

/* Drop indicator */
.topology-canvas-container.drag-over {
    background-color: rgba(123, 97, 255, 0.05);
}

.topology-canvas-container.drag-over::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 2px dashed var(--accent-primary);
    border-radius: 12px;
    pointer-events: none;
    animation: pulse-border 1s ease infinite;
}

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

/* ============================================
   Canvas Overlays
   ============================================ */
.canvas-overlay {
    position: absolute;
    z-index: 10;
    pointer-events: none;
}

.canvas-overlay > * {
    pointer-events: auto;
}

/* Status Legend - Modern Glass Effect */
.status-legend {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(22, 27, 34, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(48, 54, 61, 0.8);
    border-radius: 12px;
    padding: 16px;
    min-width: 170px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.legend-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.legend-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legend-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.legend-toggle:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.legend-toggle.collapsed i {
    transform: rotate(180deg);
}

.legend-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-content.collapsed {
    display: none;
}

.legend-section-label {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 8px;
    margin-bottom: 4px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-secondary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.legend-dot.up { 
    background: radial-gradient(circle at 35% 35%, #b9f6ca, #3fb950 60%, #238636);
    box-shadow: 0 0 8px rgba(63, 185, 80, 0.6), inset 0 1px 2px rgba(255,255,255,0.3);
    animation: pulse-green 2s ease-in-out infinite;
}

.legend-dot.down { 
    background: radial-gradient(circle at 35% 35%, #ffa4a2, #f85149 60%, #da3633);
    box-shadow: 0 0 8px rgba(248, 81, 73, 0.6), inset 0 1px 2px rgba(255,255,255,0.3);
    animation: pulse-red 1.5s ease-in-out infinite;
}

.legend-dot.warning { 
    background: radial-gradient(circle at 35% 35%, #ffe58f, #d29922 60%, #9e6a03);
    box-shadow: 0 0 8px rgba(210, 153, 34, 0.6), inset 0 1px 2px rgba(255,255,255,0.3);
    animation: pulse-amber 2s ease-in-out infinite;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 6px rgba(63, 185, 80, 0.5); }
    50% { box-shadow: 0 0 14px rgba(63, 185, 80, 0.8); }
}

@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 6px rgba(248, 81, 73, 0.5); }
    50% { box-shadow: 0 0 14px rgba(248, 81, 73, 0.8); }
}

@keyframes pulse-amber {
    0%, 100% { box-shadow: 0 0 6px rgba(210, 153, 34, 0.5); }
    50% { box-shadow: 0 0 14px rgba(210, 153, 34, 0.8); }
}

.legend-line {
    width: 20px;
    height: 3px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Zoom Controls */
.zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.zoom-btn {
    width: 36px;
    height: 36px;
    background: rgba(20, 28, 47, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

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

.zoom-level {
    font-size: 11px;
    text-align: center;
    padding: 4px 0;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Minimap */
.topology-minimap {
    position: absolute;
    bottom: 20px;
    left: 16px;
    width: 150px;
    height: 100px;
    background: rgba(20, 28, 47, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

/* ============================================
   Right Panel - Device Details
   ============================================ */
.topology-detail-panel {
    --detail-panel-w: clamp(
        var(--topology-detail-panel-min),
        var(--topology-detail-panel-prefer),
        var(--topology-detail-panel-max)
    );
    box-sizing: border-box;
    width: var(--detail-panel-w);
    min-width: 0;
    /* Üst bölüm daralınca satırı taşırma: içerik küçülsün, gerekirse yatay kaydırma yok */
    max-width: 100%;
    flex: 0 1 var(--detail-panel-w);
    flex-grow: 0;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    align-self: stretch;
    /* Çentikli ekranlarda sağ boşluk */
    padding-right: env(safe-area-inset-right, 0);
    transition: transform 0.3s ease, width 0.3s ease, flex-basis 0.3s ease;
}

.topology-detail-panel > #deviceDetailPanel {
    min-width: 0;
    width: 100%;
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.topology-detail-panel.collapsed {
    width: 0;
    min-width: 0;
    max-width: 0;
    flex-basis: 0;
    border-left-width: 0;
    padding: 0;
    margin: 0;
    transform: translateX(100%);
}

.detail-panel-header {
    padding: 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-panel-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: inherit;
    flex-shrink: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.detail-panel-icon .topology-device-svg,
.detail-panel-icon .topology-device-svg svg {
    display: block;
    width: 100%;
    height: 100%;
}

.detail-panel-icon--multi {
    background: rgba(123, 97, 255, 0.12);
    border: 1px solid var(--accent-secondary);
    color: var(--accent-secondary);
}

.detail-panel-icon--multi svg {
    display: block;
    width: 100%;
    height: 100%;
    padding: 4px;
    box-sizing: border-box;
}

.detail-panel-empty {
    min-height: 200px;
}

.detail-panel-empty-inner {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.detail-panel-empty-graphic {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    filter: drop-shadow(0 2px 12px rgba(0, 245, 212, 0.1));
}

.detail-panel-empty-graphic svg {
    width: 100%;
    height: 100%;
    display: block;
}

.detail-panel-empty-text {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.detail-panel-title {
    flex: 1;
    min-width: 0;
}

.detail-panel-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-panel-title .device-type-badge {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.detail-panel-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.detail-panel-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.detail-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.detail-section {
    margin-bottom: 20px;
}

.detail-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 12px;
    color: var(--text-muted);
}

.detail-value {
    font-size: 13px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    text-align: right;
}

.detail-value.status-up { color: var(--status-up); }
.detail-value.status-down { color: var(--status-down); }
.detail-value.status-warning { color: var(--status-warning); }
.detail-value.status-maintenance { color: var(--accent-secondary); }

/* Connected Devices List */
.connected-device-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.connected-device-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.connected-device-item:hover {
    background: var(--bg-hover);
}

.connected-device-item .device-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: inherit;
    flex-shrink: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.connected-device-item .device-icon .topology-device-svg,
.connected-device-item .device-icon .topology-device-svg svg {
    display: block;
    width: 100%;
    height: 100%;
}

.connected-device-item .device-info {
    flex: 1;
    min-width: 0;
}

.connected-device-item .device-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.connected-device-item .port-info {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.connected-device-item .link-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Detail Panel Actions */
.detail-panel-actions {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.detail-action-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.detail-action-btn.primary {
    background: var(--accent-primary);
    border: none;
    color: white;
}

.detail-action-btn.primary:hover {
    box-shadow: 0 4px 12px rgba(123, 97, 255, 0.4);
}

.detail-action-btn.secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.detail-action-btn.secondary:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

/* Detail panel — device edit form */
.detail-panel-form .detail-form-error {
    margin: 0 16px 8px 16px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    font-size: 12px;
    min-height: 0;
}
.detail-panel-form .detail-form-error:empty {
    display: none;
    padding: 0;
    margin: 0;
}
.detail-panel-form .detail-form-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}
.detail-panel-form .detail-form-row > span:first-child,
.detail-panel-form .detail-form-row > span {
    color: var(--text-muted);
    font-weight: 500;
}
.detail-form-input,
.detail-form-textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary, rgba(0, 0, 0, 0.2));
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
}
.detail-form-textarea {
    resize: vertical;
    min-height: 48px;
}
.detail-form-input:focus,
.detail-form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}
.detail-form-row.detail-form-check {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.detail-form-check input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* ============================================
   Empty State
   ============================================ */
.topology-empty-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-muted);
    pointer-events: none;
    max-width: 360px;
}

.topology-empty-state-graphic {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    opacity: 0.95;
    filter: drop-shadow(0 4px 24px rgba(0, 245, 212, 0.12));
}

.topology-empty-state-graphic svg {
    width: 100%;
    height: 100%;
    display: block;
}

.topology-empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.topology-empty-state p {
    font-size: 14px;
    max-width: 300px;
}

/* ============================================
   Context Menu
   ============================================ */
.topology-context-menu {
    position: fixed;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 6px;
    min-width: 180px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    animation: contextMenuIn 0.15s ease;
}

@keyframes contextMenuIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.context-menu-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

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

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

.context-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 0;
}

/* ============================================
   Loading State
   ============================================ */
.topology-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10, 14, 23, 0.9);
    z-index: 100;
}

.topology-loading .spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.topology-loading p {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 14px;
}

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

/* ============================================
   Toast Notifications (Topology Specific)
   ============================================ */
.topology-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    animation: toastIn 0.3s ease;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.topology-toast.success { border-left: 3px solid var(--status-up); }
.topology-toast.error { border-left: 3px solid var(--status-down); }
.topology-toast.warning { border-left: 3px solid var(--status-warning); }

/* ============================================
   Modal Styles
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    max-width: 90%;
    max-height: 90vh;
    overflow: auto;
    animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--status-danger);
    color: white;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

/* Button styles for modal */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 12px rgba(123, 97, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 97, 255, 0.4);
}

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

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

/* ============================================
   Connection Handles (Visio-like)
   ============================================ */
.node-connection-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border: 2px solid white;
    border-radius: 50%;
    cursor: crosshair;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.node-connection-handle:hover {
    transform: scale(1.2);
}

.node:hover .node-connection-handle {
    opacity: 1;
}

.node-connection-handle.top { top: -6px; left: 50%; transform: translateX(-50%); }
.node-connection-handle.bottom { bottom: -6px; left: 50%; transform: translateX(-50%); }
.node-connection-handle.left { left: -6px; top: 50%; transform: translateY(-50%); }
.node-connection-handle.right { right: -6px; top: 50%; transform: translateY(-50%); }

/* ============================================
   Minimap Styles
   ============================================ */
.topology-minimap {
    position: absolute;
    bottom: 80px;
    left: 16px;
    width: 180px;
    height: 120px;
    background: rgba(20, 28, 47, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.minimap-viewport {
    position: absolute;
    border: 2px solid var(--accent-primary);
    background: rgba(123, 97, 255, 0.1);
    pointer-events: none;
}

/* ============================================
   Snap Grid Indicator
   ============================================ */
.snap-indicator {
    position: absolute;
    pointer-events: none;
    z-index: 1000;
}

.snap-line-h,
.snap-line-v {
    position: absolute;
    background: var(--accent-primary);
    opacity: 0.5;
}

.snap-line-h {
    height: 1px;
    width: 100%;
    left: 0;
}

.snap-line-v {
    width: 1px;
    height: 100%;
    top: 0;
}

/* ============================================
   Connection Preview Line
   ============================================ */
.connection-preview {
    position: absolute;
    pointer-events: none;
    z-index: 999;
}

.connection-preview-line {
    stroke: var(--accent-primary);
    stroke-width: 2;
    stroke-dasharray: 8 4;
    fill: none;
    animation: dashMove 0.5s linear infinite;
}

@keyframes dashMove {
    to {
        stroke-dashoffset: -12;
    }
}

/* ============================================
   Device Tooltip (Hover)
   ============================================ */
.device-tooltip {
    position: fixed;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    min-width: 200px;
    max-width: 300px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    pointer-events: none;
    animation: tooltipIn 0.15s ease;
}

@keyframes tooltipIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.device-tooltip-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.device-tooltip-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-tooltip-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.device-tooltip-type {
    font-size: 11px;
    color: var(--text-muted);
}

.device-tooltip-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 4px 0;
}

.device-tooltip-label {
    color: var(--text-muted);
}

.device-tooltip-value {
    color: var(--text-primary);
    font-family: var(--font-mono);
}

/* ============================================
   Link Label Badge
   ============================================ */
.link-label-badge {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 9px;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ============================================
   Selection Rectangle
   ============================================ */
.selection-rect {
    position: absolute;
    border: 2px dashed var(--accent-primary);
    background: rgba(123, 97, 255, 0.1);
    pointer-events: none;
    z-index: 100;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1200px) {
    :root {
        --topology-detail-panel-prefer: 30vw;
        --topology-detail-panel-max: 360px;
    }

    .topology-sidebar {
        width: 240px;
        min-width: 240px;
    }
}

@media (max-width: 992px) {
    .topology-sidebar {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 100;
        transform: translateX(-100%);
    }

    .topology-sidebar:not(.collapsed) {
        transform: translateX(0);
    }
    
    /* Overlay: JS toggles .collapsed only — show panel when NOT collapsed */
    .topology-detail-panel {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 100;
        height: 100%;
        max-height: 100%;
        /* Tablet: sağ sheet; genişlik viewport payı, taşmayı engelle */
        --topology-detail-panel-prefer: min(36vw, 100vw - 24px);
        --topology-detail-panel-max: 400px;
        max-width: min(100% - 8px, 100vw - 8px);
        transform: translateX(100%);
    }

    .topology-detail-panel:not(.collapsed) {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .toolbar-btn span {
        display: none;
    }
    
    .toolbar-stats {
        display: none;
    }
    
    .topology-sidebar {
        width: 100% !important;
        min-width: 0;
        max-width: 100%;
    }

    .topology-detail-panel:not(.collapsed) {
        width: 100% !important;
        min-width: 0;
        max-width: 100%;
        flex: 0 0 auto !important;
        --detail-panel-w: 100%;
        --topology-detail-panel-prefer: 100%;
        --topology-detail-panel-max: 100%;
    }

    .topology-detail-panel.collapsed {
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
    }

    .detail-panel-actions {
        flex-wrap: wrap;
    }

    .detail-action-btn {
        min-width: 0;
        flex: 1 1 calc(50% - 4px);
    }
}

/* ============================================
   Box Selection & Bulk Actions
   ============================================ */

/* Selection Box Styling */
.topology-selection-box {
    position: absolute;
    border: 2px solid var(--topo-accent, #58a6ff);
    background: rgba(88, 166, 255, 0.08);
    pointer-events: none;
    z-index: 9999;
    border-radius: 4px;
    box-shadow: 
        0 0 15px rgba(88, 166, 255, 0.25),
        inset 0 0 30px rgba(88, 166, 255, 0.05);
    animation: selection-pulse 0.8s ease-in-out infinite;
}

@keyframes selection-pulse {
    0%, 100% { 
        border-color: rgba(88, 166, 255, 0.8);
        box-shadow: 0 0 10px rgba(88, 166, 255, 0.2);
    }
    50% { 
        border-color: rgba(88, 166, 255, 1);
        box-shadow: 0 0 20px rgba(88, 166, 255, 0.4);
    }
}

/* Bulk Actions Floating Menu */
.bulk-actions-menu {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(22, 27, 34, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    z-index: 99999;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(88, 166, 255, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: slideUp 0.2s ease-out;
    pointer-events: auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.bulk-actions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(48, 54, 61, 0.6);
}

.bulk-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--topo-accent, #58a6ff);
}

.bulk-close {
    background: rgba(110, 118, 129, 0.1);
    border: none;
    color: var(--topo-text-secondary, #8b949e);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bulk-close:hover {
    background: rgba(248, 81, 73, 0.2);
    color: #f85149;
}

.bulk-close:active {
    background: rgba(248, 81, 73, 0.3);
}

.bulk-actions-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.bulk-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid var(--topo-border, #30363d);
    border-radius: 8px;
    background: rgba(33, 38, 45, 0.9);
    color: var(--topo-text-primary, #e6edf3);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    white-space: nowrap;
}

.bulk-btn:hover {
    background: rgba(88, 166, 255, 0.2);
    border-color: var(--topo-accent, #58a6ff);
    transform: translateY(-1px);
}

.bulk-btn:active {
    transform: translateY(0);
    background: rgba(88, 166, 255, 0.3);
}

.bulk-btn i {
    font-size: 12px;
}

.bulk-btn-move {
    color: var(--topo-accent, #58a6ff);
}

.bulk-btn-move:hover {
    background: rgba(88, 166, 255, 0.2);
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.2);
}

.bulk-btn-danger {
    color: #f85149;
    border-color: rgba(248, 81, 73, 0.4);
}

.bulk-btn-danger:hover {
    background: rgba(248, 81, 73, 0.2);
    border-color: #f85149;
    box-shadow: 0 0 10px rgba(248, 81, 73, 0.2);
}

/* Selected Node Highlight */
.topology-canvas-container [data-selected="true"] {
    filter: drop-shadow(0 0 8px var(--topo-accent, #58a6ff));
}

/* Cursor styles for selection mode */
.topology-canvas-container.selecting {
    cursor: crosshair !important;
}

/* Keyboard shortcuts hint */
.selection-hint {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(22, 27, 34, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid var(--topo-border, #30363d);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 11px;
    color: var(--topo-text-secondary, #8b949e);
    z-index: 100;
}

.selection-hint kbd {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(110, 118, 129, 0.2);
    border: 1px solid rgba(110, 118, 129, 0.4);
    border-radius: 4px;
    font-family: monospace;
    font-size: 10px;
    color: var(--topo-text-primary, #e6edf3);
}

/* Save Indicator */
.save-indicator {
    position: fixed;
    top: 70px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 99999;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.save-indicator.saving {
    opacity: 1;
    transform: translateY(0);
    background: rgba(88, 166, 255, 0.15);
    border: 1px solid rgba(88, 166, 255, 0.3);
    color: #58a6ff;
}

.save-indicator.saved {
    opacity: 1;
    transform: translateY(0);
    background: rgba(63, 185, 80, 0.15);
    border: 1px solid rgba(63, 185, 80, 0.3);
    color: #3fb950;
}

.save-indicator i {
    font-size: 14px;
}
