/* Form Styling overrides */

.form-input-no-icon {
    padding-left: 16px;
}

textarea.form-input {
    padding-left: 16px;
    min-height: 80px;
    resize: vertical;
    padding-top: 10px;
}


/* Premium styling for HTML select dropdown */

select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%239ca3af' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
    cursor: pointer;
}

select.form-input:focus {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%236366f1' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
}

select.form-input option {
    background-color: var(--bg-secondary);
    color: #ffffff;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 10px;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Termintyp und Uhrzeit Erweiterungen */
.appointment-type-selector {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.radio-label:hover {
    color: var(--text-primary);
}

.radio-label input[type="radio"] {
    accent-color: var(--accent-indigo);
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Custom Time Picker Dropdown */
.time-picker-container {
    position: relative;
    width: 100%;
}

.time-dropdown-panel {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 100;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    gap: 8px;
    min-width: 150px;
    height: 180px;
    user-select: none;
}

.time-dropdown-panel.active {
    display: flex;
}

.time-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* Custom scrollbars for time columns */
.time-column::-webkit-scrollbar {
    width: 4px;
}
.time-column::-webkit-scrollbar-track {
    background: transparent;
}
.time-column::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.time-column-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-align: center;
    padding-bottom: 6px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    position: sticky;
    top: 0;
    background-color: var(--bg-secondary);
}

.time-cell {
    padding: 6px 4px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.time-cell:hover {
    background-color: var(--bg-body);
}

.time-cell.selected {
    background-color: var(--accent-indigo);
    color: #ffffff;
    font-weight: 600;
}

