/* German Date Input Styles */
.german-date-input,
.responsive-date-input {
    position: relative;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.german-date-input:focus,
.responsive-date-input:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.german-date-input.is-invalid,
.responsive-date-input.is-invalid {
    border-color: #dc3545;
}

.german-date-input.is-invalid:focus,
.responsive-date-input.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Date input container */
.date-input-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.date-input-container::after {
    content: '\f073'; /* FontAwesome calendar icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .german-date-input,
    .responsive-date-input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.5rem 0.75rem;
    }
}

/* Error styling */
.date-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success styling */
.date-success {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Placeholder styling */
.german-date-input::placeholder,
.responsive-date-input::placeholder {
    color: #6c757d;
    opacity: 1;
}

/* Disabled state */
.german-date-input:disabled,
.responsive-date-input:disabled {
    background-color: #e9ecef;
    opacity: 1;
    cursor: not-allowed;
}

/* Custom datepicker styles (if using a datepicker library) */
.datepicker {
    z-index: 1051 !important;
}

.datepicker .datepicker-days .table-condensed thead tr:first-child th {
    cursor: pointer;
}

.datepicker .datepicker-days .table-condensed thead tr:first-child th:hover {
    background-color: #f8f9fa;
}