﻿/* ===========================
   Search Panel
=========================== */

.search-panel {
    background: #fff;
    border: 1px solid #E8ECF4;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(15,23,42,.08);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* عنوان */
.search-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1E3A8A;
}

    .search-title svg {
        width: 22px;
        height: 22px;
        color: #2563EB;
    }

/* گروه فیلتر */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .filter-group label {
        font-size: 13px;
        font-weight: 600;
        color: #475569;
    }

/* Select */
.filter-select {
    height: 46px;
    border: 1px solid #D6DDEA;
    border-radius: 12px;
    background: #fff;
    padding: 0 14px;
    font-family: inherit;
    font-size: 14px;
    color: #0F172A;
    transition: .2s;
    cursor: pointer;
}

    .filter-select:focus {
        outline: none;
        border-color: #2563EB;
        box-shadow: 0 0 0 4px rgba(37,99,235,.12);
    }

/* Search */
.search-input-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    height: 48px;
    border: 1px solid #D6DDEA;
    border-radius: 12px;
    padding: 0 44px 0 38px;
    font-family: inherit;
    font-size: 14px;
    transition: .2s;
}

    .search-input:focus {
        outline: none;
        border-color: #2563EB;
        box-shadow: 0 0 0 4px rgba(37,99,235,.12);
    }

.search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #64748B;
}

.clear-search {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #EEF2FF;
    color: #2563EB;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .clear-search:hover {
        background: #DBEAFE;
    }

/* نتیجه */
.search-result-info {
    background: #F8FAFC;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    font-size: 13px;
    color: #475569;
    font-weight: 600;
}

/* Responsive */
@media (max-width:768px) {

    .search-panel {
        border-radius: 16px;
        padding: 14px;
    }

    .filter-select,
    .search-input {
        height: 44px;
    }
}

/* ===========================
   Search Box
=========================== */

.search-card {
    background: #fff;
    border: 1px solid #E8ECF4;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(15,23,42,.08);
}

    .search-card h5 {
        margin: 0 0 16px;
        font-size: 18px;
        font-weight: 700;
        color: #1E3A8A;
    }

.search-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* کادر جستجو */
.search-box {
    position: relative;
}

    .search-box input {
        width: 100%;
        height: 48px;
        border: 1px solid #D6DDEA;
        border-radius: 12px;
        background: #fff;
        padding: 0 42px 0 42px;
        font-family: inherit;
        font-size: 14px;
        color: #0F172A;
        transition: .2s;
    }

        .search-box input::placeholder {
            color: #94A3B8;
        }

        .search-box input:focus {
            outline: none;
            border-color: #2563EB;
            box-shadow: 0 0 0 4px rgba(37,99,235,.12);
        }

/* آیکون جستجو */
.search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #64748B;
    pointer-events: none;
}

/* دکمه پاک کردن */
.clear-search {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #EEF2FF;
    color: #2563EB;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .2s;
}

    .clear-search:hover {
        background: #DBEAFE;
    }

    .clear-search .icon {
        width: 16px;
        height: 16px;
    }

/* ===========================
   Mobile Search Header
=========================== */

.mobile-search-header {
    display: none;
}

@media (max-width:991px) {

    .desktop-search-title {
        display: none;
    }

    .mobile-search-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid #E5E7EB;
    }

        .mobile-search-header h5 {
            margin: 0;
            font-size: 18px;
            font-weight: 700;
            color: #0F172A;
        }

    .drawer-close {
        width: 38px;
        height: 38px;
        border: none;
        border-radius: 10px;
        background: #F3F4F6;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

        .drawer-close .icon {
            width: 18px;
            height: 18px;
        }
}
