﻿/* --- Search suggestions dropdown --- */
#subCategories {
    list-style: none;
    margin: 8px 0 0 0;
    padding: 0;
    max-height: 320px; /* dikey scroll için sınır */
    overflow-y: auto; /* dikey scroll kalsın */
    overflow-x: hidden; /* yatay scroll olmasın */
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    width: auto; /* genişliği JS ile input genişliğine eşitleyeceğiz */
    box-sizing: border-box;
    margin-left: 136px;
}

#subCategories .searchOption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    cursor: pointer;
    color: #222;
    font-size: 14px;
    width: 100%;
    column-gap: 12px;
}

#subCategories .searchOption:hover {
    background: #fafafa;
}

.hic-option-left {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    flex: 1;
    min-width: 0; /* sağ bloğa alan bırak */
}

.hic-option-title {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hic-option-root {
    margin-left: auto; /* en sağa hizala */
    padding-left: 0;
    display: inline-flex;
    align-items: center;
    background-color: #ee8502; /* badge arka planı */
    color: #fff; /* badge yazı rengi */
    border-radius: 9999px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    max-width: 40%;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Elemanlar arası ayırıcı çizgi */
#subCategories .searchOption + .searchOption {
    border-top: 1px solid #f0f0f0;
}

/* Gizleme sınıfı - jQuery hide yerine sınıf kullan */
.hic-hidden {
    display: none !important;
}

/* Loading state */
.hic-search-loading {
    color: #666;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    padding: 14px;
    width: 100%;
    text-align: center;
}
.hic-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e6e6e6;
    border-top-color: #ee8502;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    animation: hic-spin 0.8s linear infinite;
}
@keyframes hic-spin { to { transform: rotate(360deg); } }

/* Empty state */
.hic-search-empty {
    color: #999;
    font-size: 13px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    padding: 14px;
    width: 100%;
    text-align: center;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}


