/* Ortak dropdown/select bileşeni — bkz. UI_STANDARDS.md §3 */
.app-select {
    appearance: none;
    -webkit-appearance: none;
    background: #FFFFFF url("/images/icons/chevron-down.svg") no-repeat right 12px center;
    background-size: 14px;
    border: 1px solid #D8DEE9;
    border-radius: 8px;
    padding: 8px 36px 8px 12px;
    font-size: 14px;
    color: #1F2937;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.app-select:focus {
    outline: none;
    border-color: #14B8A6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

/* ---------------------------------------------------------------------
   Özel dropdown bileşeni (app-select.js tarafından native <select>
   üzerine giydirilir). Tarayıcı native açılır listesi kare köşeli ve
   aramasız olduğu için, 5'ten fazla seçenekli listelerde arama kutusu
   içeren, yuvarlak köşeli bu bileşenle değiştirilir. Orijinal <select>
   DOM'da kalır (form gönderimi ve doğrulama için), görsel olarak
   "visually hidden" yapılır.
   --------------------------------------------------------------------- */
.app-select-wrapper {
    position: relative;
    width: 100%;
}
.app-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.app-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #FFFFFF url("/images/icons/chevron-down.svg") no-repeat right 12px center;
    background-size: 14px;
    border: 1px solid #D8DEE9;
    border-radius: 8px;
    padding: 8px 36px 8px 12px;
    font-size: 14px;
    line-height: 1.4;
    color: #1F2937;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.app-select-trigger > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.app-select-trigger:hover {
    border-color: #B9C2D4;
}
.app-select-trigger:focus,
.app-select-wrapper.open .app-select-trigger {
    outline: none;
    border-color: #14B8A6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}
.app-select-trigger.app-select-placeholder {
    color: #8A93A6;
}
.app-select-trigger.app-select-error {
    border-color: #DC3545;
}
.app-select-wrapper.disabled .app-select-trigger {
    background-color: #F3F5F9;
    color: #9AA3B5;
    cursor: not-allowed;
}
.app-select-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 1050;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid #E3E7EF;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 27, 61, 0.14), 0 2px 6px rgba(15, 27, 61, 0.08);
    padding: 6px;
}
.app-select-wrapper.open .app-select-menu {
    display: flex;
}
.app-select-wrapper.drop-up .app-select-menu {
    top: auto;
    bottom: calc(100% + 6px);
}
.app-select-search {
    border: 1px solid #E3E7EF;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
    color: #1F2937;
    margin-bottom: 6px;
    outline: none;
    flex: 0 0 auto;
}
.app-select-search:focus {
    border-color: #14B8A6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}
.app-select-list {
    overflow-y: auto;
    max-height: 240px;
    flex: 1 1 auto;
}
.app-select-option {
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 14px;
    color: #1F2937;
    cursor: pointer;
}
.app-select-option:hover,
.app-select-option.highlighted {
    background-color: #EAFBF8;
    color: #0F766E;
}
.app-select-option.selected {
    font-weight: 600;
    color: #0F766E;
    background-color: #E6F7F5;
}
.app-select-option.disabled {
    color: #B4BCCB;
    cursor: not-allowed;
    background-color: transparent;
}
.app-select-empty {
    padding: 10px;
    text-align: center;
    color: #9AA3B5;
    font-size: 13px;
}
