.planner-page-layout {
  width: 100%;
  height: 100%;
  display: flex;
}

.planner-header {
  width: 100%;
  height: 5%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding-left 0.3s ease;
}

.planner-header.shifted {
  padding-left: 26.3%;
}

.planner-header-right-container {
  display: flex;
  align-items: center;
  font-size: 18px;
  gap: 20px;
  padding-right: 20px;
  color: var(--ast-global-color-8);
}

.planner-header-left-container {
  display: flex;
  align-items: center;
  font-size: 18px;
  color: var(--ast-global-color-8);
}

#screenshotBtn {
  cursor: pointer;
}

#exportBtn {
  cursor: pointer;
}

.planner-header-scene-costs {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 25px;
  font-size: 16px;
  font-weight: 400;
  border-radius: 40px;
  background-color: #bbbbbb;
}

.planner-ellipsis-dropdown-container {
  position: relative;
  display: inline-block;
}
.planner-share-dropdown-container {
  position: relative;
  display: inline-block;
}

#plannerEllipsis {
  font-size: 18px;
  cursor: pointer;
}

#plannerShare {
  font-size: 18px;
  cursor: pointer;
}

.planner-share-dropdown-menu {
  display: none;
  position: absolute;
  flex-direction: column;
  justify-content: space-between;
  right: 0;
  top: 50px;
  background-color: #f9f9f9;
  width: 320px;
  height: 220px;
  padding: 20px;
  font-size: 16px;
  border-radius: 10px;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.planner-share-title-close-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  height: 25%;
}

.close-share-dropdown {
  font-size: 20px;
  cursor: pointer;
}

.planner-share-link-container {
  width: 100%;
  height: 37%;
  display: flex;
  align-items: flex-end;
}

#currentPageLinkInput {
  border-radius: 43px;
  font-size: 12px;
}

.planner-share-copylink-cta {
  width: 100%;
  height: 37%;
  display: flex;
  align-items: flex-end;
}

.planner-ellipsis-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 50px;
  background-color: #f9f9f9;
  min-width: 160px;
  font-size: 16px;
  border-radius: 10px;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.planner-ellipsis-dropdown-menu a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.planner-ellipsis-dropdown-menu a:hover {
  background-color: #ddd;
  border-radius: 10px;
}

#editableTitle {
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
  font-size: 18px;
  font-weight: 400;
  color: black;
  width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#editableTitle:focus {
  border: none;
  outline: none;
}

.planner-header-content-container {
  display: flex;
  flex-direction: column;
  width: 96%;
  height: 100%;
}

.planner-sidebar-fixed {
  width: 4%;
  height: 100%;
  background-color: var(--ast-global-color-8);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.planner-sidebar-circle {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: #bbbbbb;
}

.planner-sidebar-top-icon-container {
  display: flex;
  align-items: center;
  padding-top: 10px;
}

.planner-sidebar-bottom-icon-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 20px;
  color: var(--ast-global-color-5);
  gap: 30px;
}

.sidebar-toggle-icon {
  cursor: pointer;
}

.planner-sidebar-toggle {
  width: 0; /* Initially hidden */
  height: 100%;
  background-color: var(--ast-global-color-5);
  box-shadow: 1px 0 2px rgba(0, 0, 0, 0.2);
  border-right: 1px solid rgba(187, 187, 187, 1);
  position: absolute;
  left: 4%;
  top: 0;
  transition: width 0.3s ease;
  visibility: hidden; /* Hide by default */
  opacity: 0; /* Start fully visible */
}

.planner-sidebar-toggle.open {
  width: 25%;
  visibility: visible;
  display: flex;
  flex-direction: column;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.5s ease-out; /* Fade-out over 1 second */
}

.planner-tab-top-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 10%;
}

.close-sidebar-icon {
  cursor: pointer;
}

.planner-sidebar-tab-products {
  width: 100%;
  height: 90%;
  display: none;
  flex-direction: column;
}

.planner-sidebar-tab-favorites {
  display: none;
  width: 100%;
  height: 90%;
}

.planner-sidebar-tab-placeholders {
  display: none;
  width: 100%;
  height: 90%;
}

.planner-content {
  width: 100%;
  height: 95%;
  background-color: black;
}

#primary {
  margin: 0;
}

.sidebar-toggle-btn {
  width: 100%;
  height: 50px;
  background-color: yellow;
  border: none;
  cursor: pointer;
}

/* Stili per il loader e i messaggi */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #646970;
  animation: spin 1s ease-in-out infinite;
}

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

.notice {
  padding: 10px 15px;
  margin: 5px 0 15px;
  border-left: 4px solid;
  background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.notice-success {
  border-left-color: #00a32a;
}

.notice-error {
  border-left-color: #d63638;
}

.notice p {
  margin: 0;
  padding: 0;
}

#saveProjectButton:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Planner SEARCH Products Grid  *******************************/
.planner-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.planner-product-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  gap: 5px;
}

.product-thumb {
  margin-bottom: 10px;
  position: relative;
}

.add-product-icon {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px; /* Adjust size of the icon */
  color: rgba(17, 17, 17, 0.75); /* Set the icon color */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-thumb:hover .add-product-icon {
  opacity: 1;
  cursor: pointer;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This ensures the image covers the container */
  border-radius: 4px;
}

.product-title {
  font-size: 16px;
  color: #333;
  line-height: 1.3;
}

.product-price {
  font-weight: bold;
  color: #444;
}

.product-status .in-stock {
  color: #28a745;
  font-size: 14px;
  font-size: 14px;
  position: relative;
  padding-left: 15px;
}

.product-status .in-stock::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: #28a745;
  border-radius: 50%;
}

.product-status .out-of-stock {
  color: #dc3545;
  font-size: 14px;
}

.product-tags {
  font-size: 12px;
  color: #666;
}

.product-tags a {
  display: inline-block;
  background: #f5f5f5;
  padding: 2px 8px;
  border-radius: 12px;
  margin: 2px;
  text-decoration: none;
  color: #666;
}

.product-tags a:hover {
  background: #e9e9e9;
  color: #333;
}

.planner-search-container {
  margin: 0 0 12px 0;
}

.planner-search-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.search-results-count {
  margin-top: 10px;
  font-size: 0.9em;
  color: #666;
  text-align: left;
}

.checkbox-filters {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.checkbox-filters label {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #333;
}

.checkbox-filters input[type="checkbox"] {
  margin-right: 5px;
  width: 16px;
  height: 16px;
  accent-color: #333;
}

/* Solidi Grid Styles *******************************/
.solidi-container {
  padding: 0px;
}

.solidi-description {
  font-size: 14px;
  color: #666;
  margin: 0 0 20px 0;
}

.solidi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.solido-item {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.3;
}

.solido-item-disabled {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 20px;
  cursor: not-allowed;
  transition: all 0.3s ease;
  opacity: 0.3;
}

.solido-item-active {
  background: #f5f5f5;
  transition: all 0.1s ease;
  opacity: 1;
}
/* 
.solido-item:hover {
    background: #f8f5f5;
    transform: translateY(-2px);
} */

.solido-image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
}

.solido-image img {
  width: 100%;
  height: auto;
}

.color-selection {
  display: flex;
  gap: 10px;
}

.color-swatch {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
}

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

input[type="radio"]:checked + .color-swatch {
  border: 2px solid #000;
}

.login-required-message {
  max-width: 600px;
  margin: 50px auto;
  padding: 30px;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.login-required-message h3 {
  margin-bottom: 20px;
  color: #333;
}

.login-button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #0073aa;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

.login-button:hover {
  background-color: #005177;
  color: white;
}
