/* material-customizer.css */
/* 3D model materyal özelleştirme için stil tanımlamaları */

/* Ana materyal bölümü */
#material-customizer-section {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* 3D model sahne konteyneri */
.scene-container {
  width: 100%;
  height: 500px;
  background-color: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Materyal özelleştirme paneli */
.material-customizer-panel {
  width: 100%;
  height: 500px;
  background-color: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

/* Customizer panel içi */
.customizer-panel {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #f8f9fa;
  border-left: 1px solid #dee2e6;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  overflow: hidden;
}

.customizer-header {
  padding: 15px;
  background-color: #343a40;
  color: white;
  text-align: center;
  border-bottom: 1px solid #495057;
}

.customizer-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: calc(100% - 50px);
  overflow: hidden;
}

.material-groups-container {
  padding: 15px;
  border-bottom: 1px solid #dee2e6;
  max-height: 40%;
  overflow-y: auto;
}

.material-properties-container {
  padding: 15px;
  flex: 1;
  overflow-y: auto;
}

/* Materyal grupları listesi */
.material-groups-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.material-group-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
  width: calc(50% - 5px);
  margin-bottom: 10px;
}

/* Yükleme ekranı */
.loading-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.loading-screen .spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Custom tab başlık stilleri */
.nav-tabs .nav-item .nav-link.active[href="#customize-tab-content"] {
  color: #007bff;
  font-weight: bold;
  border-color: #007bff #dee2e6 #fff;
}

/* Kişiselleştirme butonu stilleri */
#enable-material-customizer-btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  padding: 12px 20px;
  font-size: 18px;
}

#enable-material-customizer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

#enable-material-customizer-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 123, 255, 0.2);
}

/* Grup seçiciler için animasyon */
.material-group-item {
  transition: all 0.3s ease;
}

.material-group-item:hover {
  transform: translateY(-3px);
  background-color: #f8f9fa;
  border-color: #6c757d;
}

.material-group-item.active {
  background-color: #e9ecef;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.color-changing {
  animation: colorChangeAnimation 0.6s ease;
}

@keyframes colorChangeAnimation {
  0% { opacity: 0.5; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

/* Grup simgesi ve adı */
.group-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 8px;
  color: rgba(0, 0, 0, 0.5);
}

.group-name {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Responsive ayarlamalar */
@media (max-width: 767.98px) {
  .scene-container, 
  .material-customizer-panel {
    height: 350px;
    margin-bottom: 1rem;
  }
  
  .material-customizer-panel {
    margin-top: 1rem;
  }
  
  .material-group-item {
    width: 100%;
  }
}

/* Material önizleme paneli */
.material-preview {
  display: inline-block;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

/* Özellikler bölümü */
.property-section {
  margin-bottom: 20px;
  background-color: white;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.property-title {
  font-weight: 500;
  margin-bottom: 10px;
  color: #343a40;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

/* Renk seçici */
.color-picker-container {
  margin-bottom: 10px;
}

.color-picker {
  width: 100%;
  height: 40px;
  border: none;
  cursor: pointer;
}

.predefined-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #dee2e6;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.color-swatch:hover {
  transform: scale(1.1);
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

/* Tooltip stillemleri */
.tooltip-inner {
  max-width: 200px;
  padding: 8px 12px;
  color: #fff;
  text-align: center;
  background-color: #000;
  border-radius: 4px;
}

.tooltip.bs-tooltip-auto[x-placement^=top] .arrow::before, 
.tooltip.bs-tooltip-top .arrow::before {
  border-top-color: #000;
}

/* Özelleştirme tamamlandı animasyonu */
.customization-complete {
  animation: completeAnimation 1s ease;
}

@keyframes completeAnimation {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); box-shadow: 0 0 20px rgba(40, 167, 69, 0.5); }
  100% { transform: scale(1); }
}

/* Materyal tipi seçici stil düzenlemeleri */
.material-type-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23495057' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}

/* Materyal Özelleştirici CSS Stilleri */

/* Ana materyal seçici konteyner */
.material-selector-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.material-selector-container:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.material-selector-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  position: relative;
}

.material-selector-title:after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: #3a5a40;
  bottom: -2px;
  left: 0;
  transition: width 0.3s ease;
}

.material-selector-container:hover .material-selector-title:after {
  width: 80px;
}

/* Özelleştirilmiş Dropdown */
.custom-select-container {
  position: relative;
  margin-bottom: 20px;
}

.select-label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
  position: relative;
  transition: all 0.3s ease;
}

.select-label:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #3a5a40;
  bottom: -3px;
  left: 0;
  transition: width 0.3s ease;
}

.custom-select-container:hover .select-label:after {
  width: 30px;
}

.custom-select {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.select-selected {
  display: flex;
  align-items: center;
  background-color: #f8f9fa;
  border: 2px solid #e9ecef;
  padding: 12px 16px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.select-selected:hover {
  border-color: #3a5a40;
  background-color: #f1f8f2;
}

.select-arrow {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #3a5a40;
  transition: transform 0.3s ease;
}

.select-selected.active .select-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.select-items {
  position: absolute;
  background-color: white;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 99;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  max-height: 280px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.select-items.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.select-item {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 0px solid transparent;
}

.select-item:hover {
  background-color: #f1f3f5;
  border-left: 4px solid #3a5a40;
}

.select-item.selected {
  background-color: #e8f5e9;
  border-left: 4px solid #3a5a40;
}

/* Materyal Önizleme */
.material-preview {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  margin-right: 12px;
  background-size: cover;
  background-position: center;
  border: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.select-item:hover .material-preview {
  transform: scale(1.08);
}

/* Renk Daire */
.color-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
  transition: transform 0.3s ease;
}

.select-item:hover .color-circle {
  transform: scale(1.08);
}

.color-circle::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.selected .color-circle::after {
  border-color: #3a5a40;
}

/* Sıfırlama Butonu */
#resetMaterialBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e9ecef;
  background-color: #f8f9fa;
  color: #333;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

#resetMaterialBtn i {
  margin-right: 8px;
}

#resetMaterialBtn:hover {
  background-color: #3a5a40;
  border-color: #3a5a40;
  color: white;
  transform: translateY(-2px);
}

/* Animasyonlar */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(58, 90, 64, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(58, 90, 64, 0); }
  100% { box-shadow: 0 0 0 0 rgba(58, 90, 64, 0); }
}

.pulse-effect {
  animation: pulse 1.5s infinite;
}

/* Kaydırma Çubuğu Stil */
.select-items::-webkit-scrollbar {
  width: 6px;
}

.select-items::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.select-items::-webkit-scrollbar-thumb {
  background: #a3b18a;
  border-radius: 10px;
}

.select-items::-webkit-scrollbar-thumb:hover {
  background: #3a5a40;
}

/* Duyarlı Tasarım */
@media (max-width: 768px) {
  .material-selector-container {
    padding: 15px;
  }
  
  .material-selector-title {
    font-size: 16px;
  }
  
  .select-selected {
    padding: 10px 12px;
  }
  
  .select-item {
    padding: 10px 12px;
  }
  
  .material-preview, .color-circle {
    width: 28px;
    height: 28px;
    margin-right: 8px;
  }
}

/* Mesh seçim dropdown'ı */
#mesh-selector {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 1em;
  cursor: pointer;
}

#mesh-selector:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Materyal özellikleri paneli */
.material-properties-panel {
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* Seçili mesh ismi */
#selected-mesh-name {
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 15px;
  font-weight: 500;
  color: #343a40;
}

#selected-mesh-name span {
  font-weight: 600;
  color: #007bff;
}

/* Reset butonu */
#reset-material-btn {
  width: 100%;
  padding: 8px 12px;
  transition: all 0.2s;
}

#reset-material-btn:hover {
  background-color: #f8f9fa;
  border-color: #6c757d;
}

#reset-material-btn i {
  font-size: 12px;
}

/* Texture seçenekleri */
#texture-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.texture-option {
  width: calc(33.33% - 7px);
  height: 80px;
  border-radius: 4px;
  border: 2px solid transparent;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
}

.texture-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.texture-option.selected {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.texture-preview {
  width: 100%;
  height: 60px;
  background-size: cover;
  background-position: center;
}

.texture-name {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 4px;
  font-size: 12px;
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

@media (max-width: 767.98px) {
  .texture-option {
    width: calc(50% - 5px);
    height: 70px;
  }

  .texture-preview {
    height: 50px;
  }
}

/* Material dropdown stili */
#material-type-dropdown {
  position: relative;
  width: 100%;
  z-index: 10;
}

#material-type-dropdown .custom-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}

#material-type-dropdown .custom-dropdown-header:hover {
  border-color: #aaa;
}

#material-type-dropdown .custom-dropdown-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 20;
}

#material-type-dropdown .custom-dropdown-options.show {
  max-height: 300px;
  overflow-y: auto;
}

#material-type-dropdown .custom-dropdown-option {
  display: flex;
  align-items: center;
  padding: 10px;
  cursor: pointer;
}

#material-type-dropdown .custom-dropdown-option:hover {
  background-color: #f8f9fa;
}

#material-type-dropdown .item-name {
  display: flex;
  align-items: center;
}

#material-type-dropdown .material-preview {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  margin-right: 10px;
}

/* Genel stil iyileştirmeleri */
.options-title {
  font-size: 14px;
  font-weight: 500;
  color: #6c757d;
  margin-bottom: 8px;
}

.material-selector-container {
  margin-bottom: 15px;
}

.material-selector-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  color: #343a40;
}

.material-selector-title i {
  margin-right: 5px;
  color: #6c757d;
}

/* Yeni UI Stilleri */

/* Form Stilleri */
.form-select {
  display: block;
  width: 100%;
  padding: 0.75rem 2.25rem 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-select:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  color: #333;
}

.form-label i {
  margin-right: 0.5rem;
  color: #3a5a40;
}

.form-group {
  margin-bottom: 1.5rem;
}

/* Materyal Özellikleri Kartı */
#material-properties-panel {
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border-radius: 0.5rem;
  overflow: hidden;
}

#material-properties-panel .card-body {
  padding: 1.5rem;
}

#material-properties-panel .card-title {
  color: #333;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

/* Texture Seçenekleri */
.texture-options {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.5rem;
}

.texture-option {
  cursor: pointer;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border: 3px solid transparent;
  margin-bottom: 1rem;
  height: 100%;
}

.texture-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.texture-option.selected {
  border-color: #3a5a40;
  box-shadow: 0 0 0 3px rgba(58, 90, 64, 0.3);
}

.texture-preview {
  height: 100px;
  background-size: cover;
  background-position: center;
}

.texture-name {
  padding: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
}

/* Bootstrap Yardımcıları */
.fw-bold {
  font-weight: 700!important;
}

.me-2 {
  margin-right: 0.5rem!important;
}

.ms-2 {
  margin-left: 0.5rem!important;
}

.mb-4 {
  margin-bottom: 1.5rem!important;
}

.text-success {
  color: #198754!important;
}

/* Reset Butonu */
#reset-material-btn {
  padding: 0.375rem 0.75rem;
  border: 1px solid #6c757d;
  border-radius: 0.25rem;
  color: #6c757d;
  background-color: transparent;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
}

#reset-material-btn:hover {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
}

/* Responsive düzenlemeler */
@media (max-width: 767.98px) {
  .texture-preview {
    height: 80px;
  }
  
  .texture-name {
    font-size: 0.75rem;
    padding: 0.375rem;
  }
  
  .form-select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
  
  #material-properties-panel .card-body {
    padding: 1rem;
  }
}

/* Özel stil düzeltmeleri */
.customize-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #3a5a40;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(58, 90, 64, 0.2);
}

.customize-section-title i {
  margin-right: 0.5rem;
}

.col-6, .col-md-4 {
  padding-right: 0.5rem;
  padding-left: 0.5rem;
}

.row {
  margin-right: -0.5rem;
  margin-left: -0.5rem;
}

.g-2 {
  --bs-gutter-x: 0.5rem;
  --bs-gutter-y: 0.5rem;
}

/* Toast Bildirim Stili */
.material-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: rgba(58, 90, 64, 0.95);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  max-width: 350px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.material-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.material-toast-content {
  display: flex;
  align-items: center;
}

.material-toast-content i {
  margin-right: 10px;
  font-size: 16px;
  color: #A3B18A;
}

/* Mesh listesi container stilleri */
.material-cards-container {
  max-height: 500px; /* Maksimum yükseklik */
  overflow-y: auto; /* Dikey scroll ekle */
  padding-right: 10px; /* Scroll çubuğu için boşluk */
  margin-top: 15px;
  scrollbar-width: thin; /* Firefox için ince scrollbar */
  scrollbar-color: rgba(0, 0, 0, 0.3) transparent; /* Firefox için scrollbar rengi */
}

/* Webkit (Chrome, Safari, Edge) için scrollbar stilleri */
.material-cards-container::-webkit-scrollbar {
  width: 6px;
}

.material-cards-container::-webkit-scrollbar-track {
  background: transparent;
}

.material-cards-container::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

.material-cards-container::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

/* Mesh listesi başlığı için stil */
.material-section-header {
  position: sticky;
  top: 0;
  background: white;
  padding: 10px 0;
  z-index: 1;
  border-bottom: 1px solid #eee;
}

/* Loading spinner ve yazı rengi */
.mesh-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  color: #a27b5c;
}

.mesh-loading .spinner-border {
  color: #a27b5c;
} 

/* --- NEW CUSTOMIZER UI STYLES --- */

.customizer-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.customizer-content-scroll {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.customizer-content-scroll::-webkit-scrollbar {
    width: 5px;
}
.customizer-content-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.customizer-content-scroll::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 10px;
}

.mesh-group-card {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.mesh-group-header {
    padding: 16px 20px;
    background: #fdfdfd;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.mesh-group-header:hover {
    background: #f5f5f5;
}

.mesh-group-header.active {
    background: #f0f4f1; /* Slight green tint or custom brand color tint */
    border-bottom-color: #e0e0e0;
}

.mesh-group-title {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.transition-icon {
    transition: transform 0.3s ease;
    color: #888;
    font-size: 12px;
}

.mesh-group-header.active .transition-icon {
    transform: rotate(180deg);
}

.mesh-group-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
}

.material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    padding: 20px;
}

.material-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    gap: 8px;
}

.material-swatch-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.material-grid-item:hover .material-swatch-wrapper {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.15);
}

.material-grid-item.selected .material-swatch-wrapper {
    border-color: #3a5a40; /* Primary green */
    box-shadow: 0 0 0 3px rgba(58, 90, 64, 0.2);
}

.material-swatch-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.selected-check {
    position: absolute;
    inset: 0;
    background: rgba(58, 90, 64, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.2s;
}

.material-grid-item.selected .selected-check {
    opacity: 1;
}

.material-swatch-name {
    font-size: 12px;
    color: #666;
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.material-grid-item.selected .material-swatch-name {
    color: #3a5a40;
    font-weight: 700;
} 