/* =========================================================
   CREATE JOB (AI DANCE / AI VIDEO)
   Kế thừa layout home.html, chỉ custom phần form & card
========================================================= */

/* -------- Model Card nâng cấp -------- */
.model-card {
  position: relative;
  padding: 32px 28px 30px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  border-radius: 18px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* -------- Heading -------- */
.model-card h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}

.model-card p {
  text-align: center;
  font-size: 14px;
  color: #9ca3af;
}

/* -------- Video Preview -------- */
.video-shell {
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6);
}

.video-shell video {
  width: 100%;
  height: auto;
  display: block;
}

/* -------- Form -------- */
.model-card form {
  margin-top: 28px;
}

/* -------- Form Group -------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: #d1d5db;
}

/* -------- Input text -------- */
.form-group input[type="text"] {
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form-group input[type="text"]::placeholder {
  color: #6b7280;
}

.form-group input[type="text"]:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

/* -------- File Input -------- */
.form-group input[type="file"] {
  padding: 10px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: #9ca3af;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group input[type="file"]:hover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
}

/* -------- Submit Button -------- */
.model-card .btn-primary {
  width: 100%;
  margin-top: 6px;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 600;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.model-card .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.45);
}

.model-card .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

/* -------- Feature section spacing -------- */
.features {
  margin-top: 10px;
}

/* -------- Mobile -------- */
@media (max-width: 768px) {
  .model-card {
    padding: 26px 20px;
  }

  .model-card h1 {
    font-size: 22px;
  }

  .model-card p {
    font-size: 13px;
  }
}
/* =========================================================
   CENTER CREATE CARD
========================================================= */

.hero {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.model-list {
  width: 100%;
  display: flex;
  justify-content: center;
}

.model-card {
  max-width: 520px;   /* chiều rộng đẹp cho form */
  width: 100%;
}
/* =========================================================
   CUSTOM FILE UPLOAD
========================================================= */

.file-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.file-upload:hover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
}

.file-btn {
  padding: 8px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.file-name {
  font-size: 13px;
  color: #9ca3af;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-submit-job {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px; /* Khoảng cách giữa chữ và giá */
  padding: 12px 24px;
  font-weight: 600;
  width: 100%; /* Hoặc auto tùy bạn */
}

.price-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: rgba(255, 255, 255, 0.2); /* Nền mờ nhẹ */
  padding: 4px 10px;
  border-radius: 20px; /* Bo tròn hình viên thuốc */
  font-size: 0.9em;
  font-weight: normal;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
/* --- UPLOAD OVERLAY --- */
.upload-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Nền tối mờ */
    z-index: 10000; /* Luôn nằm trên cùng */
    display: none; /* Mặc định ẩn */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.upload-box {
    background: #1a1a1a;
    padding: 30px 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.upload-spinner {
    width: 3rem;
    height: 3rem;
    margin-bottom: 15px;
    border-width: 0.25em;
    color: #0d6efd; 
}

.progress-container {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 15px;
    overflow: hidden;
    height: 8px;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
    transition: width 0.2s ease;
}

.upload-text {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.upload-subtext {
    color: #aaa;
    font-size: 0.9rem;
}

.percent-text {
    color: #0dcaf0;
    font-weight: bold;
    margin-top: 8px;
    display: block;
}




/* === TTS / ELEVENLABS STYLES === */
.tts-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.tts-tab-btn {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}
.tts-tab-btn.active {
    background: rgba(111, 66, 193, 0.2);
    border-color: #6f42c1;
    color: #fff;
    box-shadow: 0 0 10px rgba(111, 66, 193, 0.3);
}

.voice-list-container {
    max-height: 300px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 20px;
}

.voice-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}
.voice-item:last-child { border-bottom: none; }
.voice-item:hover { background: rgba(255, 255, 255, 0.05); }
.voice-item.selected { background: rgba(111, 66, 193, 0.3); border: 1px solid #6f42c1; }

.voice-info { display: flex; align-items: center; gap: 10px; color: #ddd; flex: 1; }
.btn-preview-audio {
    background: none; border: none; color: #0d6efd;
    font-size: 1.2rem; cursor: pointer; padding: 0 10px;
    transition: transform 0.2s;
}
.btn-preview-audio:hover { transform: scale(1.2); color: #fff; }

.char-counter {
    font-size: 0.85rem;
    color: #888;
    text-align: right;
    margin-top: 5px;
    transition: color 0.3s;
}
.char-counter.limit-reached { color: #ff4d4d; font-weight: bold; }

/* Style cho nút chọn giới tính */
.gender-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gender-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.gender-btn.active {
    background: rgba(111, 66, 193, 0.2); /* Màu tím nhạt */
    border-color: #6f42c1;
    color: #fff;
    font-weight: 600;
}
