/* roboto-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/roboto-v49-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/roboto-v49-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/roboto-v49-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
.pattern_box {
  height: 70%;
  /* background-color: red; */
  overflow-y: auto;
  scrollbar-width: none;
}

.upload_box {
  height: 25%;
}

.left_side_bar p {
  font-size: 1.1vw;
  font-weight: bold;
  color: rgb(167, 167, 1);
}

.left_side_bar .accordion {
  list-style: none;
  padding: 0;
  margin: 0.6vw auto;
  width: 18vw;
  display: flex;
  flex-direction: column;
  gap: 5px 0;
}

/* Main category button */
.left_side_bar .accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 0.6vw 1vw;
  border-radius: 0.6vw;
  border: 0.1vw solid #e0e0e0;
  background: #ffffff;
  box-shadow: 0 0.2vw 0.6vw rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.left_side_bar .accordion-header:hover {
  border-color: #FDAB48;
  box-shadow: 0 0.4vw 1.2vw rgba(0, 0, 0, 0.08);
}

.left_side_bar .accordion-header.active {
  border-color: #FDAB48;
}

.left_side_bar .accordion-header span {
  font-size: 0.85vw;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.left_side_bar .accordion-header i {
  font-style: normal;
  font-size: 1vw;
  color: #323232;
}

/* Accordion content (collapsed by default) */
.left_side_bar .accordion-content {
  max-height: 0;               /* collapsed */
  overflow: hidden;
  transition: max-height 0.3s ease;  
  display: block;              /* keep it block, control via max-height */
}

/* Active (expanded) */
.left_side_bar .accordion-content.active {
  max-height: 45vw;           /* enough space to show patterns */
  padding: 1vw !important; 
  overflow-y: auto;            /* enable scroll if content too tall */
}

/* Links inside content */
.accordion-content a {
  display: block;
  padding: 0.5vw 0.7vw;
  text-decoration: none;
  color: #000;
  font-size: 0.85vw;
}

.accordion-content a:hover {
  background: #f1f1f1;
  border-radius: 0.25vw;
}

.accordion-content a span {
  color: #666;
  font-size: 0.7vw;
  margin-left: 0.4vw;
}

/* Pattern swatches */
.pattern-swatch {
  width: 4.2vw;
  height: 4.2vw;
  border-radius: 0.6vw;
  margin: 0.1vw;
  display: inline-block;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  position: relative;
  border: 0.1vw solid #eee;
  transition: transform 0.2s, border-color 0.2s;
}

.pattern-swatch:hover {
  transform: scale(1.05);
  border-color: #FDAB48;
}

.pattern-swatch.selected {
  border: 0.15vw solid #007bff;
  box-shadow: 0 0 0.5vw rgba(0, 123, 255, 0.3);
}

.patternContainer {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5vw !important;
  width: 100%;
}

.pattern-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2vw;
  width: 100%;
  justify-content: flex-start;
}

.pattern-group-header {
  font-size: 0.9vw;
  font-weight: 700;
  color: #000;
  margin: 0.8vw 0 0.4vw 0;
  padding-left: 0.2vw;
  text-align: left;
  width: 100%; /* Force header to own line */
}


/* Modal overlay */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  
  display: flex; /* Center content */
  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* When active */
.modal.show {
  opacity: 1;
  visibility: visible;
}

/* Modal content box */
.modal-content {
  background-color: #fff;
  padding: 1.25vw;
  border-radius: 0.6vw;
  width: 90vw;
  height: 80vh;
  max-width: 60vw;
  box-shadow: 0 0.25vw 0.6vw rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: auto;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
/* Animate in when modal is shown */
.modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}
/* Close button */
.close-button {
  color: #aaa;
  position: absolute;
  top: 1vw;
  right: 1.2vw;
  font-size: 1.8vw;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

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

.modal_header{
  height: 10%;
  /* background-color: red; */
}
.modal_body{
  height: 80%;
  /* overflow: hidden; */
  display: flex;
  align-items: center;
  justify-content: center;
}
#previewWrapper{
  width: 100%;
  height: 100%;
}
/* #previewImage {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
} */
 #fabricCanvas{
  height: 100%;
  width: 100%;
 }
 #baseImage {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
#logoOverlay.active {
  outline: 0.15vw solid #fbd238; /* blue outline */
  /* or use box-shadow for glow */
  /* box-shadow: 0 0 8px #007BFF; */
}

.modal_footer{
  height: 10%;
  display: flex;
  align-items: end;
  justify-content: end;
  gap: 0 1vw;
}
.save_btn,.upload_btn {
  border: none;
  padding: 0.6vw 1.2vw;
  border-radius: 0.4vw;
  background-color: #fbd238;
  cursor: pointer;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 0.4vw 1.8vw 0px;
  transition: 1s;
  font-size: 0.9vw;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: black;
}
.save_btn:hover {
  transition: 1s;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 0.3vw 1vw;
}
.loader {
  border: 0.25vw solid #f3f3f3;
  border-top: 0.25vw solid #333;
  border-radius: 50%;
  width: 2vw;
  height: 2vw;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}





























.upload-box {
  border: 0.1vw dashed #333;
  border-radius: 0.6vw;
  padding: 1vw 0;
  width: 18vw;
  margin-top: 0.6vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #c6c6c6;
  transition: background 0.3s, border-color 0.3s;
  cursor: pointer;
}

.upload-box.dragover {
  background: #f9ffe0;
  border-color: #000000;
}

.upload-box i {
  font-size: 1.8vw;
  color: #000000;
  margin-bottom: 0.6vw;
}

.upload-box p {
  color: #000000;
  font-size: 0.85vw;
  margin: 0;
}

input[type="file"] {
  display: none;
}

.edit_btn{
  border: none;
  margin-top: 0.6vw;
  height: 2.2vw;
  width: 18vw;
  border-radius: 0.4vw;
  background-color: #fbd238;
  cursor: pointer;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 0.4vw 1.8vw 0px;
  transition: 1s;
  font-size: 0.9vw;
  font-weight: 500;
}
