:root {
    --primary-color: #cfa467;
    --primary-hover: #b88d4f;
    --border-color: #ccc;
    --text-color: #374151;
    --background-color: #ffffff;
    --focus-shadow: 0 0 0 3px rgba(207, 164, 103, 0.2);
}

/* Allgemeine Eingabefeld-Stile */
.input-style,
.search-style-input input,
.textarea-style,
.file-input-style {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-size: 0.9rem;
    color: var(--text-color);
    background-color: var(--background-color);
    outline: none;
    transition: all 0.3s ease;
}

.input-style:hover,
.search-style-input input:hover,
.textarea-style:hover,
.file-input-style:hover {
    border-color: var(--primary-color);
}

.input-style:focus,
.search-style-input input:focus,
.textarea-style:focus,
.file-input-style:focus {
    border-color: var(--primary-color);
    box-shadow: var(--focus-shadow);
}

/* Suchfeld-Stile */
.search-style-input {
    position: relative;
}

.search-style-input input {
    padding-left: 2.5rem; /* Erhöhter linker Abstand */
    padding-right: 2.5rem;
}

.search-icon {
    position: absolute;
    left: 1rem; /* Icon nach links verschieben */
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    width: 1.25rem;
    height: 1.25rem;
    pointer-events: none;
}

.search-results-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Textarea-Stile */
.textarea-style {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
    background-color: var(--background-color);
    outline: none;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 100px;
}

.textarea-style:hover {
    border-color: var(--primary-color);
}

.textarea-style:focus {
    border-color: var(--primary-color);
    box-shadow: var(--focus-shadow);
}

/* Größen für Textareas */
.textarea-style-s {
    height: 100px;
}

.textarea-style-m {
    height: 100px;
}

.textarea-style-l {
    height: 200px;
}

.textarea-style-xl {
    height: 360px;
}

/* Checkbox-Stile */
.checkbox-style {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 0.25rem;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.checkbox-style:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-style:checked::after {
    content: '\2714';
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--background-color);
    font-size: 0.75rem;
}

/* File Input Stile */
.file-input-style::-webkit-file-upload-button {
    visibility: hidden;
    width: 0;
}

.file-input-style::before {
    content: 'Datei auswählen';
    display: inline-block;
    background: #f0f0f0;
    border: 1px solid #999;
    border-radius: 3px;
    padding: 5px 8px;
    outline: none;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 700;
    font-size: 10pt;
}

.file-input-style:hover::before {
    border-color: var(--primary-color);
}

.file-input-style:active::before {
    background: #e3e3e3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .input-style,
    .search-style-input input,
    .textarea-style,
    .file-input-style {
        font-size: 16px; /* Größerer Text für mobile Geräte */
        padding: 0.75rem 1rem; /* Mehr Padding für bessere Touch-Ziele */
    }
}

/* Fügen Sie diese neue Regel hinzu */
.formmodal-xl-body label {
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* Styling für Interview-Inputs */
#newProcessinterviewDetails input[type="date"],
#newProcessinterviewDetails input[type="datetime-local"],
#newProcessinterviewDetails input[type="text"] {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-size: 0.9rem;
    color: var(--text-color);
    background-color: var(--background-color);
    outline: none;
    transition: all 0.3s ease;
}

#newProcessinterviewDetails input[type="date"]:hover,
#newProcessinterviewDetails input[type="datetime-local"]:hover,
#newProcessinterviewDetails input[type="text"]:hover {
    border-color: var(--primary-color);
}

#newProcessinterviewDetails input[type="date"]:focus,
#newProcessinterviewDetails input[type="datetime-local"]:focus,
#newProcessinterviewDetails input[type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: var(--focus-shadow);
}

.date-input-width {
    width: 200px; /* oder eine andere Breite, die Sie als "gesund" empfinden */
    max-width: 100%; /* verhindert, dass das Feld auf kleinen Bildschirmen zu breit wird */
}


/* SEARCH INPUT */

.search-container {
    padding: 0 1rem;
    margin-bottom: 0.5rem;
    margin-top: 2rem;
}

.search-wrapper {
    position: relative;
    width: 18rem; /* Sie können diese Breite nach Bedarf anpassen */
}

.search-input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.search-input:hover {
    border-color: #DAD3D3;
}

.search-input:focus {
    outline: none;
    border-color: #cfa467;
    box-shadow: 0 0 0 2px rgba(207, 164, 103, 0.2);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.search-input:focus + .search-icon {
    color: #cfa467;
}

/* Füge diese spezifischen Styles für den Location Input hinzu */
#locationFilter {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-size: 0.9rem;
    color: var(--text-color);
    background-color: var(--background-color);
    outline: none;
    transition: all 0.3s ease;
}

#locationFilter:hover {
    border-color: var(--primary-color);
}

#locationFilter:focus {
    border-color: var(--primary-color);
    box-shadow: var(--focus-shadow);
}

/* Standard Dropdowns */
.standard_dropdown {
    position: relative;
    width: 100%;
}

.standard_dropdown .selected-option {
    width: 100%;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    font-size: 0.9rem;
    color: #374151;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.standard_dropdown::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    transition: transform 0.2s ease-in-out;
    font-size: 0.65rem; /* Hier reduzieren wir die Größe des Pfeil-Icons */
}

.standard_dropdown .selected-option:focus {
    outline: none;
    border-color: #cfa467;
    box-shadow: 0 0 0 3px rgba(207, 164, 103, 0.1);
}

.standard_dropdown .selected-option:hover {
    border-color: #cfa467;
}

.standard_dropdown.open::after {
    transform: translateY(-50%) rotate(180deg);
}

.custom-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 8px 8px; /* Ändert die Abrundung zu einem leichten Wert */
    overflow: hidden;
    z-index: 10;
    margin-top: 2px; /* Fügt einen kleinen Abstand zwischen dem Dropdown und den Optionen hinzu */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Fügt einen leichten Schatten hinzu */
}
/* Fügen Sie diese neue Regel hinzu, um die letzte Option abzurunden */
.custom-option:last-child {
    border-radius: 0 0 8px 8px;
}
.standard_dropdown.open .custom-options {
    display: block;
}

.custom-option {
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    font-size: 0.85rem;
}

.custom-option:hover {
    background-color: #ebdecc;
}

/* Spezielle Styles für den Nachbesetzungs-Search */
#placementList.search-results-container {
    top: auto;  /* Überschreibt die Standard-Position */
    bottom: 100%;  /* Positioniert die Liste oberhalb des Inputs */
    margin-bottom: 0.5rem;  /* Abstand zwischen Input und Liste */
    border-radius: 0.5rem 0.5rem 0 0;  /* Rundet die oberen Ecken ab */
    border: 1px solid var(--border-color);
    border-bottom: none;
}

/* Anpassung der Schatten-Richtung für die nach oben geöffnete Liste */
#placementList.search-results-container {
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}
