/* Balanset Virtual Tour - Aggressive CSS Reset */
.bvt-container div, .bvt-container span, .bvt-container h3, .bvt-container p, .bvt-container a, .bvt-container img, .bvt-container ul, .bvt-container li, .bvt-container button {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    background: transparent;
    box-shadow: none;
    text-shadow: none;
    color: inherit;
    font-family: Arial, sans-serif; /* Force a consistent font */
    line-height: 1.4;
}
.bvt-container ul {
    list-style: none;
}
.bvt-container button {
    cursor: pointer;
    border-radius: 4px;
    padding: 8px 12px;
}
/* End of Reset */

/* Balanset Virtual Tour - Simplified WordPress Styles */
/* Balanset Virtual Tour - CSS Reset within container */
.bvt-container, .bvt-container * {
    all: revert;
}

/* General container styles */
.bvt-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    background: #f5f5f5;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #ccc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.bvt-container * {
    box-sizing: border-box;
}

/* Top tabs */
.bvt-container .top-tabs {
    display: flex;
    background: #1e3a5f;
    height: 40px;
    border-bottom: 2px solid #2c5282;
    flex-wrap: nowrap;
}

.bvt-container .tab-button {
    flex: 1;
    padding: 8px 16px;
    background: transparent;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s;
    min-width: 0;
    font-size: 14px;
}

.bvt-container .tab-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.bvt-container .tab-button.active {
    background: #2c5282;
}

.bvt-container .key-hint {
    font-size: 10px;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
}

/* Main layout */
.bvt-container .main-layout {
    display: flex;
    flex: 1;
    min-height: 0; /* Changed from 500px */
    overflow: hidden;
}

.bvt-container .left-sidebar {
    width: 180px;
    min-width: 150px;
    background: #e8e8e8;
    border-right: 1px solid #c0c0c0;
    padding: 10px;
    overflow-y: auto;
    flex-shrink: 0;
}

.bvt-container .content-area {
    flex: 1;
    padding: 20px;
    background: white;
    overflow: auto;
    min-width: 0;
}

.bvt-container .right-sidebar-container {
    width: 160px;
    min-width: 140px;
    flex-shrink: 0;
}

.bvt-container .right-sidebar {
    background: #1e3a5f;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 8px;
}

/* Sidebar buttons */
.bvt-container .sidebar-btn {
    background: #2c5282;
    color: white;
    border: none;
    padding: 10px 8px;
    margin-bottom: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 12px;
    text-align: left;
}

.bvt-container .sidebar-btn:hover {
    background: #4a90e2;
}

/* Bottom panel */
.bvt-container .bottom-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e3a5f;
    color: white;
    padding: 8px 16px;
    height: 35px;
    flex-shrink: 0;
}

.bvt-container .status-info {
    display: flex;
    gap: 15px;
    font-size: 11px;
}

.bvt-container .exit-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.bvt-container .exit-btn:hover {
    background: #c82333;
}

.bvt-container .exit-link {
    text-decoration: none;
}

/* Content images */
.bvt-container .content-image,
.bvt-container .main-screenshot {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

/* Steps panel styling */
.bvt-container .balancing-steps-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.bvt-container .step-button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    transition: all 0.3s;
}

.bvt-container .step-button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.bvt-container .step-button.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.bvt-container .photo-button {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.bvt-container .photo-button:hover {
    background: #218838;
}

.bvt-container .run-button {
    background: #17a2b8;
    color: white;
    border-color: #17a2b8;
}

.bvt-container .run-button:hover {
    background: #138496;
}

/* Modal styles */
.bvt-container .modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.bvt-container .modal-content {
    position: relative;
    margin: 2% auto;
    padding: 0;
    width: 90%; /* Changed from 95% */
    max-width: 1000px; /* Changed from 1200px */
    max-height: 90vh; /* Changed from 95vh */
    overflow: auto;
}

.bvt-container .modal img {
    width: 100%;
    height: auto;
    display: block;
}

.bvt-container .close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bvt-container .close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Responsive design */
@media (max-width: 1024px) {
    .bvt-container .left-sidebar {
        width: 150px;
        min-width: 120px;
    }
    
    .bvt-container .right-sidebar-container {
        width: 140px;
        min-width: 120px;
    }
    
    .bvt-container .content-area {
        padding: 10px;
    }
    
    .bvt-container .tab-button {
        font-size: 13px;
        padding: 6px 12px;
        gap: 6px;
    }
}

@media (max-width: 768px) {
    .bvt-container {
        min-height: auto; /* Changed from 500px */
        margin: 10px 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .bvt-container .main-layout {
        flex-direction: column;
        min-height: auto;
    }
    
    .bvt-container .left-sidebar,
    .bvt-container .right-sidebar-container {
        width: 100%;
        min-width: auto;
        max-height: 180px; /* Reduced from 200px */
        overflow-x: auto; /* Allow horizontal scrolling if needed */
    }
    
    .bvt-container .left-sidebar {
        order: 1;
        border-right: none;
        border-bottom: 1px solid #c0c0c0;
    }
    
    .bvt-container .content-area {
        order: 2;
        padding: 15px; /* Changed from 10px */
        min-height: 250px; /* Changed from 300px */
    }
    
    .bvt-container .right-sidebar-container {
        order: 3;
        border-top: 1px solid #c0c0c0;
    }
    
    .bvt-container .right-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 10px;
        align-items: stretch; /* Changed from center */
        justify-content: center;
    }
    
    .bvt-container .sidebar-btn {
        flex: 1 1 110px; /* Adjusted flex-basis */
        min-width: 110px; /* Adjusted min-width */
        margin-bottom: 0;
        padding: 8px 6px; /* Adjusted padding */
        text-align: center;
        font-size: 11px;
        line-height: 1.25; /* Adjusted */
        white-space: normal; /* Changed from nowrap */
        overflow: hidden;
        text-overflow: ellipsis;
        display: flex; /* Added for alignment */
        flex-direction: column; /* Added for alignment */
        align-items: center; /* Added for alignment */
        justify-content: center; /* Added for alignment */
        min-height: 65px; /* Adjusted min-height */
    }
    
    .bvt-container .sidebar-btn i {
        font-size: 1.2em; /* Make icon slightly larger */
        margin-bottom: 4px; /* Add space between icon and text */
    }

    .bvt-container .tab-button {
        font-size: 12px;
        padding: 6px 8px;
        gap: 4px;
    }
    
    .bvt-container .balancing-steps-panel {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 6px;
        padding: 8px;
    }
    
    .bvt-container .status-info {
        gap: 10px;
        font-size: 10px;
    }
    
    .bvt-container .bottom-panel {
        padding: 8px 12px; /* Adjusted padding */
        height: auto;
        min-height: 35px; /* Adjusted min-height */
        flex-wrap: wrap;
        justify-content: center; /* Center items on wrap */
        gap: 8px; /* Add gap for wrapped items */
    }
}

@media (max-width: 480px) {
    .bvt-container .tab-button {
        font-size: 11px;
        padding: 4px 6px;
        gap: 2px;
    }
    
    .bvt-container .key-hint {
        font-size: 8px;
        padding: 1px 3px;
    }
    
    .bvt-container .content-area {
        padding: 8px;
    }
    
    .bvt-container .balancing-steps-panel {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 4px;
        padding: 6px;
    }
    
    .bvt-container .step-button {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .bvt-container .sidebar-btn {
        flex-basis: 90px; /* Adjusted for smaller screens */
        min-width: 90px; /* Adjusted for smaller screens */
        font-size: 10px;
        padding: 6px 4px; /* Adjusted padding */
        gap: 3px; /* Adjusted */
        line-height: 1.2; /* Adjusted */
        white-space: normal; /* Changed from nowrap */
        overflow: hidden;
        text-overflow: ellipsis;
        min-height: 55px; /* Adjusted min-height */
    }
    
    .bvt-container .status-info {
        font-size: 9px;
        gap: 8px;
    }
    
    .bvt-container .exit-btn {
        font-size: 11px;
        padding: 4px 8px;
    }
} 