/* Mobile First Design */
.npu-container {
    width: 98%;
    max-width: 1200px;
    margin: 10px auto;
    padding: 15px;
    background: #2d2d2d;
    color: white;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    text-align: center;
}

.npu-title {
    color: gold;
    margin: 15px 0;
}

.npu-columns {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}

.npu-column {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 6px;
    margin: 0 auto;
    width: 100%;
    max-width: 300px;
}

.npu-conversion {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.npu-input {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    background: #333;
    border: 2px solid #444;
    color: white;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.npu-btn {
    width: 100%;
    max-width: 200px;
    padding: 12px;
    margin: 5px 0;
    background: #2d5a1e;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.npu-btn:hover {
    background: #3cb371;
}

.npu-distance, .npu-network, .npu-material {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #444;
}

#map-container {
    width: 100%;
    max-width: 100%;
    height: 300px;
    margin: 10px auto;
    background: #1a1a1a;
    border: 2px solid #444;
    cursor: grab;
}

#map-container:active {
    cursor: grabbing;
}

.npu-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

#portal-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 600px;
}

#portal-list li {
    padding: 10px;
    background: #333;
    margin: 5px 0;
    border-radius: 4px;
    text-align: left;
}

.npu-btn-small {
    padding: 5px 10px;
    background: #5a2d1e;
    margin-left: 10px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.npu-btn-small:hover {
    background: #3cb371;
}

.npu-material-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.npu-material-controls select {
    background: #333;
    border: 2px solid #444;
    color: white;
    padding: 10px;
    border-radius: 4px;
    font-size: 16px;
}

.npu-tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    display: none;
}

/* Tablet and Desktop */
@media (min-width: 768px) {
    .npu-columns {
        flex-direction: row;
        gap: 20px;
        justify-content: center;
    }
    
    .npu-column {
        max-width: 350px;
    }
    
    .npu-conversion {
        justify-content: center;
    }
    
    #map-container {
        height: 500px;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .npu-container {
        max-width: 1200px;
    }
    
    #map-container {
        height: 600px;
    }
}