/* * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', system-ui, sans-serif;
        }

        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px;
            color: #333;
        } */

/* Open 360 Viewer Button */
.open-viewer-btn {
  background: linear-gradient(to right, #4361ee, #3a0ca3);
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 5px auto;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3);
  position: relative;
  z-index: 50;
}

.open-viewer-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(67, 97, 238, 0.4);
}

.open-viewer-btn:activeeco {
  transform: translateY(-2px);
}

/* Modal Styles */
.modal-overlayeco {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(2.5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999 !important;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlayeco.activeeco {
  opacity: 1;
  display: flex;
}

.modal-containereco {
  background: #ffffff26;
  border-radius: 20px;
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
}

.modal-overlayeco.activeeco .modal-containereco {
  transform: scale(1);
}

.modal-headereco {
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #8cc739;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-headereco h2 {
  color: white;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.close-modal-btneco {
  background: linear-gradient(45deg, #f44336, #cb808091);
  border: none;
  color: white;
  font-weight: 500;
  padding: 10px 15px;
  width: fit-content;
  height: 40px;
  border-radius: 12px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-modal-btneco:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-bodyeco {
  padding: 30px;
  overflow-y: auto;
  flex-grow: 1;
}

/* 360 Viewer Styles Inside Modal */
.viewer-wrappereco {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 25px;
}

#viewereco {
  width: 100%;
  height: 500px;
  background-color: #f5de2e72;
  background-image: linear-gradient(315deg, #f5de2ed5 0%, #f07654c2 74%);
  border-radius: 16px;
  /* overflow: hidden; */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  position: relative;
  touch-action: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

#viewereco:hover {
  transform: translateY(-5px);
}

#spinImgeco {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.17, 0.67, 0.83, 0.67);
  filter: brightness(1.05) contrast(1.05);
}

.controlseco {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    background: rgb(113 106 106 / 46%);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.control-groupeco {
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-btneco {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(145deg, #2d3047, #1a1c2b);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.control-btneco:hover {
  background: linear-gradient(145deg, #3a3d5c, #272a3e);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.control-btneco:activeeco {
  transform: translateY(0);
}

.slider-containereco {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 250px;
}

.slider-containereco label {
  font-size: 0.9rem;
  opacity: 0.9;
  color: white;
}

.slidereco {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
}

.slidereco::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(to right, #f7f1f1ff, #8cc739);

  cursor: pointer;
  box-shadow: 0 0 10px rgba(67, 97, 238, 0.7);
  transition: all 0.2s;
}

.slidereco::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slidereco::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(to right, #fdf5f5ff, #8cc739);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(67, 97, 238, 0.7);
}

.info-paneleco {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.frame-countereco {
  opacity: 0;
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.loading-bareco {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 11;
}

.loading-progresseco {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #0f0f0fff, #8cc739);
  transition: width 0.3s ease;
  border-radius: 0 4px 4px 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .modal-containereco {
    max-width: 95%;
  }

  #viewereco {
    height: 400px;
  }
}

@media (max-width: 768px) {
  #viewereco {
    height: 350px;
  }

  .controlseco {
    padding: 15px;
  }

  .control-groupeco {
    justify-content: center;
    width: 100%;
  }

  .slider-containereco {
    width: 100%;
  }

  .modal-headereco {
    padding: 15px 20px;
  }

  .modal-bodyeco {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .open-viewer-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
  }

  #viewereco {
    height: 300px;
  }

  .control-btneco {
    width: 45px;
    height: 45px;
  }

  .modal-headereco h2 {
    font-size: 1.4rem;
  }

  .info-paneleco {
    font-size: 0.8rem;
    padding: 10px 15px;
    top: 10px;
    left: 10px;
  }

  .frame-countereco {
    font-size: 0.8rem;
    bottom: 10px;
    left: 10px;
  }
}
