/* Clean minimal refresh for the static Dokploy artifact. */
:root {
  --background: 210 20% 98%;
  --foreground: 222 47% 11%;
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;
  --border: 214 24% 90%;
  --input: 214 24% 88%;
  --primary: 221 83% 53%;
  --primary-foreground: 0 0% 100%;
  --muted: 210 20% 96%;
  --muted-foreground: 215 14% 44%;
  --ring: 221 83% 53%;
}

html {
  background: #f8fafc;
}

body {
  background: #f8fafc;
  color: #111827;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

main {
  max-width: 1040px !important;
  gap: 20px !important;
  padding-top: 32px !important;
  padding-bottom: 48px !important;
}

header {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px !important;
  max-width: 760px;
  padding: 0 0 12px;
}

header::before {
  align-items: center;
  background: #2563eb;
  border-radius: 8px;
  color: #ffffff;
  content: "ZIP";
  display: flex;
  font-size: 0.62rem;
  font-weight: 800;
  grid-row: 1 / span 2;
  height: 36px;
  justify-content: center;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-top: 2px;
  width: 36px;
}

header h1 {
  color: #111827;
  font-size: clamp(1.45rem, 2.2vw, 2rem) !important;
  font-weight: 740 !important;
  letter-spacing: 0 !important;
  line-height: 1.1 !important;
}

header p {
  color: #5b677a !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  max-width: 720px;
}

header p:last-child {
  color: #6b7280 !important;
  font-size: 0.84rem !important;
  grid-column: 2;
}

[data-slot="card"] {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  overflow: hidden;
}

[data-slot="card"] > div:first-child {
  border-bottom: 1px solid #e5e7eb;
  padding: 20px 22px 16px !important;
}

[data-slot="card"] > div:first-child h3 {
  color: #111827;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
}

[data-slot="card"] > div:first-child p,
.text-\[hsl\(var\(--muted-foreground\)\)\] {
  color: #6b7280 !important;
}

[data-slot="card"] > div:last-child {
  padding: 22px !important;
}

label {
  color: #374151 !important;
  font-size: 0.82rem !important;
  font-weight: 650 !important;
}

input,
select {
  height: 42px !important;
  background: #ffffff !important;
  border-color: #d1d5db !important;
  border-radius: 8px !important;
  color: #111827 !important;
  box-shadow: none !important;
}

input:hover,
select:hover {
  border-color: #9ca3af !important;
}

input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: none !important;
  --tw-ring-color: rgba(37, 99, 235, 0.28) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14) !important;
}

::file-selector-button {
  color: #2563eb !important;
  font-weight: 650 !important;
}

[data-slot="button"] {
  height: 42px !important;
  border-radius: 8px !important;
  font-size: 0.9rem !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
}

[data-slot="button"]:not([href]) {
  background: #2563eb !important;
  border: 0 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

a[data-slot="button"],
[data-slot="button"][href],
[data-slot="button"].border {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  color: #111827 !important;
  box-shadow: none !important;
}

[data-slot="button"]:disabled {
  background: #eef2f7 !important;
  color: #9ca3af !important;
  box-shadow: none !important;
}

.sample-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.sample-action {
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 650;
  height: 36px;
  justify-content: center;
  padding: 0 12px;
  text-decoration: none;
}

.sample-action-primary {
  background: #111827;
  border: 1px solid #111827;
  color: #ffffff;
}

.sample-action-secondary {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #374151;
}

.sample-action:disabled {
  cursor: default;
  opacity: 0.65;
}

.column-image-preview {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 54px minmax(0, 1fr);
  margin-top: 10px;
  padding: 8px;
}

.column-image-preview-frame {
  align-items: center;
  aspect-ratio: 1;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.column-image-preview img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.column-image-preview-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.column-image-preview-label {
  color: #111827;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.column-image-preview-url {
  color: #6b7280;
  display: block;
  font-size: 0.72rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.column-image-preview.is-empty .column-image-preview-frame::before {
  color: #9ca3af;
  content: "IMG";
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.column-image-preview.is-empty img {
  display: none;
}

.grid.md\:grid-cols-5 {
  align-items: start;
  gap: 20px !important;
}

.grid.md\:grid-cols-5 [data-slot="card"]:last-child > div:last-child {
  display: grid;
  gap: 0 !important;
}

.grid.md\:grid-cols-5 [data-slot="card"]:last-child p {
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 0;
  padding: 11px 0;
}

.grid.md\:grid-cols-5 [data-slot="card"]:last-child p:first-child {
  padding-top: 0;
}

.grid.md\:grid-cols-5 [data-slot="card"]:last-child p:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.border-amber-300.bg-amber-50,
.border-red-300.bg-red-50 {
  border-radius: 8px !important;
  box-shadow: none !important;
}

.border-amber-300.bg-amber-50 {
  background: #fffbeb !important;
  border-color: #fcd34d !important;
}

.border-red-300.bg-red-50 {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
}

section.space-y-4 h2 {
  color: #111827;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

article {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
  border-radius: 8px !important;
}

article img {
  background: #ffffff;
  border-color: #e5e7eb !important;
  border-radius: 8px !important;
}

@media (max-width: 767px) {
  main {
    padding: 24px 16px 36px !important;
  }

  header h1 {
    font-size: 1.55rem !important;
  }

  [data-slot="card"] > div:first-child,
  [data-slot="card"] > div:last-child {
    padding: 18px !important;
  }
}
