@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;800&display=swap");

html,
body {
  overflow: hidden;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #000000;
  font-family: Nunito, sans-serif;
}

#renderCanvas {
  width: 100%;
  height: 100%;
  touch-action: none;
}

#canvasZone {
  width: 100%;
  height: 100%;
}

/* Vue.js Configurator Panel */
#configuratorPanel {
  position: absolute;
  top: 0;
  right: 0;
  width: 350px;
  /* Adjust as needed */
  height: 100%;
  background-color: #f0f0f0;
  overflow-y: auto;
  display: none;
  /* Hidden by default */
  z-index: 10;
  padding: 8px 16px;
}

h4 {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  color: #37414b;
}

hr {
  border-color: rgba(230, 24, 24, 0);
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.06);
}

abbr {
  text-decoration: none;
}

.productcard {
  display: grid;
  grid-template-columns: 156px 172px;
  margin: 16px 0;
  width: 328px;
  height: 328px;
  border-radius: 8px;
  background-color: #fff;
  border: none;
  /* box-shadow: -1px -1px 1px rgba(216, 220, 236, 0.9), 1px 1px 2px #A1A8C0; */
}

.facecontainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* box-shadow: 2px 2px 8px 0px #D0DCE8,-2px -2px 8px 0px #C4D2DD,-1px -1px 3px 0px #88919A inset; */
  height: 328px;
  border-radius: 8px;
  padding: 8px;
  box-sizing: border-box;
}

.productdetailcontainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 328px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  gap: 2px;
}

.producttextcontainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.producttext {
  background: #fff;
  padding: 4px;
  width: 124px;
  height: 14px;
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  box-shadow: 1px -1px 1px 0px rgba(216, 220, 236, 0.9), -1px -2px 2px 0px #fff,
    1px -1px 2px 0px #a1a8c0;
  border-radius: 0px 8px 8px 0px;
}

.threedot {
  background-color: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.brandlogo {
  width: 140px;
  height: 40px;
  object-fit: contain;
}

.brandname {
  font-weight: 800;
}

.productimage {
  width: 140px;
  height: 264px;
  object-fit: contain;
}

.productdetails {
  width: 156px;
  height: 264px;
  max-height: 264px;
  box-shadow: -1px -2px 4px 0px #e4e9f4,
    0px 2px 4px 0px rgba(147, 157, 184, 0.7);
  border-radius: 8px;
  padding: 2px;
  margin: 8px;
}

.selectedCard::-webkit-scrollbar {
  width: 4px;
}

.selectedCard::-webkit-scrollbar-track {
  background-color: #f3f6f9;
  border: 2px solid #f3f6f9;
  background-clip: padding-box;
  box-shadow: inset 1px 2px 4px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
}

.selectedCard::-webkit-scrollbar-thumb {
  background-color: #d6dde3;
  border-radius: 4px;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.18);
}

.selectedCard {
  height: 188px;
  max-height: 188px;
  padding: 8px 4px 8px 8px;
  overflow-y: auto;
  overflow-x: hidden;
}

.selectedCard div {
  margin: 2px 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  color: #1c2025;
}

.table-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

table {
  border-collapse: collapse;
  width: fit-content;
  margin-top: 10px;
  border: none;
}

th,
td {
  text-align: center;
  padding: 4px 8px;
  border: none;
}

tr {
  border-bottom: 1px solid #000;
}

thead th {
  font-weight: bold;
}

tbody tr {
  background-color: #eaf0f5;
}

tbody td:first-child {
  background-color: white;
}

.referenceimage {
  width: 156px;
  min-height: 240px;
  object-fit: contain;
}

.allbutton {
  width: 33px;
  border: none;
  color: #1c2025;
  background: #fff;
  box-shadow: -2px 1px 4px #d7e0e9, 1px -1px 3px #a1a8c0,
    inset -1px 1px 3px rgba(161, 168, 192, 0.5);
  border-radius: 2px;
  cursor: not-allowed;
  font-weight: 500;
  font-size: 11px;
  line-height: 16px;
}

.allbutton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.actionbar {
  display: flex;
  height: 36px;
}

.addbutton {
  width: fit-content;
  margin: auto;
  border: none;
  background-color: #fff;
  cursor: pointer;
  transition: background-image 0.3s, box-shadow 0.3s, border-radius 0.3s;
}

.addbutton:not(:disabled):hover {
  background-image: linear-gradient(
    303.14deg,
    #ffffff 7.68%,
    rgba(206, 206, 206, 0) 93.97%
  );
  box-shadow: -2px -1px 2px 0.4px rgba(0, 0, 0, 0.06),
    1px 2px 2px 0.6px rgba(171, 167, 167, 0.16);
  border-radius: 4px;
}

.addbutton:not(:disabled):active {
  background-image: linear-gradient(
    314.13deg,
    #ffffff 49.56%,
    rgba(255, 255, 255, 0) 141.25%
  );
  box-shadow: inset -1px -2px 4px rgba(0, 0, 0, 0.16),
    inset 1px 2px 4px rgba(0, 0, 0, 0.12);
}

.addbutton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.close-button {
  border: none;
  background: #f44336;
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 16px;
}

.close-button:hover {
  background: #d32f2f;
}

.menucontainer {
  position: relative;
}

.menu {
  width: 116px;
  height: 256px;
  background-color: rgba(32, 36, 41, 0.92);
  box-shadow: -2px 2px 4px #0f141a, inset 2px -2px 3px #020913;
  backdrop-filter: blur(1.05px);
  border-radius: 4px;
  position: absolute;
  inset: 0 -84px;
  line-height: 16px;
  font-weight: 500;
  color: #fcfdff;
  overflow-y: auto;
  z-index: 2;
}

.menu::-webkit-scrollbar {
  width: 8px;
}

.menu::-webkit-scrollbar-track {
  background: #0d1016;
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 8px;
}

.menu::-webkit-scrollbar-thumb {
  background-color: #14181e;
  border-radius: 4px;
}

.menu ul {
  list-style-type: none;
  padding: 0;
}

.menu li {
  padding: 4px 4px 4px 8px;
  text-transform: capitalize;
  cursor: pointer;
  margin-bottom: 16px;
}

.menu li:hover {
  background-color: #2e3237;
}

/* -------------------------------------------------- */
/* -------------------------------------------------- */

/* ============================
   BUTTONS - BASE SYSTEM
============================ */

/* Shared control container */
#controlButtons {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 1000;
}

/* Icon-only circular buttons */
#controlButtons .icon-btn {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
  user-select: none;
  width: 40px;
  height: 40px;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  transition: transform 0.25s ease, background-color 0.25s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

#controlButtons .icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

#controlButtons .icon-btn:active {
  transform: translateY(0);
}

.toggle-btn.is-active {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.75);
  /* box-shadow: 0 0 12px rgba(255, 255, 255, 0.6); */
}

.toggle-btn {
  position: relative;
}

.toggle-btn .active-dot {
  pointer-events: none;
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(154, 215, 255, 0.9);
  opacity: 0;
  transform: translateX(-50%) scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toggle-btn.is-active .active-dot {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* Pill-shaped Time of Day button */
.tod-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #fff;
  padding: 0 20px;
  height: 40px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.tod-btn:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.tod-btn:active {
  transform: translateY(0);
  background-color: rgba(255, 255, 255, 0.1);
}

.tod-icon {
  font-size: 1rem;
  line-height: 0;
}

.tod-label {
  pointer-events: none;
}

/* ============================
   TIME OF DAY PANEL
============================ */
#timeOfDayWrapper {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#timeOfDayWrapper.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

body.tod-active #controlButtons {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* === PANEL BODY === */
#timeOfDayPanel {
  font-family: "Montserrat", sans-serif;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px) saturate(160%);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 25px;
  padding: 24px 36px;
  min-width: 800px;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  user-select: none;
}

/* === LEFT: TIME === */
#todTimeLabel {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  min-width: 110px;
  text-align: left;
}

/* === CENTER === */
.tod-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.preset-dropdown {
  position: relative;
  margin-bottom: 8px;
}

#presetBtn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  padding: 6px 18px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

#presetBtn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

#presetMenu {
  display: none;
  position: absolute;
  bottom: 110%;
  left: 0;
  min-width: 140px;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 0;
  list-style: none;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
  z-index: 2000;
}

#presetMenu.show {
  display: block;
}

#presetMenu li {
  padding: 10px 16px;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

#presetMenu li:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* === SLIDERS === */
.tod-sliders {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.slider-group {
  width: 100%;
}

.slider-group label {
  display: block;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  opacity: 0.8;
  color: #d9d9d9;
  margin-top: 6px;
}

#todSlider,
#sunRotation {
  width: 100%;
  height: 8px;
  border-radius: 6px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

/* Colorful time gradient */
#todSlider {
  background: linear-gradient(
    to right,
    #1a1d3f,
    #ff6b35 15%,
    #ffd93d 35%,
    #87ceeb 50%,
    #ffd93d 65%,
    #ff6b35 85%,
    #1a1d3f
  );
}

/* Thumb styling */
#todSlider::-webkit-slider-thumb,
#sunRotation::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: transform 0.2s;
}

#todSlider::-webkit-slider-thumb:hover,
#sunRotation::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

/* Rotation slider - neutral tones */
#sunRotation {
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.4),
    rgba(255, 255, 255, 0.8)
  );
}

/* === RIGHT: ROTATION + CLOSE === */
.tod-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.tod-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.tod-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* === HEADER LAYOUT === */
.tod-header {
  display: flex;
  align-items: center;
  justify-content: space-between; /* time label left, dropdown right */
  width: 100%;
  margin-bottom: 12px;
  position: relative;
}

/* === CLOSE BUTTON POSITION === */
#todCloseBtn {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

#todCloseBtn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}
