/* Lextra Lingua - shared admin layout (Update 6)
   Centred form card, preview popup, and lists styled like the public downloads list (index.php #filesTable). */

/* Centred, prominent form */
.lx-form-card {
  float: none !important;
  margin: 0 auto 30px auto;
  padding: 25px 25px 70px 25px;
  text-align: left;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(33, 59, 82, 0.15);
}
.lx-form-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 15px;
}
.lx-form-toolbar .subm-btn { margin: 0; }
.lx-preview-btn i { margin-right: 4px; }

/* Preview popup */
.lx-preview-modal .modal-body { text-align: left; }
.lx-preview-modal .modal-body img { max-width: 100%; height: auto; }
.lx-preview-modal .modal-header .close,
.lx-preview-modal .modal-header .btn-close {
  background: none;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  opacity: .6;
}

/* Lists: same look as the public downloads list */
.lx-list-wrap { margin-top: 10px; background: #fff; border-radius: 6px; }
.lx-list { width: 100%; margin-bottom: 0; border: 0; }
.lx-list thead th,
.lx-list tr:first-child th {
  background: #f8f9fa;
  color: #213b52;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
  vertical-align: middle;
}
.lx-list td { vertical-align: middle; border-top: 1px solid #dee2e6; }
.lx-list td a { text-decoration: none; }
.lx-list tbody tr:hover, .lx-list tr:hover td { background-color: rgba(0, 0, 0, .04); }

/* Shared list search box */
.lx-listsearch {
  position: relative;
  max-width: 420px;
  margin: 0 0 12px auto;
}
.lx-listsearch i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  pointer-events: none;
}
.lx-listsearch .lx-listsearch-input { padding-left: 36px; }
.lx-listsearch-empty td, div.lx-listsearch-empty {
  text-align: center;
  color: #6c757d;
  font-style: italic;
  padding: 12px;
}

/* Update 8: Attesten is a normal link (not a submit button inside the form) */
a.subm-btn.lx-attesten-btn {
  display: inline-block;
  text-decoration: none;
  line-height: normal;
}
a.subm-btn.lx-attesten-btn:hover { text-decoration: none; }

/* Form action buttons (Update 13): compact, one row, never stacked (the card is a flex column) */
.lx-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 15px;
}
.lx-form-actions .lx-action-btn,
.lx-form-toolbar .subm-btn {
  float: none !important;
  width: auto;
  padding: 5px 14px;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: 4px;
}
.lx-form-actions .lx-action-btn:first-child { margin-right: auto; }
