body {
    font-family: sans-serif;
    font-size: 90%;
    background-color: #f4f4f4;
    margin: 20px auto; /* auto für horizontale Zentrierung */
    display: flex;
    flex-direction: column; /* Anordnung der Elemente untereinander */
    justify-content: center; /* Zentriert den Inhalt vertikal */
    align-items: center; /* Zentriert den Inhalt horizontal */
    min-height: 100vh;
    max-width: 1200px;
    box-sizing: border-box;
}

.login-container {
    background-color: #fff;
    padding: 30px;
    padding-top: 5px;
    padding-bottom: 0px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
    margin-top: 10px;
}

.login-container .link {
    margin-top: 15px;
    font-size: 0.9em;
    text-align: center;
}

.login-container .link p {
    margin-bottom: 0;
}

.register-container {
    background-color: #fff;
    padding: 30px;
    padding-top: 5px;
    padding-bottom: 0px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 400px;
    text-align: center;
    margin-top: 10px;
}

.register-container .link {
    margin-top: 15px;
    font-size: 0.9em;
    text-align: center;
}

.register-container .link p {
    margin-bottom: 0;
}

.privacy-policy-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 850px;
    margin: 20px auto;
    text-align: left;
    line-height: 1.6;
    color: #555;
}

.privacy-policy-container h3 h2{
    color: #555;
    margin-bottom: 15px;
    text-align: left;
}

.privacy-policy-container p,
.privacy-policy-container ul {
    margin-bottom: 10px;
    text-align: left;
}

.privacy-policy-container ul {
    list-style-type: disc;
    margin-left: 20px;
}

.privacy-policy-container li {
    margin-bottom: 5px;
}

.privacy-policy-container a {
    color: #007bff;
    text-decoration: none;
}

.privacy-policy-container a:hover {
    text-decoration: underline;
}

h2 {
    color: #333;
    margin-bottom: 20px;
}

.hinweis {
    color: red;
    margin-bottom: 10px;
}

.error {
    color: red;
    margin-bottom: 10px;
}

div {
    margin-bottom: 35px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-size: 0.9em;
}

input[type="email"],
input[type="text"],
input[type="password"],
input[type="number"] {
    width: calc(100% - 12px);
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    width: 100%;
    margin-top: 10px; /* Für Buttons in Formularen */
    transition: background-color 0.2s ease-in-out;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

.admin-link {
    background-color: #e9ecef;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: inline-block;
}

.admin-link a:first-child {
    margin-left: 5px; /* Entfernt den linken Rand vom ersten Link, um unnötigen Abstand am Ende zu vermeiden */
}

.admin-link a {
    margin-right: 10px;
    margin-left: 10px;
}

.admin-link a:last-child {
    margin-right: 5px; /* Entfernt den rechten Rand vom letzten Link, um unnötigen Abstand am Ende zu vermeiden */
}

p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Styles für Tabellen */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    margin-bottom: 20px;
}

th,
td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

/* Zebra-Muster für die Listen */
table.zebra-table {
    width: 100%;
    border-collapse: collapse; /* Entfernt doppelte Ränder */
    margin-bottom: 20px; /* Etwas Abstand nach unten */
}
table.zebra-table th, table.zebra-table td {
    border: 1px solid #ddd; /* Dezente Ränder für Zellen */
    padding: 8px; /* Innenabstand für Zellen */
    text-align: left; /* Textausrichtung links */
}
table.zebra-table th {
    background-color: #f2f2f2; /* Heller Hintergrund für Kopfzeile */
    color: #333; /* Dunklere Schrift für Kopfzeile */
}

table.zebra-table tbody tr:nth-child(even) {
    background-color: #f9f9f9; /* Sehr heller Grauton für jede zweite Zeile */
}
table.zebra-table tbody tr:nth-child(odd) {
    background-color: #ffffff; /* Weiß für die anderen Zeilen */
}

/* Optional: Hover-Effekt für Zeilen */
table.zebra-table tbody tr:hover {
    background-color: #f1f1f1; /* Etwas dunklerer Hintergrund beim Überfahren mit der Maus */
}

/* Recent transactions small tweaks */
.recent-transactions th.timestamp, .recent-transactions td.timestamp {
    white-space: nowrap;
    width: 1%;
}

/* Styles für Formulare auf der Admin-Transaktionsseite */
form {
    margin-top: 20px;
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #f9f9f9;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box; /* Padding und Border werden in die Breite einbezogen */
}

form div {
    margin-bottom: 10px;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

form input[type="text"],
form input[type="number"] {
    width: calc(100% - 12px);
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

form button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    width: 100%;
    margin-top: 10px;
}

form button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Stil für den Löschen Button */
form button.red-button {
    background-color: #dc3545;
    color: white;
    margin-top: 10px;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.2s ease-in-out;
}

form button.red-button:hover {
    background-color: #c82333;
}

/* Eigene Regel für das zweispaltige Formular-Layout */
.form-layout-full-width {
    max-width: 650px;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

/* Styles für Flash-Nachrichten */
.flashes {
    list-style: none;
    padding: 0;
    margin: 0 auto 15px auto;
    width: fit-content;
    max-width: 550px;
    box-sizing: border-box;
}

.flashes li {
    padding: 10px;
    border-radius: 5px;
    text-align: left;
}

.flashes li.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flashes li.warning {
    background-color: #FFF3E0;
    color: #AF601A;
    border: 1px solid #FFCC80;
}

.flashes li.error {
    background-color: #fdcea1;
    color: #721c24;
    border: 1px solid #fadccb;
}

/* Styles für das Passwortänderungsformular */
.password-form {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #f9f9f9;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.password-form div {
    margin-bottom: 10px;
}

.password-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.password-form input[type="password"] {
    width: calc(100% - 12px);
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.password-form button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    width: 100%;
    margin-top: 10px;
}

.password-form button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Styles für die "in-Table-löschen-Buttons" */
.compact-delete-form {
    display: inline-block;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.compact-delete-form button[type="submit"] {
    margin: 0;
    padding: 2px 5px;
    cursor: pointer;
    vertical-align: middle;
}

/* Styles für das "Neue Transaktion und NFC-Token hinzufügen"-Formular */
form.inline-form-transaction {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #f9f9f9;
    width: 100%;
    max-width: 700px;
    box-sizing: border-box;
}

form.inline-form-transaction label {
     display: block;
     margin-bottom: 5px;
     font-weight: bold;
}

form.inline-form-transaction input[type="text2column"],
form.inline-form-transaction input[type="number2column"] {
     width: auto;
     max-width: 150px;
     flex-grow: 1;
     padding: 8px;
     border: 1px solid #ccc;
     border-radius: 4px;
     box-sizing: border-box;
     font-size: 1em;
}

form.inline-form-transaction input[type="email"],
form.inline-form-transaction input[type="text"],
form.inline-form-transaction input[type="number"] {
     width: auto;
     flex-grow: 1;
     padding: 8px;
     border: 1px solid #ccc;
     border-radius: 4px;
     box-sizing: border-box;
     font-size: 1em;
}

form.inline-form-transaction button[type="submit"] {
    margin-top: 0;
    width: auto;
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    /* align-self: flex-end; */ /* Optional: Richtet den Button am unteren Rand der Reihe aus, falls nötig */
}

form.inline-form-transaction button[type="submit"]:hover {
    background-color: #0056b3;
}

a.styled-link {
  background-color: #2db8ca;
  padding: 8px 12px;
  border-radius: 12px;
  color: #000000;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
}

a.styled-link:hover {
  background-color: #228e9c;
  color: #000000;
}

.qr-code-image {
    max-width: 25%;
}

/* --- STYLES FÜR DAS ZWEISPALTIGE LAYOUT --- */
.container {
    display: flex;
    flex-wrap: wrap; /* Allows columns to wrap on smaller screens if needed */
    width: 100%; /* Nimmt die volle Breite des Elternelements (body max-width) ein */
    align-items: flex-start; /* Stellt sicher, dass Spalten oben beginnen, auch bei unterschiedlichen Höhen */
}

.column {
    padding: 10px;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.left-column {
    width: fit-content; /* NEU: Breite passt sich dem Inhalt an */
    min-width: 200px;   /* Optional: Verkleinert, um flexibler zu sein */
    margin-right: 20px;
}

.right-column {
    flex: 1; /* Passt sich an */
    min-width: 100px; /* Mindestbreite für die rechte Spalte */
    max-width: 350px;;
}

/* Spezifische Formular-Stylings für die rechte Spalte */
.right-column .form-section {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.right-column .form-section h3 {
    margin-top: 0;
    color: #333;
}

.right-column .form-section h4 {
    margin-top: 0;
    color: #333;
}

.right-column form.inline-form-transaction {
    max-width: none; /* Erlaubt dem Formular, die Breite der rechten Spalte zu nutzen */
}

.right-column .action-buttons form {
    margin-bottom: 10px;
    border: none;
    padding: 0;
    background-color: transparent;
    max-width: none;
}

.right-column .action-buttons form button[type="submit"] {
    width: 100%;
}

/* Responsive adjustments - stack columns on smaller screens */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .left-column, .right-column {
        margin-right: 0;
        width: 100%; /* Full width for stacked columns */
        min-width: auto; /* Setzt min-width zurück für gestapeltes Layout */
    }
    .right-column .form-section {
        max-width: none; /* Stellt sicher, dass Formulare die volle Breite auf Mobilgeräten nutzen */
    }
}

form:not(.action-buttons form):not(.compact-delete-form) {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #f9f9f9;
    box-sizing: border-box;
}

.svg-icon {
    width: 28px;
    height: 28px;
    fill: #2db8ca; /* 'fill' ändert die Farbe von SVGs */
}
