.boegen-admin-module,
.boegen-admin-module * {
  box-sizing: border-box;
}

.boegen-shell {
  display: grid;
  gap: 20px;
}

.boegen-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.boegen-topbar h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
}

.boegen-topbar p {
  margin: 4px 0 0;
  color: #5b6472;
  font-weight: 600;
}

.boegen-card {
  background: #fff;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.boegen-card h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  font-weight: 800;
}

.boegen-create-form {
  display: grid;
  gap: 14px;
}

.boegen-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.boegen-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #334155;
}

.boegen-field input,
.boegen-field select {
  width: 100%;
  border: 1.5px solid #d0d7de;
  border-radius: 8px;
  background: #fff;
  padding: 8px 12px;
  font: inherit;
  color: inherit;
}

.boegen-field input:focus,
.boegen-field select:focus {
  outline: none;
  border-color: #25ae7c;
  box-shadow: 0 0 0 3px rgba(37, 174, 124, 0.12);
}

.boegen-field p,
.boegen-created-link small {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 0.82rem;
}

.boegen-submit {
  display: flex;
  align-items: end;
}

.boegen-created-link {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  display: grid;
  gap: 6px;
}

.boegen-created-url,
.boegen-link-token {
  display: inline-flex;
  max-width: 100%;
  border: 1px solid #d6e0ea;
  border-radius: 6px;
  background: #f8fafc;
  color: #1f2937;
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
  padding: 5px 8px;
  cursor: pointer;
  text-align: left;
  word-break: break-all;
}

.boegen-created-url:hover,
.boegen-link-token:hover {
  background: #eef6f3;
  border-color: #25ae7c;
}

.boegen-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.boegen-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.boegen-table th,
.boegen-table td {
  text-align: left;
  vertical-align: middle;
  padding: 12px 10px;
  border-bottom: 1px solid #e2e8f0;
}

.boegen-table th {
  background: #f8fafc;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.boegen-table tr:hover td {
  background: #fbfdfc;
}

.boegen-type {
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 700;
}

.boegen-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.78rem;
  font-weight: 800;
}

.boegen-badge-open {
  background: #fff7ed;
  color: #9a3412;
}

.boegen-badge-ready {
  background: #dcfce7;
  color: #166534;
}

.boegen-badge-done {
  background: #dbeafe;
  color: #1e40af;
}

.boegen-badge-expired {
  background: #fee2e2;
  color: #991b1b;
}

.boegen-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.boegen-btn-download {
  background: #25ae7c;
  border-color: #25ae7c;
  color: #fff;
  padding: 5px 10px;
  font-size: 12px;
}

.boegen-btn-download:hover {
  background: #1a9e6e;
}

.boegen-empty,
.boegen-loading,
.boegen-inline-error {
  color: #64748b;
  text-align: center;
  padding: 30px 18px;
}

.boegen-inline-error {
  color: #b91c1c;
}

@media (max-width: 900px) {
  .boegen-form-grid {
    grid-template-columns: 1fr;
  }
}
