#edit-settings-blueprint .claro-details__description {
  max-width: initial !important;
}

#edit-settings-blueprint * {
  box-sizing: border-box !important;
}

.blueprint {
  max-width: auto;
  background-color: #b0e0e6 !important;
  padding: 16px 24px !important;
  display: grid !important;
  gap: 16px 0 !important;
  grid-auto-flow: row;
  grid-template-columns: repeat(1, 1fr) !important;
  width: 100% !important;
  color: #444444 !important;
  justify-content: center;
  align-items: center;
}

.blueprint * {
  color: #444444 !important;
  justify-content: center;
  align-items: center;
  display: grid;
  grid-auto-flow: row;
  height: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.blueprint .highlighted {
  background-color: #faf5ef !important;
}

.blueprint .primary-sidebar-menu {
  background-color: #ecfbfc !important;
}

.blueprint .fixed-search-block {
  background-color: #fff5ee !important;
}

.blueprint .popup-login-block {
  background-color: #f1f9ec !important;
}

.blueprint .primary-menu {
  background-color: #ecfbfc !important;
}

.blueprint .header {
  background-color: #f8f8ff !important;
}

.blueprint .welcome-text {
  background-color: #f5f5f5 !important;
}

.blueprint .top-regions {
  background-color: #fdfcfa !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
}

.blueprint .top-regions .top-one {
  background-color: #fffafa !important;
}

.blueprint .top-regions .top-two {
  background-color: #ecf3f9 !important;
}

.blueprint .top-regions .top-three {
  background-color: #fffaf0 !important;
}

.blueprint .system-messages {
  background-color: #f8fbf8 !important;
}

.blueprint .page-title-solo {
  background-color: #f6f1f4 !important;
}

.blueprint .breadcrumb {
  background-color: #ebf5f0 !important;
}

.blueprint .main-regions {
  background-color: #f2f3f4 !important;
  display: grid !important;
  grid-template-columns: 1fr 2fr 1fr !important;
}

.blueprint .main-regions .sidebar-first {
  background-color: #f6f4f1 !important;
}

.blueprint .main-regions .content {
  background-color: #ebf6f7 !important;
}

.blueprint .main-regions .sidebar-second {
  background-color: #f8f4ff !important;
}

.blueprint .bottom-regions {
  background-color: #fefffc !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
}

.blueprint .bottom-regions .bottom-one {
  background-color: #f8f8e8 !important;
}

.blueprint .bottom-regions .bottom-two {
  background-color: #f7f5f6 !important;
}

.blueprint .bottom-regions .bottom-three {
  background-color: #f2f7fd !important;
}

.blueprint .bottom-regions .bottom-four {
  background-color: #fdf9ef !important;
}

.blueprint .footer-regions {
  background-color: #fcfff9 !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
}

.blueprint .footer-regions .footer-one {
  background-color: #eef1ea !important;
}

.blueprint .hidden-region,
.blueprint .footer-regions .footer-two {
  background-color: #efece1 !important;
}

.blueprint .footer-regions .footer-three {
  background-color: #edf2f8 !important;
}

.blueprint .footer-menu {
  background-color: #f4f5f0 !important;
}

.blueprint .copyright {
  background-color: #edf1fe !important;
}

/* Additional CSS rules needed for the new semantic classes */
.hero-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.hero-banner h2 {
  margin-top: 0;
  color: white;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.feature-card {
  background: #f8f9ff;
  padding: 15px;
  border-radius: 6px;
}

.feature-card.beginners {
  border-left: 4px solid #4CAF50;
}

.feature-card.beginners h3 {
  color: #4CAF50;
  margin-top: 0;
}

.feature-card.developers {
  border-left: 4px solid #2196F3;
}

.feature-card.developers h3 {
  color: #2196F3;
  margin-top: 0;
}

.pro-tip {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.pro-tip h3 {
  margin-top: 0;
  color: #856404;
}

.pro-tip ul {
  margin-bottom: 0;
}

.section-title {
  border-bottom: 2px solid #667eea;
  padding-bottom: 10px;
}

.ready-to-build {
  background: #e8f5e8;
  border: 1px solid #4CAF50;
  padding: 20px;
  border-radius: 8px;
  margin-top: 30px;
}

.ready-to-build h3 {
  color: #4CAF50;
  margin-top: 0;
}

.ready-to-build p {
  margin-bottom: 0;
}

form.system-theme-settings {
  display: grid;
  max-width: 1200px;
  margin-inline: auto;
  margin-block: 0;
  padding-block: 0;
  padding-inline: 20px;
}

ul.settings-message {
  padding: 24px;
  color: white;
  background: linear-gradient(135deg, #4caf50 0%, #090909 3%, #000 100%);
  box-shadow: rgba(76, 175, 80, 0.3) 0px 2px 8px 0px;
  max-width: 1100px;
  margin-inline: auto;
  margin-block: 0;
}

form.system-theme-settings>details {
  padding-block: 1rem;
  padding-inline: 0.5rem;
  margin: 0.5rem;
}

form.system-theme-settings>details>summary {
  font-weight: normal !important;
  font-size: 1.2rem;
  line-height: 2rem;
}

form.system-theme-settings  input[teyp="text"] {
  width: 100%;
}

.error {
  color: #f44336 !important;
}

.warning {
  color: #ff5722 !important;
}

.status {
  color: #4caf50 !important;
}

.info {
  color: #2196f3 !important;
}

.purple,
#edit-logo summary,
#edit-favicon summary,
#edit-theme-settings summary {
  color: #9c27b0 !important;
}

.pink {
  color: #e91e63 !important;
}

.teal {
  color: #009688 !important;
}

.indigo {
  color: #3f51b5 !important;
}

form.system-theme-settings #edit-settings-primary-menu .form-radios,
form.system-theme-settings #edit-settings-top-container .form-radios,
form.system-theme-settings #edit-settings-main-container .form-radios,
form.system-theme-settings #edit-settings-bottom-container .form-radios,
form.system-theme-settings #edit-settings-footer-container .form-radios,
form.system-theme-settings #edit-settings-social-icons .form-radios,
form.system-theme-settings #edit-theme-settings .details-wrapper,
form.system-theme-settings #edit-settings-global-misc .form-radios {
  display: flex;
  flex-wrap: wrap;
}

form.system-theme-settings #edit-settings-primary-menu .form-radios>*,
form.system-theme-settings #edit-settings-top-container .form-radios>*,
form.system-theme-settings #edit-settings-main-container .form-radios>*,
form.system-theme-settings #edit-settings-bottom-container .form-radios>*,
form.system-theme-settings #edit-settings-footer-container .form-radios>*,
form.system-theme-settings #edit-settings-social-icons .form-radios>*,
form.system-theme-settings #edit-theme-settings .details-wrapper>*,
form.system-theme-settings #edit-settings-global-misc .form-radios>* {
  margin-inline-end: 60px;
  width: auto;
}

form.system-theme-settings .form-boolean--type-radio:checked {
  border-style: double;
}

form.system-theme-settings .form-type--textfield [type="text"] {
  width: 100%;
}

form.system-theme-settings .form-type--select select {
  min-width: 200px;
}

form.system-theme-settings .form-radio[value="solo-col-1"],
form.system-theme-settings .form-radio[value="disabled"] {
  display: none;
}

/* color field */
form.system-theme-settings .solo-color-panel > div,
form.system-theme-settings .solo-color-panel > div > div {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch;
  justify-content: flex-start;
  gap: 20px;
}

form.system-theme-settings [data-drupal-selector="solo-color-picker"] {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 280px;
  width: 100%;
  flex: 0 0 calc(33.333% - 14px);
  box-sizing: border-box;
  margin: 0 !important;
  border-radius: 10px;
  padding: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid;
  border-color: var(--gin-border-color, var(--details-border-color));
}

form.system-theme-settings [data-drupal-selector="solo-color-picker"]:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

form.system-theme-settings [data-drupal-selector="solo-color-picker"]:focus-within {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

form.system-theme-settings [data-drupal-selector="solo-color-picker"] label {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-inline-size: 100%;
  margin: 0 0 8px 0;
  line-height: 1.4;
  font-weight: 400 !important;
  font-size: 14px;
}

form.system-theme-settings [data-drupal-selector="solo-color-picker"] .solo-color-picker-wrapper {
  display: inline-flex;
  align-items: stretch;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-sizing: border-box;
  border: 2px solid;
  border-color: var(--gin-border-color, var(--details-border-color));
  transition: all 0.2s ease;
  justify-content: space-between;
}

form.system-theme-settings [data-drupal-selector="solo-color-picker"] .solo-color-picker-wrapper:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

form.system-theme-settings [data-drupal-selector="solo-color-picker"] .solo-color-picker-wrapper:focus-within {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

form.system-theme-settings [data-drupal-selector="solo-color-picker"] .solo-color-picker-wrapper input[type="text"] {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  width: calc(9ch + 20px);
  min-width: calc(9ch + 20px);
  max-width: calc(9ch + 20px);
  padding: 12px 12px;
  border-radius: 0;
  box-sizing: border-box;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  background-color: transparent !important;
}

form.system-theme-settings [data-drupal-selector="solo-color-picker"] .solo-color-picker-wrapper input[type="text"]:focus {
  outline: none;
}

form.system-theme-settings [data-drupal-selector="solo-color-picker"] .solo-color-picker-wrapper input[type="color"] {
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 0;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.2s ease;
}

form.system-theme-settings [data-drupal-selector="solo-color-picker"] .solo-color-picker-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
  border: none;
}

form.system-theme-settings [data-drupal-selector="solo-color-picker"] .solo-color-picker-wrapper input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 0;
}

form.system-theme-settings [data-drupal-selector="solo-color-picker"] .solo-color-picker-wrapper input[type="color"]::-moz-color-swatch {
  border: none;
  border-radius: 0;
}

form.system-theme-settings [data-drupal-selector="solo-color-picker"] .solo-color-picker-wrapper input[type="text"]:focus,
form.system-theme-settings [data-drupal-selector="solo-color-picker"] .solo-color-picker-wrapper input[type="color"]:focus {
  box-shadow: none;
  outline: none;
}

form.system-theme-settings [data-drupal-selector="solo-color-picker"] .form-item__error-message {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  border: 1px solid;
  border-color: inherit;
}

@media (max-width:1200px) {
  form.system-theme-settings [data-drupal-selector="solo-color-picker"] {
    flex: 0 0 calc(50% - 10px);
  }

}

@media (max-width:768px) {
  form.system-theme-settings [data-drupal-selector="solo-color-picker"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  form.system-theme-settings .solo-color-panel > div,
  form.system-theme-settings .solo-color-panel > div > div {
    gap: 12px;
  }

}

@keyframes colorChange {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }

}

form.system-theme-settings [data-drupal-selector="solo-color-picker"] .solo-color-picker-wrapper:focus-within {
  animation: colorChange 0.3s ease;
}

/* Vertical tabs responsive behavior */
@media (max-width:62rem) {
  form.system-theme-settings .vertical-tabs {
    display: block;
  }

  form.system-theme-settings .vertical-tabs__menu {
    width: 100%;
    float: none;
    margin-bottom: 1rem;
  }

  form.system-theme-settings .vertical-tabs__menu-item {
    display: block;
    width: 100%;
    float: none;
    border-bottom-width: 1px;
  }

  form.system-theme-settings .vertical-tabs__menu-item:last-child {
    border-bottom: none;
  }

  form.system-theme-settings .vertical-tabs__menu-link {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    text-decoration: none;
    border-radius: 0;
  }

  form.system-theme-settings .vertical-tabs__panes {
    width: 100%;
    float: none;
    margin-left: 0;
  }

  /* Transform vertical tabs to accordion-style on mobile */
  form.system-theme-settings .vertical-tabs__menu-item.is-selected .vertical-tabs__menu-link {
    font-weight: bold;
  }

  /* No animations on mobile - keep simple */
  form.system-theme-settings .vertical-tabs__pane {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }

}

/* Desktop enhancements with slide animations */
@media (min-width:62rem) {
  form.system-theme-settings  .vertical-tabs .vertical-tabs__panes {
    --vertical-tabs-menu-width: 16rem;
  }

  form.system-theme-settings .vertical-tabs__menu {
    min-width: 200px;
    max-width: 250px;
  }

  form.system-theme-settings .vertical-tabs__panes {
    padding-left: 1rem;
    position: relative;
    overflow: hidden;
  }

  /* Slide animation for vertical tab panels on desktop */
  form.system-theme-settings .vertical-tabs__pane {
    position: relative;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.3s ease-out;
    pointer-events: none;
  }

  /* Active panel slides in from left */
  form.system-theme-settings .vertical-tabs__pane.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  /* Alternative: if using open attribute instead of class */
  form.system-theme-settings .vertical-tabs__pane[open] {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

}

/* General improvements for all screen sizes */
form.system-theme-settings .vertical-tabs__menu-link {
  transition: all 0.2s ease;
}

form.system-theme-settings .vertical-tabs__menu-link:hover {
  text-decoration: none;
}

/* Ensure proper spacing in vertical tab content */
form.system-theme-settings .vertical-tabs__pane .form-item:last-child {
  margin-bottom: 0;
}

/* Content type widths section inside vertical tab */
form.system-theme-settings .vertical-tabs__pane .form-item details {
  margin-top: 1rem;
}

/* Consistent spacing for nested form elements */
form.system-theme-settings .vertical-tabs__pane .form-type-checkbox,
form.system-theme-settings .vertical-tabs__pane .form-type-select,
form.system-theme-settings .vertical-tabs__pane .form-type-textfield,
form.system-theme-settings .vertical-tabs__pane .form-type-textarea {
  margin-bottom: 1rem;
}

/* Solo Accordion Toggle Button Styling */
form.system-theme-settings .solo-accordion-toggle-container {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom-width: 2px;
}

form.system-theme-settings .solo-accordion-toggle-help {
  margin-top: 5px;
  font-size: 12px;
}

/* Menu template assignment: responsive scrollable table */
.solo-menu-template-assignment-table-wrapper {
  max-width: 100%;
  max-height: 24rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.solo-menu-template-assignment-table-wrapper table {
  width: 100%;
  min-width: 20rem;
}

/* Preloader appearance: smart grid layout per “style” (scoped to this fieldset only) */
/* Gin/Claro use .fieldset__wrapper; Solo uses .fieldset-wrapper */
.solo-preloader-appearance > .fieldset__wrapper,
.solo-preloader-appearance > .fieldset-wrapper {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

/* Full width: Style, Text field, Logo URL, checkboxes */
.solo-preloader-appearance .form-type--boolean,
.solo-preloader-appearance .form-type--checkbox,
.solo-preloader-appearance .form-type--select.form-item--preloader-transition,
.solo-preloader-appearance .form-item:has(#edit-preloader-style),
.solo-preloader-appearance .form-item:has(#edit-preloader-text),
.solo-preloader-appearance .form-item:has(#edit-preloader-logo-url) {
  grid-column: 1 / -1;
  margin-top: 0;
}

/* Style select: natural width, don’t stretch */
.solo-preloader-appearance .form-item:has(#edit-preloader-style) .form-element {
  width: auto;
  min-width: 12rem;
  max-width: 20rem;
}

/* Text and Logo URL: use full row width */
.solo-preloader-appearance .form-item:has(#edit-preloader-text) .form-element,
.solo-preloader-appearance .form-item:has(#edit-preloader-logo-url) .form-element {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Inline: number + select (font, animation, size, logo w/h/opacity) — natural width */
.solo-preloader-appearance .form-type--number,
.solo-preloader-appearance .form-type--select {
  grid-column: span 4;
}

.solo-preloader-appearance .form-type--number .form-element,
.solo-preloader-appearance .form-type--select .form-element {
  width: auto;
  min-width: 6rem;
  max-width: 100%;
  box-sizing: border-box;
}

/* Text color, background, background opacity: one row on big screen */
@media (min-width: 769px) {
  .solo-preloader-appearance .form-item:has(.solo-preloader-color-field),
  .solo-preloader-appearance .form-item:has(#edit-preloader-bg-opacity) {
    grid-column: span 4;
    margin-top: 0;
  }
}

@media (max-width: 1100px) {
  .solo-preloader-appearance .form-type--number,
  .solo-preloader-appearance .form-type--select {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .solo-preloader-appearance .form-type--number,
  .solo-preloader-appearance .form-type--select {
    grid-column: 1 / -1;
  }

  .solo-preloader-appearance .form-item:has(.solo-preloader-color-field),
  .solo-preloader-appearance .form-item:has(#edit-preloader-bg-opacity) {
    grid-column: 1 / -1;
  }
}

/* Preloader & back-to-top: select and color picker */
#edit-back-to-top select,
#edit-preloader #edit-appearance select {
  min-width: 200px;
}

#edit-back-to-top [data-drupal-selector="solo-color-picker"],
#edit-preloader #edit-appearance [data-drupal-selector="solo-color-picker"] {
  gap: 0;
  border: none;
  padding: 0 0 16px 0;
  max-width: 160px;
}

#edit-comment-form-position > div {
  display: flex;
  align-items: center;
}

#edit-comment-form-position > div > label {
  margin: 0 0 0 12px;
}

/* Preloader: "Force show for testing" — only this label turns red when checked */
form.system-theme-settings #edit-preloader-force-show:checked + label[for="edit-preloader-force-show"],
form.system-theme-settings .form-item:has(#edit-preloader-force-show:checked) label[for="edit-preloader-force-show"] {
  color: #c00;
}
