﻿.search-container {
    position: relative;
    display: inline-block;
    background: white;
    padding-top: 20px;
}

.search-icon {
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.3s;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Hafif karartma */
    display: none;
    z-index: 9;
}

.search-box {
    position: absolute;
    top: 46px;
    z-index: 999 !important;
    background: white;
    /* border: 1px solid #ccc; */
    border-radius: 5px;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    /* padding: 10px; */
    display: none;
    width: 340px;
}

.search-input-container {
    display: flex;
    gap: 5px;
    padding: 4px;
}

.search-box input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    outline: none;
    font-size:13px !important;
}

.search-box .arambutonu {
    padding: 8px 12px;
    border: none;
    background: #e86767;
    color: white;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s;
}

    .search-box .arambutonu:hover {
        background: #111;
    }

.search-box ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

    .search-box ul li {
        padding: 8px;
        cursor: pointer;
        border-bottom: 1px solid #eee;
    }

        .search-box ul li:hover {
            background: #f5f5f5;
        }

.search-box.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}
.overlay.active {
    display: block; /* Overlay aktif olduğunda görünür olacak */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

