/* Wrapper */
.ai-mat-wrapper {
  display: flex;
  justify-content: center;
  padding: 10px;
  background: transparent;
}

/* Main Box */
.ai-mat-box {
  width: 100%;
  max-width: 400px;
  background: transparent;
  border: 2px solid #c9a875;
  border-radius: 14px;
  padding: 14px 18px;
  color: #f0ece4;
  font-family: 'Poppins', 'Inter', sans-serif;
}

/* Tabs */
.ai-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 8px;
}

.ai-tab {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  color: #b0b0b0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}

.ai-tab .ai-icon {
  font-size: 15px;
}

.ai-tab.active {
  background: none !important;
  color: #f0ece4;
  border: none !important;
  box-shadow: none !important;
}

.ai-tab:hover {
  background: none !important;
  color: #d8d2c4;
}

/* Progress Bar */
.ai-progress {
  height: 3px;
  width: 100%;
  background: #555;
  border-radius: 2px;
  margin-bottom: 18px;
  overflow: hidden;
}

.ai-progress-fill {
  height: 100%;
  width: 35%;
  background: #c9a875;
  border-radius: 2px;
  transition: width 0.35s ease;
}

/* Panels */
.ai-panel {
  display: none;
  min-height: 60px;
}

.ai-panel.active {
  display: block;
}

/* Textarea */
#ai-prompt {
  width: 100%;
  min-height: 50px;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  color: #f0ece4;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.5;
}

#ai-prompt::placeholder {
  color: #8a8a8a;
  font-size: 16px;
}

/* Upload Preview */
.ai-upload-preview {
  border: 1.5px dashed #6a6a6a;
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  color: #999;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.ai-upload-preview:hover {
  border-color: #c9a875;
  color: #c9a875;
}

.ai-upload-preview img {
  max-width: 100%;
  max-height: 160px;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* Bottom Row */
.ai-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
}

/* Plus Button */
.ai-plus-btn {
  width: 48px;
  height: 48px;
  background: transparent;
  border: 2px solid #c9a875;
  border-radius: 10px;
  color: #c9a875;
  font-size: 26px;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s ease;
}

.ai-plus-btn:hover {
  background: #c9a875;
  color: #3a3a3a;
}

/* Create Button */
.ai-create-btn {
  background: #f0ece4;
  color: #1a1a1a;
  border: none;
  padding: 12px 26px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.ai-create-btn .arrow {
  font-size: 16px;
  transition: transform 0.25s ease;
}

.ai-create-btn:hover {
  background: #ffffff;
}

.ai-create-btn:hover .arrow {
  transform: translateX(4px);
}

.ai-create-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 600px) {
  .ai-mat-box {
    padding: 14px 16px;
    max-width: 100%;
  }
  .ai-tabs {
    gap: 16px;
  }
  .ai-tab {
    font-size: 13px;
  }
  #ai-prompt,
  #ai-prompt::placeholder {
    font-size: 15px;
  }
  .ai-plus-btn {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }
  .ai-create-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}