@import "media.css";
@import "sidebar.css";
@import "color-picker.css";
@import "context-menu.css";
/* @import "components/color-picker.css";
@import "components/switch.css";
@import "components/properties.css"; */
:root {
  --light-gray: #ebebeb;
  --content-color: #262626;
}

.editor-wraper {
  display: flex;
  height: calc(100% - 56px);
}

/* #region Canvas Area */

.canvas-area {
  width: calc(100% - 0px);
  height: calc(100vh - 110px);
  box-sizing: border-box;
  /* overflow: auto; */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.canvas-container {
  height: calc(100vh - 89px);
}

/* #endregion Canvas Area */

/* #region Editor Range Slider */

.editor-range-slider {
  appearance: none;
  background: #0f57998c;
  height: 4px;
  border-radius: 5px;
  width: 100%;
}

.editor-range-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  background-color: var(--blueColor);
  border: 2px solid var(--white);
  cursor: pointer;
  border-radius: 100%;
}

.editor-range-slider::-webkit-slider-thumb:hover {
  background-color: var(--blueColor);
}

/* #endregion Editor Range Slider */

/* #region Editor Dropdown */

.editor-dropdown {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

.editor-dropdown .dropdown-toggle-item {
  display: flex;
  justify-content: space-between;
  background: #f0f2f8;
  padding: 8px;
  align-items: center;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  box-shadow: 0px 2px 2px 0px #ebebeb;
  border: 1px solid #dddddd;
  color: #090f1a;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

.editor-dropdown .dropdown-body {
  background: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  animation: menuforward 0.15s ease-out both;
  box-shadow: 1px 1px 2px -1px #ddd;
  visibility: hidden;
  overflow: hidden;
  position: absolute;
  z-index: 99;
  width: 100%;
  top: 37px;
  display: none;
}

.editor-dropdown .dropdown-body .search-input {
  border-bottom: 1px solid #ddd;
  padding: 5px 10px;
  background: #f0f2f8;
}

.editor-dropdown .dropdown-body .search-input input {
  color: #090f1a;
  font-size: 13px;
}

.editor-dropdown .dropdown-body .menu {
  width: 100%;
  height: 15rem;
  overflow: auto;
}

.editor-dropdown .menu .item {
  padding: 10px 10px;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
  color: #090f1a;
  font-weight: 400;
  cursor: pointer;
  transition: 0.2s;
}

.editor-dropdown .menu .item.selected,
.editor-dropdown .menu .item:hover {
  background: #ddd;
}

.editor-dropdown.active .dropdown-toggle-item .arrow-icon {
  transform: rotate(180deg);
}

.editor-dropdown.active .dropdown-body {
  visibility: visible;
  display: block;
}

@keyframes menuforward {
  0% {
    transform: translateY(0);
  }
  to {
    transform: translateY(10px);
  }
}

/* #endregion Editor Dropdown */

/* #region Navbar */

.editor-navbar {
  background-color: #fff;
  color: var(--content-color);
  padding: 10px 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 99;
}

.editor-navbar .right-area {
  display: flex;
  gap: 10px;
}
/* 
.items {
  display: flex;
  justify-content: space-between;
  align-items: center;
} */

.heading {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--content-color);
}

/* #endregion Navbar */

/* #region Editor Small Input */

.editor-small-inp::-webkit-outer-spin-button,
.editor-small-inp::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
}

.editor-small-inp {
  width: 50px;
  border-radius: 4px;
  border: none;
  background: #eee;
  padding: 5px;
  font-size: 12px;
  text-align: center;
  font-weight: bold;
}

/* #endregion Editor Small Input */

/* #region Nav Tabs */

/* .nav-tabs {
    display: flex;
    flex-direction: column;
    gap: 35px;
    border-bottom: none !important;
} */

.undo-btn:disabled,
.redo-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.position-items {
  gap: 10px 0;
  gap: 10px 0;
}
.position-items [class*="col-"] {
  padding: 0 5px;
}
.position-items .position-option {
  display: grid;
  grid-template-columns: 16px auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #d6d6d6;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
}
.position-items .position-option:hover {
  border-color: var(--blueColor);
}

.sheet-toolbar #sheet-size-selector {
  flex: 1;
}

.choose-sheet-size .apply-size {
  border-radius: 30px;
  padding: 10px 25px;
  font-size: 16px;
}
.choose-sheet-size .back-design {
  background: transparent;
  box-shadow: none !important;
  color: #3d3d3d !important;
  font-size: 15px;
}

#changeDesignSizeModal .modal-dialog {
  max-width: 100%;
  height: 100%;
  margin: 0;
}

#changeDesignSizeModal .modal-content {
  height: 100%;
}

.nav-tabs .tab-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0px;
}

.nav-tabs .tab-items .tab-btn {
  width: 77px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #ddd;
  cursor: pointer;
}

.nav-tabs .tab-items .tab-btn.active,
.nav-tabs .tab-items .tab-btn:hover {
  background: #eeeeee;
}

.nav-tabs .tab-items .tab-btn svg {
  fill: var(--content-color);
}

.nav-tabs .tab-items .tab-btn:first-child {
  border-right: 0px;
}

.nav-tabs .tab-items .tab-btn:last-child {
  border-left: 0px;
}

.nav-tabs .tab-panels {
  height: 100%;
  width: 100%;
}

.nav-tabs .tab-panels .tab-panel {
  display: none;
  flex-direction: column;
  gap: 20px;
}

.nav-tabs .tab-panels .tab-panel.active {
  display: flex;
}

/* #endregion Nav Tabs */

/* Auto and manual build popup css */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#ux-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  animation: fadeIn 0.2s ease-out;
}

#ux-popup-modal {
  background: #ffffff;
  border-radius: 24px;
  padding: 36px 36px 32px;
  max-width: 580px;
  width: 92%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.4s ease-out 0.1s both;
  text-align: center;
  position: relative;
}

#ux-popup-modal h2 {
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #000000;
  margin: 0 0 4px 0;
}

#ux-popup-modal .subtitle {
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 13px;
  color: #000000;
  margin-bottom: 24px;
}

.popup-cards-row {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.popup-option-card {
  flex: 1;
  background: #f8f9fc;
  border: 2px solid #e8eaf0;
  border-radius: 16px;
  padding: 20px 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.popup-option-card:hover {
  border-color: #7c5cfd;
  background: #f0eeff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.15);
}

.popup-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.popup-icon.auto {
  background: linear-gradient(135deg, #7c5cfd, #8b7fff);
  color: white;
}

.popup-icon.manual {
  background: linear-gradient(135deg, #ff6b9d, #ff8fb1);
  color: white;
}

.popup-option-title {
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #000000;
}

.popup-option-desc {
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 12px;
  color: #000000;
  line-height: 1.4;
}

.popup-login-btn {
  width: 100%;
  padding: 12px 24px;
  background: #7c5cfd;
  border: 2px solid #7c5cfd;
  color: #ffffff;
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.popup-login-btn:hover {
  background: #5a52e0;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.3);
  color: #ffffff;
}

.popup-create-link {
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 13px;
  color: #000000;
  margin-top: 14px;
  margin-bottom: 14px;
}

.popup-create-link a {
  color: #7c5cfd;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.popup-create-link a:hover {
  text-decoration: underline;
}

.popup-benefits {
  background: #f4f3ff;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.popup-benefits-title {
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 2px;
  text-align: left;
}

.popup-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.popup-benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 11.5px;
  color: #000000;
}

.popup-benefit-check {
  color: #7c5cfd;
  font-weight: 700;
  flex-shrink: 0;
}

.popup-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #f0f0f0;
  color: #999;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.popup-close-btn:hover {
  background: #e0e0e0;
  color: #555;
}

.auto-fill-con .duplicate-selected-obj {
  border-radius: 30px;
  padding: 8px 30px;
  margin-top: 20px;
}

/* Editor Notification Panel */
.notifier-panel {
  position: absolute;
  right: 0;
  width: 300px;
  height: 100%;
  background: white;
  z-index: 99;
  padding: 30px 15px;
  display: none;
}

.notifier-panel .close {
  font-size: 18px;
  color: var(--blueColor);
}

.notifier-panel .proceed-errors {
  border-radius: 30px;
  padding: 8px 30px;
  margin-top: 15px;
}

.resolution-warning {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 6px;
  font-size: 12px;
  color: #614700;
  margin-top: 6px;
  cursor: pointer;
}

.resolution-warning .icon {
  display: flex;
  flex-shrink: 0;
}

.resolution-warning .dpi-value {
  font-weight: 600;
  color: #d46b08;
}

/* Mobile Responsive */
@media screen and (max-width: 500px) {
  #ux-popup-modal {
    padding: 28px 20px 24px;
    max-width: 95%;
    border-radius: 20px;
  }

  #ux-popup-modal h2 {
    font-size: 20px;
  }

  .popup-cards-row {
    flex-direction: column;
    gap: 10px;
  }

  .popup-option-card {
    flex-direction: row;
    text-align: left;
    padding: 16px 14px;
    flex-wrap: wrap;
  }

  .popup-benefits-grid {
    grid-template-columns: 1fr;
  }
}
