/* ─── GENERATOR KOLORÓW — KABEX ─── */

#app-studio-color {
  max-width: 1100px;
  font-family: inherit;
}

/* ═══════════════════════════════════════
   FUNCTIONAL (nie ruszaj — JS zależy)
═══════════════════════════════════════ */

#app-studio-color .studio-color-image-placeholder {
  visibility: hidden;
}
#app-studio-color #studio-color img {
  position: absolute;
  visibility: hidden;
}
#app-studio-color .e-0 {
  opacity: 0.35;
  pointer-events: none;
}
#app-studio-color .tab-content > .tab-pane {
  display: none;
}
#app-studio-color .tab-content > .tab-pane.active {
  display: block;
}

/* ═══════════════════════════════════════
   LISTA WIZUALIZACJI
═══════════════════════════════════════ */

#app-studio-color .sc-list__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  #app-studio-color .sc-list__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 520px) {
  #app-studio-color .sc-list__grid {
    grid-template-columns: 1fr;
  }
}

#app-studio-color .sc-list__card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}
#app-studio-color .sc-list__card:hover {
  box-shadow: 0 10px 36px rgba(30, 91, 168, 0.18);
  transform: translateY(-5px);
}

#app-studio-color .sc-list__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e8edf2;
}
#app-studio-color .sc-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
#app-studio-color .sc-list__card:hover .sc-list__thumb img {
  transform: scale(1.07);
}

#app-studio-color .sc-list__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 30, 60, 0.82) 0%, rgba(15, 30, 60, 0) 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 22px;
}
#app-studio-color .sc-list__card:hover .sc-list__overlay {
  opacity: 1;
}
#app-studio-color .sc-list__cta {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 22px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 100px;
  backdrop-filter: blur(4px);
}

#app-studio-color .sc-list__meta {
  padding: 14px 18px 16px;
}
#app-studio-color .sc-list__meta h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #1a2540;
  letter-spacing: 0.01em;
}

#app-studio-color .sc-list__link {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 5;
}

/* ═══════════════════════════════════════
   CANVAS — WIZUALIZACJA BUDYNKU
═══════════════════════════════════════ */

#app-studio-color #studio-color {
  position: relative;
  background: #0f172a;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

#app-studio-color #studio-color-scene-switch {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}
#app-studio-color #studio-color-scene-switch span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
#app-studio-color #studio-color-scene-switch a {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.12);
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.2s, transform 0.2s;
}
#app-studio-color #studio-color-scene-switch a:hover {
  background-color: rgba(255, 255, 255, 0.28);
  transform: scale(1.08);
}
#app-studio-color #studio-color-scene-switch a.scene-base {
  background-image: url(images/scene-base.png);
}
#app-studio-color #studio-color-scene-switch a.scene-bush {
  background-image: url(images/scene-bush.png);
}
#app-studio-color #studio-color-scene-switch a.scene-green {
  background-image: url(images/scene-green.png);
}
#app-studio-color #studio-color:after {
  content: "";
  display: block;
  clear: both;
}

/* ═══════════════════════════════════════
   PANEL: ZAKŁADKI ELEMENTÓW
═══════════════════════════════════════ */

#app-studio-color #studio-color-nav {
  background: #ffffff;
  border-radius: 0 0 16px 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

#app-studio-color #studio-color-nav .nav {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}
#app-studio-color #studio-color-nav .nav::after {
  content: "";
  display: table;
  clear: both;
}

#app-studio-color #studio-color-nav .nav-tabs {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-top: none;
}
#app-studio-color #studio-color-nav .nav-tabs::-webkit-scrollbar {
  display: none;
}
#app-studio-color #studio-color-nav .nav-tabs li {
  list-style: none;
  float: none;
  flex-shrink: 0;
}
#app-studio-color #studio-color-nav .nav-tabs li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 20px 14px;
  min-width: 100px;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
  border-radius: 0;
  transition: border-color 0.2s, background 0.2s;
  background: transparent;
}
#app-studio-color #studio-color-nav .nav-tabs li a:hover {
  background: #f8fafc;
}
#app-studio-color #studio-color-nav .nav-tabs li.active a {
  border-bottom-color: #1E5BA8;
  background: transparent;
}

#app-studio-color #studio-color-nav .nav-tabs li a .name {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 7px;
  white-space: nowrap;
}
#app-studio-color #studio-color-nav .nav-tabs li.active a .name {
  color: #1E5BA8;
}
#app-studio-color #studio-color-nav .nav-tabs li a .color {
  display: block;
  width: 44px;
  height: 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  margin-bottom: 6px;
}
#app-studio-color #studio-color-nav .nav-tabs li a .color-name {
  font-size: 10px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#app-studio-color #studio-color-nav .nav-tabs li.active a .color-name {
  color: #6b7280;
}

/* ═══════════════════════════════════════
   PALETA KOLORÓW
═══════════════════════════════════════ */

#app-studio-color #studio-color-nav .tab-content {
  padding: 20px 24px 8px;
  background: #ffffff;
  border-radius: 0 0 16px 16px;
}
#app-studio-color #studio-color-nav .tab-content:after {
  content: "";
  display: block;
  clear: both;
}

#app-studio-color .colors-section {
  float: left;
  margin: 0 16px 20px 0;
}
#app-studio-color .colors-list {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 216px;
}
#app-studio-color .colors-list li {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
#app-studio-color .colors-list li:hover {
  transform: scale(1.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  z-index: 2;
}

/* ═══════════════════════════════════════
   PRZYCISKI AKCJI
═══════════════════════════════════════ */

#app-studio-color #studio-color-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 4px 0 8px;
  position: relative;
  margin: 0;
}
#app-studio-color #studio-color-buttons .button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #1E5BA8;
  border: 2px solid #1E5BA8;
  border-radius: 10px;
  padding: 11px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.22s, color 0.22s, transform 0.18s;
  width: auto;
  white-space: nowrap;
  cursor: pointer;
}
#app-studio-color #studio-color-buttons .button:hover {
  background: #1E5BA8;
  color: #ffffff;
  transform: translateY(-2px);
}
#app-studio-color #studio-color-buttons .button .fa {
  font-size: 15px;
  line-height: 1;
}
@media (max-width: 480px) {
  #app-studio-color #studio-color-buttons {
    flex-direction: column;
    align-items: stretch;
    padding: 0 16px 8px;
  }
  #app-studio-color #studio-color-buttons .button {
    justify-content: center;
  }
}
