@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

html, body {
  font-family: 'Inter', sans-serif;
  padding: 1rem;
  margin: 0;
  background-color: #f9f9f9;
  color: #2e2e2e;
  max-width: 100%;
}

.tab-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.tab-grid button {
  flex: 0 0 calc(50% - 10px);
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 12px;
  background-color: #ffffff;
  color: #2e2e2e;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  min-height: 56px;
}

.tab-grid button:hover,
.tab-grid button.active {
  background-color: #f1f5f9;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

label {
  font-weight: 600;
  display: block;
  margin-top: 1rem;
  color: #1e293b;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 15px;
  background-color: #ffffff;
  color: #2e2e2e;
  box-sizing: border-box;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
}

textarea {
  height: 90px;
  resize: vertical;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23333' d='M0 3h10L5 8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
}

details {
  margin-top: 1rem;
  border: 1px solid #e2e8f0;
  padding: 1rem;
  border-radius: 6px;
  background-color: #fefefe;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: #334155;
  font-size: 15px;
  margin-bottom: 0.5rem;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.actions button {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 12px;
  background-color: #f1f5f9;
  color: #1e293b;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  min-height: 56px;
}

.actions button:hover {
  background-color: #e2e8f0;
}

/* OUTPUT CONTAINERS, semua wajib relative! */
#content-output-container,
#brainstorm-output-container,
#image-output-container,
#video-output-container {
  position: relative;
  margin-top: 1.5rem;
}

/* OUTPUT BOX STYLE */
#content-output,
#brainstorm-output,
#image-output,
#video-output {
  background: #ffffff;
  padding: 40px 20px 20px 20px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  white-space: pre-wrap;
  min-height: 200px;
  font-size: 14px;
  color: #334155;
}

/* COPY BUTTON - selalu absolute di kanan atas output */
#copy-button,
#copy-brainstorm-button,
#copy-image-button,
#copy-video-button {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 4px 12px;
  font-size: 13px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background-color: #f8fafc;
  color: #1e293b;
  cursor: pointer;
  min-width: 60px;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(31,41,55,0.04);
}

#copy-button:hover,
#copy-brainstorm-button:hover,
#copy-image-button:hover,
#copy-video-button:hover {
  background-color: #e2e8f0;
}

/* FORCE tombol copy tetap tampil di kanan atas container output */
#copy-button,
#copy-brainstorm-button,
#copy-image-button,
#copy-video-button {
  position: absolute !important;
  top: 15px !important;
  right: 15px !important;
  z-index: 10 !important;
  display: inline-block !important;
}

/* MOBILE RESPONSIVE - output & tombol copy tetap stabil */
@media (max-width: 480px) {
  html, body {
    padding: 0.75rem !important;
  }
  .tab-grid button {
    flex: 0 0 100%;
  }
  .actions button {
    flex: 1 1 100%;
    font-size: 14px;
    padding: 12px 10px;
  }
  input, select, textarea {
    font-size: 14px;
  }
  #copy-button,
  #copy-brainstorm-button,
  #copy-image-button,
  #copy-video-button {
    top: 8px;
    right: 8px;
    font-size: 12px;
    min-width: 44px;
    padding: 4px 8px;
  }
  #copy-button,
  #copy-brainstorm-button,
  #copy-image-button,
  #copy-video-button {
    top: 8px !important;
    right: 8px !important;
    font-size: 12px !important;
    min-width: 44px !important;
    padding: 4px 8px !important;
  }
}
  
}
