body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-width: 450px;
    margin: 0;
}

/* Kasten mit max. Breite */
.container {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    max-width: 500px;
    width: 100%;
}

/* Dark-Mode Anpassungen */
.dark body {
    background-color: #1a202c;
    color: #e2e8f0;
}

.dark .container {
    background-color: #2d3748;
    border: 1px solid #4a5568;
}

/* Labels mit Abstand nach oben */
.form-label {
    display: block;
    margin-top: 12px;
    font-weight: bold;
    color: #333;
}

/* Dark-Mode Labels */
.dark .form-label {
    color: #e2e8f0;
}

/* Dynamisch wachsendes Texteingabefeld */
.input-field {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    resize: none; /* Kein manuelles Ändern */
    overflow-y: hidden; /* Kein Scrollbalken */
}

/* Dark-Mode für Inputs */
.dark .input-field {
    background-color: #4a5568;
    border-color: #6b7280;
    color: white;
}

/* Einheitliche Button-Größe */
.button {
    padding: 10px 16px;
    font-size: 16px;
    line-height: 1.5;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

/* API-Key Button */
.api-key-button {
    background-color: #007bff;
}

/* API-Key entfernen Button */
.remove-key-button {

    color: white;
    margin-left: 8px;
}

/* Hover-Effekte */
.button:hover {
    background-color: #0056b3;
}

.toggle-button:hover {
    background-color: #2d3748;
}

.remove-key-button:hover {
    background-color: #c82333;
}

/* Dark-Mode Buttons */
.dark .button {
    background-color: #2563eb;
}

.dark .toggle-button {
    background-color: #6b7280;
}

.dark .button:hover {
    background-color: #1e40af;
}

.dark .toggle-button:hover {
    background-color: #4a5568;
}

/* Bemerkung generieren (volle Breite) */
.submit-button {
    display: block;
    margin-top: 12px;
    width: 100%;


}

/* Kopieren-Button (jetzt wirklich rechtsbündig) */
.copy-button {
    margin-left: auto;
    float: right;
}

/* Zwei-Spalten-Layout für Alice & Bob */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 12px;
}

/* Radio-Buttons */
.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

/* Verstecke den Standard-Radio-Button */
.radio-label input {
    display: none;
}

/* Eigene Radio-Button Darstellung */
.radio-custom {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #4a5568;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
}

/* Markierter Radio-Button */
.radio-label input:checked + .radio-custom::after {
    content: "";
    width: 8px;
    height: 8px;
    background: #4a5568;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Dark-Mode Radio-Button */
.dark .radio-custom {
    border-color: #e2e8f0;
}

.dark .radio-label input:checked + .radio-custom::after {
    background: #e2e8f0;
}
/* Container für maximale Zeichenanzahl (Flexbox) */
.char-limit-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 12px;
}

/* Eingabefeld für Zeichenbegrenzung */
.char-limit-input {
    width: 100px;
    text-align: center;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* Dark-Mode für das Eingabefeld */
.dark .char-limit-input {
    background-color: #4a5568;
    border-color: #6b7280;
    color: white;
}



/* Dark-/Light-Mode Toggle-Button als Symbol */
.toggle-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    padding: 5px;
    border-radius: 50%;
    background-color: #4a5568;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    float: right;
}

/* Modales Fenster */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Standardmäßig verborgene Modale */
.hidden {
    display: none !important;
}

/* Modal-Inhalt */
.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    text-align: center;
}

/* Fix: Scrollbalken nur in den Modalen erlauben */
.modal-content textarea {
    width: 100%;
    height: 300px; /* Startgröße */
    max-height: 500px; /* Begrenzte Höhe */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: vertical; /* Manuelles Anpassen erlaubt */
    overflow-y: auto; /* Scrollbalken erscheint bei Überlauf */
}

/* Dark-Mode für Modale */
.dark .modal-content {
    background: #2d3748;
    color: white;
}

/* Dark-Mode für Modale */
.dark .modal-content textarea {
    background-color: #4a5568;
    border-color: #6b7280;
    color: white;
}

/* Dark-Mode für Modale */
.dark .modal-content {
    background: #2d3748;
    color: white;
}

/* Beide Buttons nutzen 50% der verfügbaren Breite */
.half-width {
    width: 50%;
    text-align: center;
}

/* Buttons nehmen die maximale Breite mit Abstand */
.full-width {
    width: 48%;
    text-align: center;
}

/* Abstand zur linken und rechten Seite wie bei API-Key-Buttons */
.flex.justify-between.items-center {
    gap: 4%;
}

/* Gleiche Größe wie API-Key-Buttons */
.bot-button, .template-button {
    width: 49%;
    margin-top: 12px;
    text-align: center;
}

/* "Bot-Beschreibung" linksbündig */
.bot-button {
    margin-right: auto;
}

/* "Vorlage" rechtsbündig */
.template-button {
    margin-left: auto;
    float: right;
}

/* Einheitliche Label-Größe */
.form-label {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px; /* Einheitlicher Abstand */
}

/* Eingabefelder einheitlich machen */
.input-field,
.char-limit-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

/* Flexbox für gleichmäßige Größen */
.flex.space-x-4 > div {
    flex: 1;
    min-width: 0;
}

.flex-bottom {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Elemente am unteren Rand ausrichten */
    height: 100%; /* Falls nötig, um den gesamten Container zu nutzen */
}
