/* Uyghur AI Video Studio - Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, sans-serif;
  background: #1e1e1e;
  color: #e0e0e0;
  min-height: 100vh;
}

.app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  padding: 30px 0 20px;
  border-bottom: 2px solid #2ecc71;
  margin-bottom: 25px;
}
header h1 {
  font-size: 28px;
  color: #2ecc71;
  margin-bottom: 8px;
}
header .sub {
  color: #888;
  font-size: 14px;
}

.card {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  border-left: 4px solid #2ecc71;
}
.card h2 {
  font-size: 18px;
  color: #2ecc71;
  margin-bottom: 15px;
}

textarea, input[type="text"], select {
  width: 100%;
  padding: 10px 14px;
  background: #1e1e1e;
  border: 1px solid #444;
  border-radius: 8px;
  color: #e0e0e0;
  font-size: 15px;
  resize: vertical;
  font-family: inherit;
}
textarea:focus, select:focus {
  outline: none;
  border-color: #2ecc71;
}

.row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.row select { width: auto; min-width: 180px; flex: 1; }

button {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}
.btn-primary {
  background: #2ecc71;
  color: #fff;
  font-weight: bold;
}
.btn-primary:hover { background: #27ae60; }
.btn-primary:disabled { background: #555; cursor: not-allowed; }
.btn-secondary {
  background: #3a3a3a;
  color: #e0e0e0;
  border: 1px solid #555;
}
.btn-secondary:hover { background: #4a4a4a; }
.btn-danger {
  background: #c0392b;
  color: #fff;
  padding: 6px 12px;
  font-size: 13px;
}

.slides { display: flex; flex-direction: column; gap: 15px; }
.slide {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 15px;
  background: #1e1e1e;
  padding: 15px;
  border-radius: 10px;
  align-items: start;
}
.slide .left { display: flex; flex-direction: column; gap: 8px; }
.slide textarea { min-height: 70px; }
.slide-actions { display: flex; gap: 8px; align-items: center; }
.slide-actions input[type="number"] {
  width: 70px;
  padding: 6px;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 6px;
  color: #e0e0e0;
}
.slide-img {
  width: 220px;
  height: 150px;
  background: #111;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px dashed #444;
}
.slide-img img { width: 100%; height: 100%; object-fit: cover; }
.slide-img .placeholder { color: #666; font-size: 13px; text-align: center; }

.progress-wrap {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.progress-bar {
  flex: 1;
  height: 22px;
  background: #111;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid #333;
}
#progressFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2ecc71, #27ae60);
  transition: width 0.3s;
}
#progressFill.indeterminate {
  width: 35% !important;
  border-radius: 11px;
  animation: slidebar 1.4s ease-in-out infinite alternate;
}
@keyframes slidebar {
  from { margin-left: 0; }
  to { margin-left: 65%; }
}
#progressText { color: #2ecc71; font-weight: bold; min-width: 45px; }

#videoResult { margin-top: 20px; text-align: center; }
#videoPlayer {
  width: 100%;
  max-width: 720px;
  border-radius: 10px;
  background: #000;
}
#downloadLink {
  display: inline-block;
  margin-top: 15px;
  text-decoration: none;
}

.status { color: #2ecc71; font-size: 14px; }

footer {
  text-align: center;
  padding: 25px;
  color: #555;
  font-size: 13px;
  margin-top: 20px;
}

@media (max-width: 700px) {
  .app { padding: 12px; }
  .card { padding: 15px; border-radius: 10px; }
  .slide { grid-template-columns: 1fr; }
  .slide-img { width: 100%; height: 210px; }
  .slide-actions { flex-wrap: wrap; gap: 10px; }
  .slide-actions button, .row button { flex: 1 1 auto; padding: 12px 14px; font-size: 14px; min-height: 44px; }
  .row select { min-width: 100%; }
  header { padding: 18px 0 14px; }
  header h1 { font-size: 21px; }
  #progressText { min-width: 160px; font-size: 13px; }
  textarea, input, select { font-size: 16px; } /* يانفۇندا focus zoom نى توختىتىش */
}
