/* AI Design Generator (design.html). Builds on style.css. */

.design-banner {
  margin: 16px 20px 0;
  padding: 10px 14px;
  background: rgba(248, 81, 73, 0.1);
  border: 1px solid rgba(248, 81, 73, 0.3);
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 13px;
}

.design-conn { margin-bottom: 14px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--border);
  font-size: 11px; color: var(--muted);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.pill[data-state="ok"] .dot { background: var(--success); }
.pill[data-state="down"] .dot { background: var(--danger); }

input[type="text"] { width: 100%; }

.checks { display: flex; gap: 16px; align-items: center; min-height: 36px; }
.checks label { display: flex; align-items: center; gap: 6px; font-size: 13px; margin: 0; cursor: pointer; }

.ref-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ref-list:empty { display: none; }
.ref {
  position: relative; width: 72px; height: 72px;
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--border); background: var(--panel-2);
}
.ref img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ref button {
  position: absolute; top: 3px; right: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  border: none; background: rgba(0, 0, 0, 0.7); color: #fff;
  font-size: 12px; line-height: 20px; padding: 0; cursor: pointer;
}

button.ghost {
  background: none; border: 1px solid var(--border); color: var(--text);
  padding: 5px 12px; border-radius: var(--radius-sm);
  font-size: 12px; cursor: pointer;
}
button.ghost:hover:not(:disabled) { border-color: var(--danger); color: var(--danger); }
button.ghost:disabled { opacity: 0.5; cursor: not-allowed; }

.run { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; max-width: 480px; width: 100%; margin: 0 auto; }
.run-step { font-size: 14px; }
.progress { height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--primary); transition: width 0.4s; }
.run-meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }

.warnings {
  margin: 0 0 14px; padding: 10px 12px 10px 28px;
  background: rgba(210, 153, 34, 0.1); border: 1px solid rgba(210, 153, 34, 0.35);
  border-radius: var(--radius-sm); color: #d29922; font-size: 12px;
}

#expiry { color: var(--muted); font-size: 12px; margin: 14px 0 0; }

.designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.design {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.design-preview { display: block; background: #000; }
.design-preview img { width: 100%; height: auto; display: block; }
.design-preview .no-png { padding: 40px 12px; text-align: center; color: var(--muted); font-size: 12px; }
.design-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; }
.design-actions a {
  font-size: 12px; padding: 5px 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text);
}
.design-actions a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.design-actions a.main { background: var(--primary); border-color: var(--primary); color: var(--primary-text); font-weight: 600; }
.design-actions a.main:hover { background: var(--primary-hover); color: var(--primary-text); }
