body {
  font-family: Arial, sans-serif;
  background: #111;
  color: white;
  padding: 40px;
}

.container {
  max-width: 900px;
  margin: auto;
}

input {
  padding: 12px;
  width: 70%;
  font-size: 18px;
  border-radius: 8px;
  border: 1px solid #444;
  background: #222;
  color: white;
}

#generateBtn {
  padding: 12px 18px;
  font-size: 18px;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background: #4f7c00;
  color: white;
  font-weight: bold;
}

#generateBtn:hover {
  opacity: 0.9;
}

.joke-card {
  background: #222;
  padding: 15px;
  margin-top: 12px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid #333;
}

.joke-card:hover {
  background: #333;
}

.selected {
  border: 2px solid lime;
}

.package-output {
  margin-top: 20px;
}

.asset-card {
  background: #181818;
  padding: 18px;
  margin-top: 16px;
  border-radius: 10px;
  border: 1px solid #444;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.card-header h3 {
  margin: 0;
}

.asset-card p {
  margin: 0;
  line-height: 1.6;
}

.button-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: auto;
  flex-wrap: wrap;
}

.button-row button {
  width: auto !important;
  height: auto !important;
  flex: 0 0 auto !important;
}

button.copy-btn,
button.copy-all-btn,
button.download-txt-btn,
button.preview-image-btn {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  line-height: 1;
  color: white;
  transition: opacity 0.2s ease;
}

button.copy-btn,
button.copy-all-btn {
  background-color: #3d6b00;
}

button.download-txt-btn {
  background-color: #2f80ed;
}

button.preview-image-btn {
  background-color: #8b5cf6;
}

button.copy-btn:hover,
button.copy-all-btn:hover,
button.download-txt-btn:hover,
button.preview-image-btn:hover {
  opacity: 0.9;
}

.image-preview-container {
  background: #181818;
  padding: 18px;
  margin-top: 16px;
  border-radius: 10px;
  border: 1px solid #444;
  text-align: center;
}

.preview-image {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid #444;
  margin-top: 12px;
}

.keyword-section,
.upload-section {
  margin-top: 20px;
}

.upload-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.keyword-section textarea,
#erankImportPaste,
#trendKeywords,
.keyword-output-fields textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #444;
  background: #222;
  color: white;
  resize: vertical;
}

.erank-import-section input[type="file"] {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 12px;
  font-size: 14px;
}

.erank-import-file-label {
  margin-top: 12px;
}

.import-keywords-btn {
  padding: 10px 14px;
  font-size: 15px;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background: #2f80ed;
  color: white;
  font-weight: bold;
}

.import-keywords-btn:hover {
  opacity: 0.9;
}

.upload-help {
  color: #aaa;
  font-size: 0.9rem;
  margin-top: 8px;
}

#erankImportStatus.import-status-error,
#keywordSourcesStatus.import-status-error {
  color: #f88;
}

.keyword-source-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 12px;
}

.keyword-source-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  cursor: pointer;
}

.keyword-source-option input {
  width: auto;
  margin: 0;
}

.keyword-output-fields .upload-label {
  margin-top: 14px;
}

.keyword-output-fields .upload-label:first-child {
  margin-top: 16px;
}

.dev-style-test {
  background: #1a2433;
  border: 1px solid #3a5a7a;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 24px;
}

.dev-style-test h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.dev-style-test-note {
  color: #b8c9dc;
  font-size: 0.9rem;
  margin: 0 0 12px;
}

#devStyleTestRun {
  padding: 10px 14px;
  font-size: 15px;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background: #2a5a8a;
  color: white;
  font-weight: bold;
}

#devStyleTestRun:disabled {
  opacity: 0.6;
  cursor: wait;
}

.dev-style-results {
  margin-top: 14px;
}

.dev-style-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.dev-style-table th,
.dev-style-table td {
  border: 1px solid #444;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.dev-style-prompt-row pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.85rem;
  color: #ddd;
}

.dev-style-ok td {
  background: #1e2e1e;
}

.dev-style-expected td {
  background: #2e2a1a;
}

.dev-style-leak td {
  background: #3a1e1e;
}

.dev-style-error td {
  background: #2a2020;
}