/* Updated APRS Style - PD4PM Theme */
:root {
    --primary-color: #1a237e;
    --secondary-color: #0d47a1;
    --accent-color: #ffd700;
    --text-color: #333;
    --background-color: #0a0a0a;
    --matrix-green: #00ff41;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #0a0a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Animated grid background - subtle matrix effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 30s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Hide header when in iframe */
body.in-iframe .header {
    display: none;
}

.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 15px 20px;
    display: flex;
    align-items: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    position: relative;
    border-bottom: 2px solid var(--accent-color);
}

/* Radio waves animation */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 15px,
        rgba(255,215,0,0.05) 15px,
        rgba(255,215,0,0.05) 30px
    );
    pointer-events: none;
}

.header h1 {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}



@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.header-stats {
    display: flex;
    gap: 20px;
    font-size: 0.9em;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #e0e0e0;
}

.connection-status {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.status-connected {
    background: rgba(39, 174, 96, 0.3);
    color: var(--matrix-green);
    border-color: var(--matrix-green);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.status-disconnected {
    background: rgba(231, 76, 60, 0.3);
    color: #ff6b6b;
    border-color: #ff6b6b;
}

.main-container {
    display: flex;
    height: calc(100vh - 80px);
}

body.in-iframe .main-container {
    height: 100vh;
}

.map-container {
    flex: 1;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
}

.sidebar {
    width: 500px;
    background: linear-gradient(180deg, rgba(26,35,126,0.4) 0%, rgba(13,71,161,0.4) 100%);
    backdrop-filter: blur(15px);
    border-left: 2px solid rgba(255, 215, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.sidebar-tabs {
    display: flex;
    background: linear-gradient(180deg, rgba(26,35,126,0.6) 0%, rgba(13,71,161,0.6) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--accent-color);
}

.tab-button {
    flex: 1;
    padding: 15px 12px;
    background: none;
    border: none;
    color: #bdc3c7;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    border-right: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.tab-button:hover::before {
    left: 100%;
}

.tab-button:last-child {
    border-right: none;
}

.tab-button.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    box-shadow: inset 0 -3px 0 var(--accent-color);
}

.tab-button:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
}

/* UPDATED RADIO DISPLAY - PD4PM Style */
.radio-display {
    background: linear-gradient(145deg, 
        rgba(26,35,126,0.4), 
        rgba(13,71,161,0.4)
    );
    backdrop-filter: blur(15px);
    border: 2px solid;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 20px rgba(0,0,0,0.3),
        inset 0 1px 2px rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

/* Hop count border colors - Ham radio theme */
.radio-display.hops-direct {
    border-color: var(--matrix-green);
    box-shadow: 
        0 4px 20px rgba(0,0,0,0.3),
        inset 0 1px 2px rgba(255,255,255,0.1),
        0 0 15px rgba(0, 255, 65, 0.3);
}

.radio-display.hops-1 {
    border-color: var(--accent-color);
    box-shadow: 
        0 4px 20px rgba(0,0,0,0.3),
        inset 0 1px 2px rgba(255,255,255,0.1),
        0 0 15px rgba(255, 215, 0, 0.3);
}

.radio-display.hops-2 {
    border-color: #ff8c00;
    box-shadow: 
        0 4px 20px rgba(0,0,0,0.3),
        inset 0 1px 2px rgba(255,255,255,0.1),
        0 0 15px rgba(255, 140, 0, 0.3);
}

.radio-display.hops-3 {
    border-color: #ff4500;
    box-shadow: 
        0 4px 20px rgba(0,0,0,0.3),
        inset 0 1px 2px rgba(255,255,255,0.1),
        0 0 15px rgba(255, 69, 0, 0.3);
}

.radio-display.hops-4plus {
    border-color: #dc143c;
    box-shadow: 
        0 4px 20px rgba(0,0,0,0.3),
        inset 0 1px 2px rgba(255,255,255,0.1),
        0 0 15px rgba(220, 20, 60, 0.3);
}

.radio-display:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.4),
        inset 0 1px 2px rgba(255,255,255,0.1),
        0 0 20px rgba(255, 215, 0, 0.4);
}

/* HEADER BAR - Ham Radio Style */
.radio-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 10px 12px;
    display: flex;
    align-items: center;
    align-items: center;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border-radius: 10px 10px 0 0;
    position: relative;
    overflow: hidden;
}

.radio-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 8px,
        rgba(255,215,0,0.1) 8px,
        rgba(255,215,0,0.1) 16px
    );
    pointer-events: none;
}

.radio-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    position: relative;
    z-index: 2;
}

.radio-header-icon {
    font-size: 1.6em;
    filter: drop-shadow(0 0 8px var(--accent-color));
    animation: iconGlow 3s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% { filter: drop-shadow(0 0 8px var(--accent-color)); }
    50% { filter: drop-shadow(0 0 15px var(--accent-color)); }
}

.radio-header-callsign {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    letter-spacing: 1px;
}

.radio-header-right {
    display: flex;
    align-items: center;
    font-size: 0.85em;
    position: relative;
    z-index: 2;
}

.radio-header-type {
    background: rgba(255,215,0,0.2);
    backdrop-filter: blur(10px);
    padding: 3px 8px;
    border-radius: 8px;
    color: var(--accent-color);
    font-size: 0.8em;
    font-weight: 600;
    border: 1px solid rgba(255,215,0,0.4);
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.radio-header-distance {
    font-size: 0.9em;
    font-weight: 600;
    color: #e0e0e0;
}

/* LCD SCREEN - Matrix style */
.radio-screen {
    background: linear-gradient(160deg, #0a0a2e, #16213e);
    border: 1px solid #333;
    border-radius: 0 0 10px 10px;
    padding: 12px 14px;
    font-family: 'Courier New', monospace;
    color: var(--matrix-green);
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
    box-shadow: 
        inset 0 2px 8px rgba(0,0,0,0.6),
        inset 0 -1px 2px rgba(255,255,255,0.05);
    position: relative;
}

/* Subtle scanline effect */
.radio-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0,255,65,0.03) 3px,
        rgba(0,255,65,0.03) 6px
    );
    pointer-events: none;
    border-radius: 0 0 10px 10px;
}

.station-time-info {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85em;
    color: #88ffaa;
    gap: 4px;
}

.station-timestamp {
    color: var(--accent-color);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    margin-right: auto;
}

.packet-type-label {
    background: rgba(0, 255, 136, 0.2);
    backdrop-filter: blur(5px);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75em;
    color: var(--matrix-green);
    border: 1px solid rgba(0, 255, 136, 0.4);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.2);
}

.station-routing {
    margin-bottom: 8px;
    font-size: 0.8em;
}

.route-direct {
    color: var(--matrix-green);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}

.route-via {
    color: var(--accent-color);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.hop-count {
    color: #66ccff;
    font-size: 0.75em;
    margin-left: 5px;
    text-shadow: 0 0 5px rgba(102, 204, 255, 0.5);
}

.station-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 8px;
    font-size: 0.8em;
}

.metric-item {
    color: #ffdd44;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(255, 221, 68, 0.5);
}

.metric-label {
    color: #cccccc;
    font-size: 0.9em;
    margin-right: 4px;
}

.station-radio-info {
    margin-bottom: 8px;
    font-size: 0.8em;
    color: #88ffaa;
    display: flex;
    align-items: center;
    gap: 10px;
}

.radio-capability {
    font-size: 0.75em;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--matrix-green);
}

.station-message {
    background: rgba(0, 255, 136, 0.1);
    backdrop-filter: blur(5px);
    padding: 8px 10px;
    border-radius: 6px;
    font-style: italic;
    font-size: 0.8em;
    color: #aaffcc;
    
    text-shadow: 0 0 3px rgba(170, 255, 204, 0.4);
    margin-bottom: 8px;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
    
}

/* PACKETS LIST */
.recent-packets {
    display: flex;
    flex-direction: column;
}

.packet-item {
    background: linear-gradient(145deg, 
        rgba(26,35,126,0.3), 
        rgba(13,71,161,0.3)
    );
    backdrop-filter: blur(10px);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9em;
    border-left: 3px solid var(--accent-color);
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.packet-item:hover {
    transform: translateX(5px);
}

.packet-timestamp {
    color: #95a5a6;
    font-size: 0.8em;
    margin-bottom: 6px;
}

.packet-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.packet-source {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1em;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.packet-type {
    background: rgba(13,71,161,0.5);
    backdrop-filter: blur(5px);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7em;
    color: #bdc3c7;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.packet-radio {
    font-size: 1.1em;
}

.message-capable {
    color: var(--matrix-green);
    font-size: 0.8em;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

.tracker-only {
    color: var(--accent-color);
    font-size: 0.8em;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.packet-enhanced-info {
    font-size: 0.8em;
    color: #95a5a6;
    margin-bottom: 6px;
}

.packet-raw-data {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    padding: 8px 10px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.75em;
    color: var(--matrix-green);
    word-break: break-all;
    line-height: 1.3;
    border: 1px solid rgba(0, 255, 65, 0.3);
    max-height: 80px;
    overflow-y: auto;
    text-shadow: 0 0 3px rgba(0, 255, 65, 0.3);
}

/* CONTROLS PANEL */
.controls-panel {
    background: linear-gradient(145deg, 
        rgba(26,35,126,0.4), 
        rgba(13,71,161,0.4)
    );
    backdrop-filter: blur(15px);
    padding: 20px;
    border-bottom: 2px solid var(--accent-color);
}

.control-group {
    margin-bottom: 15px;
}

.control-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    letter-spacing: 1px;
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    color: #e0e0e0;
}

.switch {
    position: relative;
    width: 50px;
    height: 24px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(5px);
}

.switch.active {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.switch-handle {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: linear-gradient(145deg, white, #f0f0f0);
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.switch.active .switch-handle {
    transform: translateX(26px);
    background: linear-gradient(145deg, var(--accent-color), #ffed4e);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* APRS SPRITE STYLING */
.aprs-sprite-icon {
    cursor: pointer;
    transition: all 0.3s ease;
    transform-origin: center center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    position: relative;
    z-index: 1000;
}

.aprs-sprite-icon.direct {
    filter: drop-shadow(2px 2px 6px rgba(0, 255, 65, 0.6));
}

.aprs-sprite-icon.digi {
    filter: drop-shadow(2px 2px 6px rgba(255, 215, 0, 0.6));
}

.aprs-sprite-icon:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 0 15px var(--accent-color));
}

.aprs-sprite-icon.old-marker {
    opacity: 0.5 !important;
    filter: blur(1px) drop-shadow(1px 1px 2px rgba(128, 128, 128, 0.4)) !important;
    transition: opacity 2s ease, filter 2s ease;
}

/* CALLSIGN LABELS */
.callsign-label {
    background: linear-gradient(145deg, rgba(26,35,126,0.9), rgba(13,71,161,0.9));
    backdrop-filter: blur(10px);
    color: var(--accent-color);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 215, 0, 0.3);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    display: block;
    width: 100%;
}

.callsign-label.old-marker {
    opacity: 0.4 !important;
    transition: opacity 2s ease;
}

/* MAP ELEMENTS */
.auto-trail {
    stroke: var(--accent-color);
    stroke-width: 4;
    fill: none;
    stroke-opacity: 0.8;
    stroke-dasharray: 8,4;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.trail-line {
    stroke: #ff6b6b;
    stroke-width: 3;
    fill: none;
    stroke-opacity: 0.8;
    filter: drop-shadow(0 0 5px rgba(255, 107, 107, 0.5));
}

.home-marker {
    background: linear-gradient(145deg, var(--accent-color), #ffed4e) !important;
    border: 3px solid white !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7) !important;
}

.coverage-circle {
    stroke: var(--matrix-green);
    stroke-width: 2;
    fill: rgba(0, 255, 65, 0.1);
    stroke-dasharray: 8,4;
    filter: drop-shadow(0 0 5px rgba(0, 255, 65, 0.3));
}

/* MOBILE LAYOUT */
@media (max-width: 768px) {
    body {
        overflow: hidden;
    }
    
    .header {
        padding: 10px 15px;
        flex-direction: column;
        gap: 10px;
        min-height: 90px;
    }
    
    .header h1 {
        font-size: 1.3em;
        text-align: center;
        margin: 0;
    }
    
    .header-stats {
        display: flex;
        justify-content: center;
        gap: 15px;
        font-size: 0.8em;
        flex-wrap: wrap;
    }
    
    .main-container {
        flex-direction: column;
        height: calc(100vh - 90px);
    }
    
    body.in-iframe .main-container {
        height: 100vh;
    }
    
    .map-container {
        height: 50vh;
        width: 100%;
        flex: none;
    }
    
    .sidebar {
        width: 100%;
        height: 50vh;
        flex: none;
        position: relative;
        right: 0;
        border-left: none;
        border-top: 2px solid var(--accent-color);
    }
    
    .tab-button {
        padding: 10px 6px;
        font-size: 0.9em;
        text-align: center;
        min-height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .tab-content {
        height: calc(50vh - 47px);
        overflow-y: auto;
        padding: 8px;
        flex: none;
    }
    
    /* Mobile radio displays */
    .radio-display {
        margin-bottom: 8px;
        border-radius: 8px;
        border-width: 2px;
    }
    
    .radio-header {
        padding: 8px 10px;
        font-size: 0.85em;
    }
    
    .radio-header-callsign {
        font-size: 0.95em;
    }
    
    .radio-screen {
        padding: 8px 10px;
        font-size: 0.8em;
    }
    
    /* Scrollbar styling */
    .tab-content::-webkit-scrollbar {
        width: 4px;
    }
    
    .tab-content::-webkit-scrollbar-track {
        background: rgba(26,35,126,0.3);
        border-radius: 2px;
    }
    
    .tab-content::-webkit-scrollbar-thumb {
        background: var(--accent-color);
        border-radius: 2px;
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    
    .tab-content::-webkit-scrollbar-thumb:hover {
        background: #ffed4e;
    }
}


/* =====================================================
   VERBETERDE PATH ROUTING DISPLAY
   ===================================================== */

/* Route chain container */
.route-chain {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
    font-size: 0.85em;
    padding: 4px 0;
}

/* Arrows */
.route-arrow {
    color: #888;
    font-size: 0.9em;
    margin: 0 2px;
}

.mini-arrow {
    color: #666;
    font-size: 0.75em;
    margin: 0 1px;
}

/* RF Direct badge */
.route-direct {
    background: linear-gradient(135deg, #00ff41, #00b82f);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.85em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
}

/* Eerste ontvanger - ontving DIRECT van bron */
.digi-first {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85em;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.4);
}

/* WIJ ontvingen direct van bron - speciale highlight */
.digi-our-direct {
    background: linear-gradient(135deg, #2196F3, #1565C0);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 0.85em;
    box-shadow: 0 0 12px rgba(33, 150, 243, 0.6);
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0%, 100% { box-shadow: 0 0 12px rgba(33, 150, 243, 0.6); }
    50% { box-shadow: 0 0 20px rgba(33, 150, 243, 0.9); }
}

/* WIJ als relay (niet eerste hop) */
.digi-our-relay {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.85em;
    box-shadow: 0 0 8px rgba(156, 39, 176, 0.4);
}

/* Hop 2 - geel/oranje */
.digi-hop-2 {
    background: linear-gradient(135deg, #FFC107, #FFA000);
    color: #333;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.85em;
}

/* Hop 3 - oranje */
.digi-hop-3 {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.85em;
}

/* Hop 4+ - rood */
.digi-hop-4 {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.85em;
}

/* Unused slots [WIDE2-1] */
.route-unused {
    color: #888;
    font-size: 0.75em;
    font-family: 'Courier New', monospace;
    margin-left: 6px;
    background: rgba(255,255,255,0.1);
    padding: 1px 4px;
    border-radius: 4px;
}

/* Aggregated paths container */
.route-aggregated {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.85em;
}

/* Direct percentage badge */
.direct-stats {
    background: rgba(0, 255, 65, 0.2);
    color: var(--matrix-green);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.8em;
    border: 1px solid rgba(0, 255, 65, 0.4);
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

/* Separator between paths */
.path-separator {
    color: #555;
    margin: 0 2px;
}

/* Compact chain voor aggregated view */
.route-compact {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
}

.digi-compact {
    font-size: 0.8em;
    color: #aaa;
}

.digi-first-compact {
    font-size: 0.8em;
    color: #4CAF50;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.digi-ours-compact {
    font-size: 0.8em;
    color: #2196F3;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(33, 150, 243, 0.5);
}

/* Count badge */
.count {
    font-size: 0.75em;
    color: #888;
    margin-left: 2px;
}

/* More paths indicator */
.more-paths {
    background: rgba(255, 215, 0, 0.2);
    color: var(--accent-color);
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.75em;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.more-paths:hover {
    background: rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Unknown state */
.route-unknown {
    color: #666;
    font-style: italic;
    font-size: 0.85em;
}

/* Via route (legacy support) */
.route-via {
    color: var(--accent-color);
    font-size: 0.85em;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .route-chain {
        font-size: 0.8em;
        gap: 2px;
    }
    
    .route-aggregated {
        font-size: 0.8em;
        gap: 4px;
    }
    
    .digi-first,
    .digi-our-direct,
    .digi-our-relay,
    .digi-hop-2,
    .digi-hop-3,
    .digi-hop-4 {
        padding: 2px 6px;
        font-size: 0.8em;
    }
    
    .route-direct {
        padding: 2px 8px;
        font-size: 0.8em;
    }
}