/* =========================================
   Nachnamen-Datenbank – Admin Styles
   Design-Finalisierung (v3.1 Final Polished)
   ========================================= */

/* Grundlayout */
body {
  background: #f8f9fa;
  color: #212529;
  font-size: 0.95rem;
}

/* Karten-Design */
.card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Tabellen */
table.table {
  border-radius: 0.5rem;
  overflow: hidden;
}

thead.table-light th {
  background-color: #f1f3f5 !important;
  font-weight: 600;
}

td {
  vertical-align: top;
}

table td:nth-child(4),
table td:nth-child(5) {
  max-width: 300px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Buttons */
.btn {
  border-radius: 0.5rem;
}

.btn-primary {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.btn-outline-secondary:hover {
  background-color: #e9ecef;
}

/* Sprachlinks (Flaggenleiste) */
a[href*="?lang="] {
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

a[href*="?lang="]:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Suchfeld */
#searchInput {
  border-radius: 2rem;
  transition: box-shadow 0.2s ease;
}

#searchInput:focus {
  box-shadow: 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Alert-Meldungen */
.alert {
  border-radius: 0.5rem;
  font-weight: 500;
}

.alert-success {
  border-left: 4px solid #198754;
}

.alert-warning {
  border-left: 4px solid #ffc107;
}

.alert-danger {
  border-left: 4px solid #dc3545;
}

/* Pagination */
.pagination .page-link {
  border-radius: 0.4rem;
}

/* Footer */
footer {
  margin-top: 3rem;
  padding-bottom: 1rem;
}

footer {
  margin-top: 2rem;
  color: #6c757d;
}


footer a {
  color: inherit;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}




/* Tab-Design in translate.php */
.nav-tabs .nav-link.active {
  background-color: #fff !important;
  border-bottom-color: transparent !important;
}

/* Hover-Highlight für Tabellenzeilen */
#namenTable tbody tr:hover {
  background-color: #f8f9fa;
}

/* Automatische Markierung nach Aktionen */
.highlight-row {
  background-color: #d1e7dd !important;
  transition: background-color 2s ease;
}

/* iFrame Demo Codeboxen */
pre {
  background: #f1f3f5;
  padding: 0.75rem;
  border-radius: 0.5rem;
}

/* Kleinere Anpassungen für Mobilgeräte */
@media (max-width: 768px) {
  table td:nth-child(4),
  table td:nth-child(5) {
    max-width: 180px;
  }
  h3 {
    font-size: 1.2rem;
  }
}
