#visor-360-ui {
    z-index: 100;
    display: none;
}

#visor-360-ui.visible {
    display: block;
}

#btn-close {
    position: absolute;
    bottom: 25px;
    right: 50%;
    transform: translateX(50%);
    min-width: 180px;
    min-height: 70px;
    background-color: #FFF;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 8px;
    box-sizing: border-box;
    border-radius: 10px;
}

#btn-close button {
    flex: 1;
    width: 100%;
    background-color: #F58A21;
    color: white;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

.video-control {
    position: absolute;
    bottom: 30px;
    /* transform: translateY(-50%); */
    min-width: 50px;
    min-height: 50px;
    background-color: #FFF;
    display: flex;
    justify-content: center;
    align-items: stretch;
    box-sizing: border-box;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.video-control button {
    flex: 1;
    width: 100%;
    background-color: #F58A21;
    color: white;
    border-radius: 10px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

.video-control.visible {
    opacity: 1;
}

#btn-prev {
    left: 25px;
}

#btn-next {
    background-color: #F00;
    right: 25px;
}

#btn-close.visible {
    opacity: 1;
}

.hidden {
    display: none;
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

.scanner-box {
    position: absolute;
    width: 250px;
    height: 250px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none;
}

.corner {
    width: 30px;
    height: 30px;
    border: 8px solid white;
    position: absolute;
}

.corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.corner.br { bottom: 0; right: 0; border-left: none; border-top: none; }

.scanner-line {
    position: absolute;
    width: 100%;
    height: 8px;
    background: white;
    animation: scan 2s linear infinite alternate;
}

@keyframes scan {
    from { top: 0; }
    to { top: calc(100% - 4px); }
}

.fade-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    transition: opacity 0.5s ease-in-out;
}

.fade-overlay.active {
    opacity: 1;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
}

.loading-content {
    text-align: center;
    color: white;
    width: 80%;
    max-width: 400px;
}

.loading-content h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.progress-container {
    width: 100%;
    height: 4px;
    background-color: #333;
    border-radius: 2px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: #F58A21;
    transition: width 0.3s ease-in-out;
}

.loading-text {
    font-size: 16px;
    color: #888;
}

.a-dialog-allow-button {
    background-color: #F58A21;
    color: white;
}

.a-dialog-deny-button {
    background-color: #F58A21;
    color: white;
}

.a-dialog-ok-button {
    background-color: #F58A21;
    color: white;
}