.search-container {
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 100%;
    max-width: 700px;
    padding: 0px 25px;
}

.search-box {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    padding-left: 15px;
}

.search-box:focus-within {
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.2);
}

.search-icon {
    color: #666;
    pointer-events: none;
    margin-right: 10px;
}

.search-box .back-button {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    margin-right: 8px;
    font-size: 14px;
    font-weight: 800;
    color: #333;
    background-color: #f0f0f0;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 36px;
    white-space: nowrap;
    gap: 6px;
}

.search-box .back-button i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.search-box .back-button:hover {
    background-color: #e0e0e0;
    border-color: #c0c0c0;
}

.search-box .back-button:hover i {
    transform: translateX(-2px);
}

.search-input {
    flex-grow: 1;
    width: auto;
    padding: 12px 15px 12px 0;
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    background: transparent;
    outline: none;
}

.search-input::placeholder {
    color: #999;
}

/* New style for when search input displays segment/focus info */
.search-input.displaying-info {
    font-style: italic;
    color: #6a6a6a; /* Muted, but readable */
    /* cursor: default; /* Optional: if you want to change cursor */
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    padding: 15px;
    display: none;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.search-results.active {
    display: block;
}

.search-section {
    margin-bottom: 20px;
    display: block;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-content {
    margin-bottom: 15px;
}

.search-result-item {
    padding: 3px 12px;
    margin: 5px 0;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
    color: #333;
    display: flex;
}

.search-result-item:hover {
    background-color: #f5f5f5;
}

.search-divider {
    height: 1px;
    background: #eee;
    margin: 10px 0;
}

.organizations-section .search-result-item {
    border-left: 3px solid #4CAF50;
}

.segments-section .search-result-item {
    border-left: 3px solid #2196F3;
}

.subsegments-section .search-result-item {
    border-left: 3px solid #FF9800;
}

.categories-section .search-result-item {
    border-left: 3px solid #9C27B0;
}

.people-section .search-result-item {
  border-left: 3px solid #E1306C;
}

/* Person (kişi) arama sonucu için özel stiller */
.search-result-item.person {
    display: flex;
    align-items: center;
}

.search-result-item.person img {
    width: 35px;
    height: 35px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 8px;
}

.search-result-item.person .person-name {
    font-weight: 500;
}

.search-result-item.person .person-title {
    color: #888;
    font-size: 0.95em;
    margin-left: 4px;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .search-container {
        left: 0px;
        transform: translateX(0%);
    }

    .search-container {
        max-width: 100%;
        width: 100%;
        margin-top: 0px;
    }
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 8px 12px; /* Biraz daha fazla boşluk */
    gap: 10px; /* Elemanlar arası boşluk */
}

/* Kişi sonuçlarına özel stiller */
.search-result-item.person {
    border-left: 3px solid #E1306C;
}

/* Arama sonuçlarındaki fotoğraf için stil */
.search-result-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover; /* Resmin orantısını koruyarak sığdır */
    flex-shrink: 0; /* Küçülmesini engelle */
}

/* İsim ve başlık için bir sarmalayıcı */
.search-result-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden; /* Uzun metinlerin taşmasını engelle */
}

/* İsim stili */
.search-result-name {
    font-weight: 500;
    white-space: nowrap; /* Tek satırda kalmasını sağla */
    overflow: hidden;
    text-overflow: ellipsis; /* Sığmazsa sonuna ... ekle */
}

/* Başlık (Title) stili */
.search-result-title {
    font-size: 0.85em;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}