.webronic-virtual-tour-editor .tour-editor-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.editor-preview {
    flex: 2;
    position: relative;
    width: 100%;
}



.editor-controls {
    flex: 1;
    background: #fff;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 4px;
    min-width: 350px;
}

#pannellum-container {
    width: 100%;
    height: 600px;
    background: #f1f1f1;
    position: relative;
}

.editor-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 15px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: #555;
}

.tab-button.active {
    border-bottom-color: #2271b1;
    color: #2271b1;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.shortcode-input {
    width: 100%;
    max-width: 400px;
    background: #f1f1f1;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.scenes-table, .hotspots-table {
    margin-top: 15px;
    width: 100%;
}

.scenes-table th, .hotspots-table th {
    text-align: left;
    padding: 8px 10px;
}

.scenes-table td, .hotspots-table td {
    padding: 8px 10px;
    vertical-align: middle;
}

.status-default {
    color: #4a6fdc;
    font-weight: 600;
}

.status-normal {
    color: #666;
}

.hotspot-type {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.85em;
}

.hotspot-type.scene {
    background-color: #e6ecff;
    color: #4a6fdc;
}

.hotspot-type.info {
    background-color: #f0f6fc;
    color: #1d2327;
}

.actions a {
    text-decoration: none;
}

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

.position-values {
    padding: 5px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.9em;
}

.current-scene-indicator {
    background: #f5f5f5;
    padding: 8px;
    border-radius: 3px;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.current-scene-indicator span {
    font-weight: 600;
}

.no-scenes, .no-hotspots {
    text-align: center;
    padding: 20px;
    color: #999;
}

.no-scenes svg, .no-hotspots svg {
    margin-bottom: 10px;
}

.no-scenes p, .no-hotspots p {
    margin: 5px 0;
}

/* Modal styles */
.webronic-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 4px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.close-modal {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: #000;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* Direction options */
.direction-options {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.direction-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.direction-option img {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.direction-option input[type="radio"] {
    display: none;
}

.direction-option input[type="radio"]:checked + img {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px #2271b1;
}


.scene-hotspot {
    background-image: url('../hotspots/up.png');
}

.scene-hotspot.up {
    background-image: url('../hotspots/up.png');
}

.scene-hotspot.right {
    background-image: url('../hotspots/right.png');
}

.scene-hotspot.left {
    background-image: url('../hotspots/left.png');
}

.info-hotspot {
    background-image: url('../hotspots/info.png');
}

.custom-hotspot:hover {
    transform: scale(1.2);
}


/* Hotspot Tooltip Styles */
.hotspot-tooltip {
    position: absolute;
    color: white; /* Keep white text */
    padding: 2px 5px;
    font-size: 14px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
    opacity: 1;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: none; /* No background */
    border-radius: 0;
    min-width: auto;
    text-align: center;
    text-shadow: 0 0 3px rgba(0,0,0,0.8), 
                 0 0 5px rgba(0,0,0,0.6); /* Stronger shadow for white text */
    font-weight: bold;
    filter: drop-shadow(0 0 2px black); /* Additional shadow effect */
}

/* For scene hotspots - "Toward [scene name]" */
.custom-hotspot.scene-hotspot + .hotspot-tooltip {
    color: #fff;
    text-shadow: 0 0 4px #000,
                 0 0 6px #000,
                 0 0 8px #000;
}

/* For info hotspots */
.custom-hotspot.info-hotspot + .hotspot-tooltip {
    color: #fff;
    text-shadow: 0 0 4px #000,
                 0 0 6px #000;
}

/* Updated Hotspot Styles */
.custom-hotspot {
    width: 50px;
    height: 50px;
    border: none;
    background-color: transparent !important;
    box-shadow: none;
    transition: all 0.3s ease;
    display: fixed;
    align-items: center;
    justify-content: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 15px;
}

/* Rest of the CSS remains the same */
/* Right-click instructions */
.hotspot-instructions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    pointer-events: none;
}

.hotspot-instructions svg {
    width: 16px;
    height: 16px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .tour-editor-container {
        flex-direction: column;
    }
    
    .editor-preview, .editor-controls {
        flex: none;
        width: 100%;
    }
    
    #pannellum-container {
        height: 500px;
    }
}

@media (max-width: 782px) {
    .editor-tabs {
        flex-wrap: wrap;
    }
    
    .tab-button {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .tab-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .scenes-table, .hotspots-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .direction-options {
        flex-direction: column;
        gap: 10px;
    }
}