/* =====================================================
   ZATS CSS - Banka.html layout'una uygun
   ===================================================== */

/* Container genişliği - Tüm kartlar için ortak */
.container1 {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-sizing: border-box;
}

/* ZATS Ana İçerik Kartı */
.zats-main-card {
  background: #0b0b0c !important;
  color: white !important;
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
  overflow: hidden;
}

/* Topbar */
.topbar {
  padding: 18px 18px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  background: rgba(0,0,0,.2);
}

.topbar-left {
  flex: 1;
}

.topbar .title {
  margin: 0;
  font-size: 15.5px;
  letter-spacing: .2px;
  font-weight: 600;
  color: white;
}

.topbar .subtitle {
  margin: 6px 0 0 0;
  color: white;
  font-size: 12.5px;
  line-height: 1.45;
  max-width: 78ch;
}

.topbar-right {
  text-align: right;
  min-width: 190px;
}

/* Pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  background: rgba(0,0,0,.3);
  color: white;
  font-size: 11px;
  margin-bottom: 10px;
  white-space: nowrap;
  opacity: .92;
}

/* Bar */
.bar {
  height: 8px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
}

.bar > div {
  height: 100%;
  width: 0%;
  background: rgba(255,255,255,.28);
  border-radius: 999px;
  transition: width .25s ease;
}

/* Content */
.content {
  padding: 18px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

/* Panels */
.panel {
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 16px;
  padding: 16px;
  background: rgba(0,0,0,.2);
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}

.panel:hover {
  border-color: rgba(255,255,255,.4);
  background: rgba(0,0,0,.3);
  transform: translateY(-1px);
}

.panel-title {
  margin: 0 0 10px 0;
  font-size: 12px;
  color: white;
  font-weight: 650;
  letter-spacing: .2px;
}

/* Inputs */
.fileRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.file-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,.3);
  background: rgba(0,0,0,.25);
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}

.file-label:hover {
  border-color: rgba(255,255,255,.5);
  background: rgba(0,0,0,.35);
  transform: translateY(-1px);
}

.file-label:active {
  transform: translateY(0);
}

.file-icon {
  font-size: 18px;
}

.file-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-label input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  top: 0;
  left: 0;
}

input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: white;
  font-size: 13px;
}

textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(0,0,0,.18);
  color: white;
  font-size: 13px;
  line-height: 1.45;
  resize: vertical;
  min-height: 140px;
  outline: none;
}

textarea:focus,
input[type="file"]:focus {
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 0 0 3px rgba(255,255,255,.06);
}

/* Buttons */
.btnRow {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.btnRow button {
  width: 100%;
}

button {
  appearance: none;
  border: 1px solid rgba(255,255,255,.10);
  background: transparent;
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .2px;
  font-size: 13px;
  transition: transform .06s ease, background .14s ease, border-color .14s ease, opacity .14s ease;
}

button:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.18);
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.status {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 700;
  color: #7CBB00;
}

.hint {
  margin: 4px 0 0 0;
  color: white;
  font-size: 12.5px;
  line-height: 1.45;
}

.hint.small {
  font-size: 12px;
}

.sep {
  height: 1px;
  background: rgba(255,255,255,.10);
  margin: 18px 0;
}

/* Insights */
.insights-panel {
  margin-top: 14px;
  background: transparent;
  border-style: solid;
}

.insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.insight-block {
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 14px;
  padding: 12px;
  background: rgba(0,0,0,.3);
}

.insight-block strong {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: .2px;
  color: white;
  opacity: 1;
}

.insight-block ul {
  margin: 0;
  padding-left: 18px;
  color: white;
  font-size: 12px;
  line-height: 1.45;
}

.insight-block.issues {
  background: rgba(255,193,7,.16);
}

.insight-block.fixes {
  background: rgba(73,209,125,.16);
}

/* CTA */
.ai-cta {
  margin-top: 18px;
  padding-right: 120px;
}

.ai-cta p {
  margin: 6px 0;
  font-size: 12px;
  color: white;
  line-height: 1.4;
}

.ai-cta a {
  color: white;
  opacity: .9;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,255,255,.25);
}

.ai-cta a:hover {
  opacity: 1;
  border-bottom-color: rgba(255,255,255,.45);
}

/* Preview */
.preview-panel {
  min-height: 520px;
  padding-bottom: 72px;
  display: flex;
  flex-direction: column;
}

.previewBox {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(0,0,0,.18);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  padding: 12px;
  white-space: pre-wrap;
  overflow: auto;
  max-height: 440px;
  font-size: 12.5px;
  line-height: 1.45;
  color: white;
}

.tiny {
  font-size: 12px;
  color: white;
  line-height: 1.4;
  margin-top: 10px;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .topbar-right {
    text-align: left;
    min-width: 0;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .ai-cta {
    padding-right: 0;
  }
}

@media (max-width: 500px) {
  .container1 {
    padding: 14px;
    gap: 15px;
  }
.zats-main-card {
    border-radius: 18px;
  }

  .topbar {
    padding: 16px;
  }

  .content {
    padding: 16px;
  }

  .preview-panel {
    min-height: 400px;
    padding-bottom: 20px;
  }

  .previewBox {
    max-height: 360px;
  }

  .insights-grid {
    grid-template-columns: 1fr;
  }
}
