.mojkpd-widget {
  max-width: 640px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-family: inherit;
}

.mojkpd-section {
  margin-bottom: 24px;
}

.mojkpd-title {
  margin: 0 0 12px 0;
  font-size: 18px;
}

.mojkpd-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.mojkpd-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5f5;
  resize: vertical;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 12px;
  background: #ffffff;
}

/* SIGURNI RESET – NE UBIJA BUTTON */
.mojkpd-widget button {
  all: unset;
  box-sizing: border-box;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* HIDDEN = STVARNO HIDDEN */
.mojkpd-widget button[hidden] {
  display: none !important;
}

/* PRAVI KPD BUTTON */
.mojkpd-widget .mojkpd-button {
  padding: 10px 16px;
  border-radius: 8px;
  background-color: #0f172a;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

/* HOVER */
.mojkpd-widget .mojkpd-button:hover {
  background-color: #020617;
}

/* HARD FIX – VRATI TIPKE U ŽIVOT */
.mojkpd-widget .mojkpd-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  padding: 10px 16px !important;
  border-radius: 8px !important;

  background-color: #0f172a !important;
  color: #ffffff !important;

  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;

  cursor: pointer !important;
  white-space: nowrap !important;
}

/* sigurnost */
.mojkpd-widget .mojkpd-button:empty {
  display: none !important;
}

.mojkpd-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}


.mojkpd-result {
  margin-top: 12px;
  font-weight: 600;
  min-height: 24px;
  white-space: pre-wrap;
}

.mojkpd-explain-result {
  margin-top: 10px;
  font-size: 14px;
  color: #0f172a;
  white-space: pre-wrap;
}

.mojkpd-explain-result.is-error {
  color: #b91c1c;
  font-weight: 600;
}

.mojkpd-result.is-error {
  color: #b91c1c;
}

.mojkpd-result.is-success {
  color: #0f766e;
}

.mojkpd-result.is-muted {
  color: #64748b;
  font-weight: 500;
}

.mojkpd-clarify {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1px dashed #cbd5f5;
  background: #ffffff;
}

.mojkpd-clarify-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.mojkpd-clarify-status {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
  white-space: pre-wrap;
}

.mojkpd-clarify-status.is-error {
  color: #b91c1c;
  font-weight: 600;
}

.mojkpd-clarify-question {
  margin-bottom: 10px;
}

.mojkpd-clarify-text {
  font-weight: 600;
  margin-bottom: 6px;
}

.mojkpd-clarify-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mojkpd-clarify-result {
  margin-top: 10px;
  font-weight: 600;
  color: #0f172a;
  white-space: pre-wrap;
}

.mojkpd-clarify-result.is-muted {
  color: #64748b;
  font-weight: 500;
}

.mojkpd-clarify-result.is-error {
  color: #b91c1c;
  font-weight: 600;
}


.mojkpd-clarify-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}


.mojkpd-clarify.is-loading .mojkpd-clarify-option {
  pointer-events: none;
  opacity: 0.6;
}

.mojkpd-trace {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  font-size: 12px;
  line-height: 1.4;
  color: #0f172a;
  white-space: pre-wrap;
}
