

.navbar .options {
  display: flex;
  gap: 20px;
}
.navbar .options .action-btn {
  position: relative;
}
.navbar .options .action-btn::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 25px;
  background: #a4a4a4;
}

.edit-project-name .name {
  font-size: 16px;
  font-weight: bold;
  color: var(--blueColor);
}

.edit-project-name .icon svg {
  width: 18px;
  height: 18px;
}

.all-content {
  overflow: hidden;
}

.alert {
  margin-bottom: 0 !important;
}

.upload-area {
  border: 2px dashed #d1d5db;
  border-radius: 0.5rem;
  padding: 3rem 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #f5f5f5;
  border-radius: 40px;
}

.upload-area img {
  user-select: none;
  pointer-events: none;
}

.upload-area:hover,
.upload-area.drag-active {
  border-color: #7c5cfd;
  background-color: rgb(118 110 255 / 4%);
}

.upload-area .file-upload-btn {
  background: var(--primaryColor);
  color: white;
  width: fit-content;
  margin: 12px auto 0;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 30px;
}

.upload-area .file-upload-btn img {
  width: 30px;
  height: 30px;
  margin-left: 5px;
}

.upload-icon {
  font-size: 3rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}

.upload-text {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.upload-formats {
  font-size: 0.875rem;
  color: #6b7280;
}

.upload-area .file-upload-btn {
  background: var(--primaryColor);
  color: white;
  width: fit-content;
  margin: 12px auto 0;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 30px;
}

/* Tab styles */
/* .nav-tabs {
  display: flex;
  gap: 10px;
  width: fit-content;
  margin: 0 auto 1.5rem;
  background: #0000000d;
  border-radius: 20px;
  padding: 5px;
} */
/* 
.nav-item a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: #000000;
  border-radius: 20px;
  padding: 15px 50px;
  font-size: 15px;
}

.nav-item a svg {
  width: 16px;
  height: 16px;
  fill: #666666;
}
.nav-item a svg path {
  fill: #666666;
}

.nav-item a.disabled {
  pointer-events: none !important;
  color: #aaa !important;
}

.nav-item a.active.disabled {
  border-color: #aaa !important;
}

.nav-item a:hover {
  color: #7c5cfd;
}

.nav-item a:hover svg,
.nav-item a:hover svg path {
  fill: #7c5cfd;
}

.nav-item a.active {
  background: var(--primaryColor);
  color: white;
}
.nav-item a.active svg,
.nav-item a.active svg path {
  fill: white;
} */
/* Grid spacing */
/* #designLibrary.design-library {
  max-height: 100vh;
  overflow: auto;
  position: relative;
} */
/* .design-library .items {
  justify-content: unset;
  gap: 25px 0;
  margin: 0;
} */

/* Card */
.design-library [class*="col-"] {
  padding: 0 6px;
}
/* .custom-design-panel .design-library .item {
  height: 130px;
}
.custom-design-panel .design-library .add-item {
  height: 100px;
}  */

/* .editor-sidebar-panels .design-library .item {
  height: 110px;
} */
/* .design-library .item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-height: 200px;
  height: 150px;
} */

/* Hover */
.design-library .library-categories .item:hover,
.design-library .design-media .sub-library-item:hover {
  border-color: var(--primaryColor);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* .design-library .design-media .item:not(.sub-library-item),
.design-library .sub-libraries .item {
  position: relative;
  top: 0;
  background: linear-gradient(45deg, #d6dae0 0%, #fafafb 100%);
  transition: all 0.3s ease;
}

.design-library .design-media .item:not(.sub-library-item):hover,
.design-library .sub-libraries .item:hover {
  box-shadow: 0px 0px 55px rgba(164, 187, 202, 0.5);
  background: #fff;
  z-index: 1;
  top: -5px;
} */

/* Image container */
.design-library .library-img {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Image */
/* .design-library .item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
} */

/* Title */
.design-library .title {
  font-size: 14px;
  margin-top: 6px;
  display: block;
}

/* 
.uploaded-file-info {
  gap: 30px 0;
}

.files-upload-area {
  position: relative;
}

.file-info-container .card {
  border-radius: 40px;
}

.file-info-container .file-info {
  position: relative;
  background: white;
  border-radius: 10px;
}
.file-info .file-info-footer {
  padding: 20px;
} */
/* .quantity-control {
  display: flex;
  align-items: center;
  gap: 10px;
}
.quantity-control .btn {
  border-radius: 30px;
  width: 45px;
  height: 30px;
  font-size: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
} */
/* .file-info .file-image-container {
  background: #dedede;
  border-radius: 10px 10px 0 0;
}

.file-info .action-btn .duplicate-btn {
  background: #6b7280;
}

.file-info-container .file-dpi {
  background-color: #f5fff5;
  border-color: #cae9ca;
  color: #00a80e;
  border: 1px solid rgb(0 0 0 / 9%);
  border-radius: 4px;
  display: inline-block;
  padding: 3px 4px;
}

.file-info-container .form-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.file-info-container .form-group label {
  width: 100px;
  text-align: start;
}
.file-info-container .form-group .form-control {
  flex: 1;
} */

.file-uploading {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--swal2-background);
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  z-index: 10;
}

.file-uploading img {
  width: 150px;
  height: 150px;
}

.design-library .file-uploading {
  border-radius: 10px;
}

/* File Delete Button css */
/* .file-info .del-file {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgb(20, 20, 20);
  border: none;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.164);
  cursor: pointer;
  transition-duration: 0.3s;
  overflow: hidden;
  position: absolute;
  right: -10px;
  top: -10px;
  gap: 2px;
} */

.svgIcon {
  width: 12px;
  transition-duration: 0.3s;
}

.svgIcon path {
  fill: white;
}

/* .file-info .del-file:hover {
  transition-duration: 0.3s;
  background-color: rgb(255, 69, 69);
  align-items: center;
  gap: 0;
}

.bin-top {
  transform-origin: bottom right;
}
.file-info .del-file:hover .bin-top {
  transition-duration: 0.5s;
  transform: rotate(160deg);
} */

/* Generate DTF Sheet Button */
/* From Uiverse.io by cssbuttons-io */
/* .generate-dtf-sheet {
  display: flex;
  justify-content: center;
} */
.generate-dtf-sheet button.previous-generated-sheet {
  border-radius: 30px;
  padding: 12px 25px;
  font-size: 16px;
}
.generate-dtf-sheet button.previous-generated-sheet svg {
  width: 25px;
  height: 25px;
}
.generate-dtf-sheet button.previous-generated-sheet svg path {
  fill: #fff !important;
  stroke: #fff !important;
}
.generate-dtf-sheet button.learn-more {
  position: relative;
  display: inline-block;
  cursor: pointer;
  outline: none;
  border: 0;
  vertical-align: middle;
  text-decoration: none;
  background: transparent;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
}

.generate-dtf-sheet button.learn-more {
  width: 16rem;
  height: auto;
}

.generate-dtf-sheet button.learn-more .circle {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: relative;
  display: block;
  margin: 0;
  width: 3rem;
  height: 3rem;
  background: #282936;
  border-radius: 1.625rem;
}

.generate-dtf-sheet button.learn-more .circle .icon {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  background: #fff;
}

.generate-dtf-sheet button.learn-more .circle .icon.arrow {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  left: 0.625rem;
  width: 1.125rem;
  height: 0.125rem;
  background: none;
}

.generate-dtf-sheet button.learn-more .circle .icon.arrow::before {
  position: absolute;
  content: "";
  top: -0.29rem;
  right: 0.0625rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.125rem solid #fff;
  border-right: 0.125rem solid #fff;
  transform: rotate(45deg);
}

.generate-dtf-sheet button.learn-more .button-text {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 0;
  margin: 0 0 0 1.85rem;
  color: #282936;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}

.generate-dtf-sheet button:hover .circle {
  width: 100%;
}

.generate-dtf-sheet button:hover .circle .icon.arrow {
  background: #fff;
  transform: translate(1rem, 0);
}

.generate-dtf-sheet button:hover .button-text {
  color: #fff;
}

.generate-dtf-sheet .dropdown .dropdown-menu {
  width: 454px;
  padding: 25px 0;
  border: 1px solid rgba(0, 0, 0, 0.295);
  border-radius: 8px;
}
.generate-dtf-sheet .dropdown .dropdown-menu .btn {
  padding: 12px 25px;
  border-radius: 30px;
  font-size: 15px;
}
.generate-dtf-sheet .dropdown .dropdown-menu .previous-generated-sheet {
  border-color: #f6f6f6 !important;
  background-color: #f6f6f6;
  color: #121212 !important;
  font-weight: bold;
  padding: 6px 8px;
  font-size: 13px;
  box-shadow: none !important;
  margin-bottom: 15px;
}
.generate-dtf-sheet .dropdown .dropdown-menu .btn.generate-additional-sheet {
  border-color: rgba(0, 0, 0, 0.164) !important;
  color: var(--dark) !important;
}

.canvas-scroll {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
/* .canvas-area .canvas-container {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
} */
.canvas-area canvas {
  pointer-events: all;
}
.canvas-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
}

:root {
  --single-unit-size: 110px;
}
.canvas-area {
  position: relative;
}
.single-ruler {
  position: absolute;
  background: #fff;
  z-index: 9;
  border: 1px solid #ddd;
}

/* Top */
#ruler-top {
  top: 0;
  left: 20px;
  right: 0;
  height: 20px;
  overflow: hidden;
}

.canvas-area::before {
  content: "";
  width: 20px;
  height: 20px;
  position: absolute;
  background: #34495e;
  left: 0px;
  top: 0;
  z-index: 9;
}

#ruler-top .measurements-con {
  display: flex;
  height: 100%;
  width: fit-content;
}

/* Left */
#ruler-left {
  top: 20px;
  left: 0;
  bottom: 0;
  width: 20px;
  border-top: none;
  overflow: hidden;
}

#ruler-left .measurements-con {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Unit */
.unit {
  position: relative;
  display: flex;
}

#ruler-top .unit {
  width: var(--single-unit-size);
  border-left: 1px solid #999;
}

#ruler-left .unit {
  height: var(--single-unit-size);
  border-top: 1px solid #999;
}

/* Label */
.unit small {
  position: absolute;
  top: 2px;
  left: 2px;
  font-size: 10px;
  font-weight: 500;
}

/* Ticks */
.ticks {
  display: flex;
  width: 100%;
  justify-content: space-evenly;
  align-items: flex-end;
}

#ruler-left .ticks {
  flex-direction: column;
  height: 100%;
}

.ticks span {
  background: #090f1a;
  width: 1px;
  height: 6px;
}

#ruler-left .ticks span {
  width: 6px;
  height: 1px;
}

/* Unit Label */
#ruler-top .unit-label {
  padding-left: 2px;
}

#ruler-left .unit-label {
  display: none;
}

.result-content {
  width: 100%;
  overflow: hidden;
}

.product-size {
  background: white;
  padding: 15px;
  border-radius: 10px;
  margin: 15px 0;
  border: 1px solid var(--swal2-footer-border-color);
}
.product-size p {
  font-size: 14px;
}
.product-size p span {
  color: var(--blue);
}
.product-size .change-product-size {
  border-radius: 40px;
  padding: 10px 20px;
  margin-top: 10px;
  background: transparent;
  color: black !important;
  border: 1px solid var(--main_color) !important;
}

.svg-preview svg {
  width: 100%;
  height: auto;
  display: block;
}
.confirm-design {
  border-radius: 40px;
  padding: 12px 30px;
  font-size: 15px;
  background: var(--success);
}

.result .action-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.result .action-btn .edit-design {
  flex: 1 1 0%;
  border-radius: 40px;
  padding: 12px;
}
.result .action-btn .remove-created-design {
  background: var(--danger);
}

.generated-sheet-design .created-design .card-body {
  padding: 10px;
}

.result .ordered-product .quantity-no {
  font-size: 22px;
  font-weight: bold;
  color: var(--blueColor);
  padding-left: 5px;
}

/* Confirmation customer created design css */
.created-customer-design .content {
  background: #f8fcff;
  padding: 10px;
  border-radius: 5px;
}
.created-customer-design .design .design-preview {
  box-shadow: 0px 1px 2px rgba(205, 221, 231, 0.5);
  width: 100%;
  min-width: 220px !important;
  min-height: 160px !important;
  background: repeating-conic-gradient(#f0f1f3 0% 25%, #e5e7ea 0% 50%) 0 0 /
    14px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  border-radius: 14px;
  overflow: hidden !important;
}
.created-customer-design .design .design-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
}
.created-customer-design .design-quantity .number {
  font-size: 35px;
  font-weight: bold;
}
.created-customer-design .design .product-size {
  background: transparent;
  margin-bottom: 0;
}

/* Layout */
.editor-area {
  position: relative;
  display: flex;
  flex: 1;
  overflow: hidden;
}

.editor-area-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.editor-area-content .zooming-section {
  display: flex;
  gap: 5px;
  align-items: center;
  position: absolute;
  right: 0;
  top: 50px;
  transform: translate(-10%, 100%);
  z-index: 90;
  background-color: #f2f5f8d6;
  border-radius: 10px;
  color: black;
  font-size: 13px;
  height: 30px;
  padding: 0 5px;
}
.editor-area-content .zooming-section .reset-zoom {
  padding: 2px 6px;
  font-size: 12px;
}
.editor-area-content .zooming-section .value {
  font-size: 14px;
  font-weight: 500;
}
.editor-area-content .zooming-section .action-btn button.btn {
  width: 20px;
  height: 20px;
}
.editor-area-content .editor-nav {
  display: flex;
  /* justify-content: space-between; */
  align-items: center;
  gap: 10px;
}
.editor-area-content .editor-nav .object-settings {
  border-left: 2px solid var(--blueColor);
  padding-left: 10px;
}
.editor-area-content .sheet-toolbar {
  flex: 1;
}

.canvas-container-wraper {
  flex: 1;
  position: relative;
  overflow: hidden; /* Stop scroll */
}

/* Panels container */
.editor-panels {
  width: 0;
  transition: 0.3s ease;
  overflow: hidden;
  border-left: 1px solid black;
}

/* Active panel width */
.editor-panels.active {
  width: 350px;
  min-width: 350px;
}

/* Individual panel */
.editor-panel {
  display: none;
  padding: 15px;
  background: #f0f2f8;
  height: 100%;
  border-right: 1px solid #ddd;
  overflow: auto;
  height: calc(100vh - 55px);
}

/* Show active panel */
.editor-panel.active {
  display: block;
}

/* Canvas wrapper auto resize */
.canvas-container-wraper {
  flex: 1;
  transition: 0.3s ease;
}

/* Sidebar style */
.sidebar {
  width: 70px;
  background: var(--light);
  color: #fff;
  height: 100%;
}

.sidebar ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-item {
  padding: 15px;
  text-align: center;
  cursor: pointer;
  border-bottom: 1px solid #222;
  color: var(--darkColor);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar-item:hover svg,
.sidebar-item.active svg {
  background: #d9f0ff;
}

.sidebar-item:hover span,
.sidebar-item.active span {
  font-weight: bold;
}

.sidebar-item svg {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  padding: 6px 0;
}

.editing-sidebar .sidebar {
  position: relative;
}

.filters .rangeSlider {
  width: 100%;
}

/* .editor-area-section {
  height: calc(100vh - 55px);
} */

/* Media Library Loader */
/* From Uiverse.io by Shoh2008 */
.media-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
}

/* Hide the old icon */
.media-loader .loader {
  display: none;
}

/* Purple ring spinner */
.media-loader::after {
  content: '';
  display: block;
  width: 36px;
  height: 36px;
  border: 3px solid #e9e4f7;
  border-top-color: #6c3fc5;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.next-steps-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f5f7fa;
  padding: 40px 15px;
}

.next-steps-container {
  background: #ffffff;
  padding: 30px 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  max-width: 500px;
  width: 100%;
  font-family: Arial, sans-serif;
}

.next-steps-container h2 {
  margin-bottom: 15px;
  font-size: 20px;
  color: #090f1a;
}

.next-steps-container p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.next-steps-container ol {
  padding-left: 18px;
  margin: 0;
}

.next-steps-container li {
  margin-bottom: 12px;
  font-size: 14px;
  color: #444;
  line-height: 1.5;
}

.countdown-text {
  text-align: center;
  margin-top: 30px;
  font-size: 15px;
  color: #d32f2f;
}

.next-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 18px;
  background: #4caf50;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: 0.3s;
}

.next-btn:hover {
  background: #43a047;
}

/* From Uiverse.io by vinodjangid07 */
.created-projects .project .card {
  width: 100%;
  height: auto;
  background-color: rgb(255, 255, 255);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  gap: 13px;
  position: relative;
  overflow: hidden;
  box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.062);
  border-radius: 6px;
}

.created-projects .project .card #cookieSvg {
  width: 50px;
}

.created-projects .project .card #cookieSvg g path {
  fill: rgb(97, 81, 81);
}

.created-projects .project .card .cookieHeading {
  font-size: 1.2em;
  font-weight: 800;
  color: rgb(26, 26, 26);
}

.created-projects .project .card .cookieDescription {
  text-align: center;
  font-size: 0.7em;
  font-weight: 600;
  color: rgb(99, 99, 99);
}

.created-projects .project .card .buttonContainer {
  display: flex;
  align-items: center;
  gap: 20px;
}

.created-projects .project .card .acceptButton {
  background-color: #7b57ff;
  transition-duration: 0.2s;
  border: none;
  color: rgb(241, 241, 241);
  cursor: pointer;
  font-weight: 600;
  border-radius: 20px;
}

.created-projects .project .card .declineButton {
  width: 80px;
  height: 30px;
  background-color: rgb(218, 218, 218);
  transition-duration: 0.2s;
  color: rgb(46, 46, 46);
  border: none;
  cursor: pointer;
  font-weight: 600;
  border-radius: 20px;
}

.created-projects .project .card .declineButton:hover {
  background-color: #ebebeb;
  transition-duration: 0.2s;
}

.created-projects .project .card .acceptButton:hover {
  background-color: #9173ff;
  transition-duration: 0.2s;
}

.add-ons-section {
  background: #fff;
  border-radius: 12px;
  padding: 20px 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  max-width: 500px;
  width: 100%;
  text-align: left;
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
}

.add-ons-section h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: #090f1a;
}

.add-ons-section label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 0;
}

.add-ons-section label {
  border-bottom: 1px solid #f0f0f0;
}

.add-ons-section label:last-child {
  border: none;
}

.add-ons-section input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #6c5ce7;
  cursor: pointer;
}

.add-ons-section .addon-label {
  font-size: 15px;
  color: #444;
}

.add-ons-section .addon-spacer {
  flex: 1;
}

.add-ons-section .addon-price {
  font-size: 14px;
  font-weight: 600;
  color: #090f1a;
}

.add-ons-section .addon-price.free {
  color: #00b894;
}

/* Tooltip */
.addon-tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.addon-tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #555;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 6px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.addon-tooltip-icon:hover {
  background: #6c5ce7;
  color: #fff;
}

.addon-tooltip-box {
  display: none;
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  background: #090f1a;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  padding: 10px 14px;
  border-radius: 8px;
  width: 260px;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

.addon-tooltip-box::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent #090f1a transparent transparent;
}

.addon-tooltip-icon:hover + .addon-tooltip-box,
.addon-tooltip-box:hover {
  display: block;
}

/* Modal Overlay */
#termsModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
}

/* Modal Box */
#termsModalContent {
  background: #fff;
  border-radius: 16px;
  padding: 36px 40px 32px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Modal Title & Subtitle */
#termsModal .modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #222;
  margin: 0 0 6px;
}

#termsModal .modal-subtitle {
  font-size: 14px;
  color: #777;
  margin: 0 0 24px;
}

/* Close Button */
#termsModal .close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 26px;
  color: #999;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

#termsModal .close-btn:hover {
  background: #f0f0f0;
  color: #090f1a;
}

/* Form Fields */
#termsModal .modal-field {
  margin-bottom: 18px;
}

#termsModal .modal-label {
  font-size: 14px;
  font-weight: 600;
  color: #090f1a;
  margin-bottom: 6px;
  display: block;
}

#termsModal .modal-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  outline: none;
  font-family: inherit;
  background: #fafafa;
  box-sizing: border-box;
}

#termsModal .modal-input:focus {
  border-color: #0ea5a0;
  box-shadow: 0 0 0 3px rgba(14, 165, 160, 0.15);
  background: #fff;
}

#termsModal .modal-input.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}

/* Error Text */
#termsModal .error-text {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

/* Checkbox Row */
#termsModal .checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0 24px;
  padding: 14px 16px;
  background: #f0faf9;
  border-radius: 10px;
  border: 1.5px solid #d4edec;
}

#termsModal .checkbox-row input[type="checkbox"] {
  min-width: 20px;
  min-height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #0ea5a0;
}

#termsModal .checkbox-row label {
  font-size: 13.5px;
  color: #444;
  cursor: pointer;
  line-height: 1.55;
}

#termsModal .checkbox-row label a {
  color: #0ea5a0;
  text-decoration: underline;
  font-weight: 600;
}

#termsModal .checkbox-row label a:hover {
  color: #088a86;
}

/* Submit Button */
#modalSubmitBtn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #7c5cfd, #7c5cfd);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#modalSubmitBtn:hover {
  background: linear-gradient(135deg, #4338ca, #5855eb);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

#modalSubmitBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


/* ── Smart library search input + NEW folder card ─────────── */
.lib-search-wrap {
  position: relative;
  margin: 12px 2px 10px;
}
.lib-search-input {
  width: 100%;
  height: 38px;
  padding: 0 34px 0 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 13px;
  background: #fff;
  color: #111827;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lib-search-input:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}
.lib-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: 0;
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}
.lib-search-clear:hover { background: #e5e7eb; color: #111827; }

.lib-search-results .lib-search-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.lib-search-empty,
.lib-search-count {
  font-size: 12px;
  color: #9ca3af;
}
.lib-search-count { margin-left: 4px; font-weight: 500; text-transform: none; letter-spacing: 0; }

/* NEW folder card — same shape as a normal folder, accent color. */
.folder-card.new-folder-card {
  border-color: #fcd34d;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 70%);
}
.folder-card.new-folder-card:hover {
  border-color: #f59e0b;
  background: linear-gradient(180deg, #fef3c7 0%, #fff 80%);
}
.folder-card.new-folder-card .folder-name {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #92400e;
}
.folder-card.new-folder-card .folder-count { color: #b45309; }
.new-folder-icon {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}


/* ── 2-column folder grid (Add From Library, Our Library, My Library) ── */
.folder-grid,
.my-library-folders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

/* Tighten folder cards so two fit per row */
.folder-grid .folder-card,
.my-library-folders .folder-card {
  width: 100%;
  margin: 0;
  min-width: 0;
  padding: 8px 10px;
  gap: 8px;
}

/* Bump thumbnail size */
.folder-grid .folder-card img,
.my-library-folders .folder-card img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
}

/* Ensure the thumbnail wrapper (first child) doesn't shrink */
.folder-grid .folder-card > *:first-child,
.my-library-folders .folder-card > *:first-child {
  width: 52px;
  height: 52px;
  min-width: 52px;
  flex-shrink: 0;
}

/* Hide the right chevron arrow to give the text room */
.folder-grid .folder-card .folder-arrow,
.folder-grid .folder-card [class*="arrow"],
.folder-grid .folder-card > svg:last-child,
.my-library-folders .folder-card .folder-arrow,
.my-library-folders .folder-card [class*="arrow"],
.my-library-folders .folder-card > svg:last-child {
  display: none;
}

/* Truncate long folder names instead of pushing the layout out */
.folder-grid .folder-card .folder-name,
.my-library-folders .folder-card .folder-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13.5px;
}
.folder-grid .folder-card .folder-count,
.my-library-folders .folder-card .folder-count {
  font-size: 11.5px;
}

/* ── Thumbnail display ───────────────────────────────────────
   Always show the full image (contain). Default to a clean white
   backdrop. JS adds .is-light to wrappers whose average luminance
   exceeds the threshold — those get a checker pattern so white /
   very-light designs don't disappear into the card. */
.thumb.add-item img,
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.thumb.add-item.is-light,
.thumb.is-light {
  background-color: #e2e8f0;
  background-image:
    linear-gradient(45deg, #cbd5e1 25%, transparent 25%),
    linear-gradient(-45deg, #cbd5e1 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #cbd5e1 75%),
    linear-gradient(-45deg, transparent 75%, #cbd5e1 75%);
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
}
.thumb.add-item.is-light img,
.thumb.is-light img {
  background: transparent !important;
}
