body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.step {
    background: white;
    margin-bottom: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border-left: 5px solid #3498db;
    border-bottom: 3px solid #ecf0f1;
    padding-bottom: 20px;
}

.step-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 20px 30px;
    font-size: 1.5em;
    font-weight: bold;
}

.step-content {
    padding: 30px;
}

.analysis-section {
    margin-bottom: 30px;
}

.analysis-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3em;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 8px;
}


.network-container {
    height: 500px;
    margin: 0;
    background: white;
}

.viewer-wrapper {
    position: relative;
    height: 600px;
}

.pointcloud-container {
    height: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 0;
    background: #000;
    position: relative;
}

.viewer-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 100;
    font-size: 12px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    transition: all 0.3s ease;
}

.controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px 8px 12px;
    border-bottom: 1px solid #e0e0e0;
    background-color: rgba(248, 249, 250, 0.95);
    border-radius: 6px 6px 0 0;
    font-weight: 600;
    color: #333;
}

.hide-controls-btn {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.2s ease;
    line-height: 1;
}

.hide-controls-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

.controls-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    overflow: hidden;
}

.controls-content.collapsed {
    max-height: 0;
    padding: 0 10px;
    opacity: 0;
}

.viewer-controls label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.viewer-controls label:last-child {
    margin-bottom: 0;
}

.viewer-controls input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
    cursor: pointer;
}

.dual-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.view-panel {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.view-panel h4 {
    background: #f8f9fa;
    margin: 0;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    color: #2c3e50;
}

.network-search {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    align-items: center;
}

.network-search input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.network-search input[type="text"]:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.network-search button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.network-search button:first-of-type {
    background: #3498db;
    color: white;
}

.network-search button:first-of-type:hover {
    background: #2980b9;
}

.network-search button:last-of-type {
    background: #95a5a6;
    color: white;
}

.network-search button:last-of-type:hover {
    background: #7f8c8d;
}

.floating-image-box {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #3498db;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    max-width: 300px;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.floating-image-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.object-info {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

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

.floating-image-content {
    padding: 12px;
    text-align: center;
}

.floating-image-content img {
    height: auto;
    width: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    max-height: 150px;
    min-height: 80px;
    min-width: 80px;
    max-width: 200px;
    object-fit: contain;
}

.floating-image-content img[alt*="not available"] {
    opacity: 0.7;
    filter: grayscale(100%);
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .step-content {
        padding: 20px;
    }

    .step-header {
        font-size: 1.3em;
        padding: 15px 20px;
    }

    .dual-view {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin: 20px 0;
    }
}