@charset "utf-8";

/* ===================================================== */
/* 1. GLOBAL */
/* ===================================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a1c20, #111318);
  color: #e5e7eb;
  overflow: hidden;
}

/* ===================================================== */
/* 2. VIEWER */
/* ===================================================== */

#viewer {
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* ===================================================== */
/* 3. ANA PANEL (.bar) */
/* ===================================================== */

.bar {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 260px;
  background: linear-gradient(#2e323a, #24272e);
  padding: 15px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid #3a3f48;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  border-top: 3px solid #5b8fd8;
  z-index: 20;
}

.bar .group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar label {
  font-size: 12px;
  color: #aab0bb;
  font-weight: 600;
}

/* ===================================================== */
/* 4. INPUT / SELECT / BUTTON */
/* ===================================================== */

.bar input,
.bar select {
  background: #1f2228;
  color: #fff;
  border: 1px solid #3a3f48;
  padding: 8px;
  border-radius: 6px;
  font-size: 13px;
  transition: border 0.2s;
}

.bar input:focus,
.bar select:focus {
  outline: none;
  border-color: #5b8fd8;
}

.bar button {
  background: linear-gradient(#5b8fd8, #3f6fb4);
  color: #fff;
  border: none;
  padding: 10px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
}

.bar button:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px rgba(91, 143, 216, 0.4);
}

.bar button:active {
  transform: translateY(1px);
}

/* ===================================================== */
/* 5. YARDIM PANELİ */
/* ===================================================== */

#mouseHelp {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(36, 39, 46, 0.9);
  backdrop-filter: blur(6px);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #3a3f48;
  font-size: 13px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  border-top: 3px solid #5b8fd8;
  z-index: 30;
}


#fileInput {
  display: none;
}

.custom-file-label {
  display: block;
  text-align: center;
  padding: 10px;
  background: #3a3f48;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  border: 1px dashed #5b8fd8;
  transition: 0.2s;
}

.custom-file-label:hover {
  background: #464b55;
  color: #ffcc00;
}

/* ===================================================== */
/* 8. ÖLÇEK INPUTLARI */
/* ===================================================== */

.scale-container {
  display: flex;
  gap: 5px;
}

.input-with-label {
  display: flex;
  align-items: center;
  background: #1f2228;
  border: 1px solid #3a3f48;
  border-radius: 6px;
  padding-left: 5px;
  flex: 1;
}

.input-with-label span {
  font-size: 10px;
  font-weight: bold;
  color: #5b8fd8;
  margin-right: 4px;
}

.input-with-label input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 6px;
  text-align: center;
  font-size: 12px;
  color: #fff;
}

/* ===================================================== */
/* 9. BİLGİ PANELLERİ */
/* ===================================================== */

.dimensions-info,
.info-panel {
  background: rgba(0, 0, 0, 0.25);
  padding: 10px;
  border-radius: 8px;
  font-size: 11px;
  border-left: 3px solid #5ac8fa;
}

.info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  color: #aab0bb;
}

.info-row span:last-child {
  color: #5ac8fa;
  font-weight: bold;
}

#sizeInfo {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #00ffcc;
}

/* ===================================================== */
/* 10. COLOR GRID */
/* ===================================================== */

#colorGrid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  background: #1f2228;
  padding: 8px;
  border-radius: 8px;
  max-height: 55px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #888 #1f2228;
}

#colorGrid::-webkit-scrollbar {
  width: 6px;
}

#colorGrid::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.color-box {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s;
}

.color-box:hover {
  transform: scale(1.15);
}

/* ===================================================== */
/* 11. RESULT TABLE */
/* ===================================================== */
/* Fiyat satırını özel olarak renklendirir */
.result-table tr.total-row {
  background-color: #f0f7ff; /* Çok hafif mavi bir ton */
}

.result-table tr.total-row td:last-child {
  color: #28a745; /* Fiyatı yeşil yaparak vurgular */
  font-size: 16px;
  font-weight: bold;
}

/* Değerlerin (sağ sütun) hizalaması */
.result-table td:last-child {
  text-align: right;
  color: #333;
}
.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  color: #000;
  border-radius: 8px;
  overflow: hidden;
}


.result-table td:first-child {
  font-weight: 600;
  color: #555;
  width: 140px;
}
.result-table tr:hover {
  background-color: #f8f9fa;
  transition: background 0.2s ease;
}
.result-table td {
  padding: 10px 12px; /* Biraz daha geniş iç boşluk */
  border-bottom: 1px solid #eee;
}

.result-table tr:last-child td {
  border-bottom: none; /* Son satırdaki çizgiyi kaldırır */
}
/* ===================================================== */
/* 12. FORM */
/* ===================================================== */


@media (max-width: 768px) {

  .bar {
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
  }

  #mouseHelp {
    display: none;
  }

  #fiyat {
    width: 90%;
  }
}

.hesap-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none; /* JS ile flex yapılacak */
    justify-content: center; /* Yatayda orta */
    align-items: center;     /* Dikeyde orta */
    z-index: 9999;
}
#islemAkisi {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* 0.85 değeri şeffaflığı belirler. 
       Daha fazla şeffaflık istersen 0.70 yapabilirsin. */
    background: rgba(0, 0, 0, 0.85); 
    backdrop-filter: blur(5px); /* Arka planı hafifçe buğulu yapar (opsiyonel ama şıktır) */
    z-index: 9999999 !important;
    display: none;
    align-items: center;
    justify-content: center;
}
.islem-box {
    width: 350px;
    background: #1a1a1a;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #4f83cc;
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    /* Dışa kaymayı önlemek için kutu modelini sabitleyelim */
    box-sizing: border-box; 
}

.progress-container {
    width: 100%;
    background: #333;
    height: 12px;
    border-radius: 6px;
    margin: 20px 0;
    overflow: hidden;
}

#progressBar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #4f83cc, #34c759);
    transition: width 0.4s ease;
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    text-align: left;
}

.steps-list li {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
}

.steps-list li.active { color: #4f83cc; font-weight: bold; }
.steps-list li.done { color: #34c759; }

/* Ana Panel ve Kapatma Butonu */
#fiyat {
    padding: 30px; /* Buton için boşluk */
    position: relative;
    background: #fff;
    border-radius: 8px;
	
    background: rgba(28, 30, 35, 0.98); /* Daha derin bir koyu ton */
    backdrop-filter: blur(12px);
    padding: 30px;
    border: 1px solid #3a3f48;
    border-top: 4px solid #5b8fd8;
    z-index: 10000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    color: #e5e7eb;
	width: 650px;
    max-width: 95%;

	
}
/* Modal İçindeki Tabloyu Koyu Temaya Uyarlama */
#fiyat .result-table {
    background: rgba(255, 255, 255, 0.03) !important;
    color: #e5e7eb !important;
    border: 1px solid #3a3f48 !important;
}

#fiyat .result-table td {
    border-bottom: 1px solid #3a3f48 !important;
    color: #e5e7eb !important;
}

#fiyat .result-table td:first-child {
    color: #aab0bb !important; /* Etiketler daha sönük */
}

/* Fiyat Satırı Vurgusu */
#fiyat .result-table tr.total-row {
    background-color: rgba(91, 143, 216, 0.15) !important;
}

#fiyat .result-table tr.total-row td:last-child {
    color: #5ac8fa !important; /* Fiyat açık mavi/turkuaz vurgu */
    font-size: 18px;
}

/* Form Giriş Alanlarını Koyu Temaya Uyarlama */
#fiyat .form-input {
    background: #1f2228 !important;
    border: 1px solid #3a3f48 !important;
    color: #ffffff !important;
    padding: 12px;
    border-radius: 6px;
}

#fiyat .form-input::placeholder {
    color: #666;
}

#fiyat .form-input:focus {
    border-color: #5b8fd8 !important;
    outline: none;
    box-shadow: 0 0 10px rgba(91, 143, 216, 0.2);
}

/* Kapatma Butonu */
#fiyat .close-btn {
    color: #aab0bb;
    transition: color 0.2s;
	  top: 8px;
  right: 8px;

}

#fiyat .close-btn:hover {
    color: #ff5f57;
}

/* Tablo Satır Hover Efekti */
#fiyat .result-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}
}
/* ===================================================== */
/* 12. FORM YAPISI (SOL: 3 INPUT - SAĞ: NOT ALANI) */
/* ===================================================== */

#musteriFormPanel {
    margin-top: 20px;
    animation: fadeIn 0.4s ease; /* Form açılırken yumuşak gelsin */
}

/* Satır yapısı: İki sütunu yan yana getirir ve boylarını eşitler */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: stretch; /* ÖNEMLİ: İki sütunun boyunu birbirine eşitler */
}

/* Sol sütun: Inputları alt alta dizer */
.form-col-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Sağ sütun: Textarea'nın içini doldurmasını sağlar */
.form-col-right {
    flex: 1;
    display: flex; /* İçindeki textarea'nın yüksekliğini kontrol etmek için */
}

/* Form Input ve Textarea Ortak Stil */
.form-input {
    width: 100%;
    background: #1f2228 !important; /* Panel rengiyle uyumlu koyu gri */
    border: 1px solid #3a3f48 !important;
    color: #ffffff !important;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #5b8fd8 !important;
}

/* Textarea'ya özel ayar: Sütunu tamamen doldurur */
.text-area-input {
    height: 100%; /* Sütunun tüm yüksekliğini kapla */
    min-height: 146px; /* 3 input + gap toplamı kadar (3x42px + 20px) */
    resize: none; /* Kullanıcı boyutu değiştiremesin (tasarımı bozmaz) */
}

/* Sipariş Butonu Düzenlemesi */
#musteriFormPanel .btn-siparis {
    margin-top: 10px;
    height: 45px;
    font-size: 16px;
    letter-spacing: 0.5px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== SIPARIS BUTONU ===== */
.btn-siparis {
  display: inline-block;
  margin: 0 auto; /* yatay ortalama */
  background: linear-gradient(135deg, #5b8fd8, #3f6fb4);
  color: #fff;
  font-weight: bold;
  border: none;
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: all 0.25s ease;
  text-align: center;
}

.btn-siparis:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 15px rgba(91, 143, 216, 0.5);
  transform: translateY(-2px);
}

.btn-siparis:active {
  transform: translateY(1px);
  box-shadow: 0 3px 8px rgba(91, 143, 216, 0.4);
}

/* ORTALAMA KAPSAYICI */
.btn-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin:15px;
}



