﻿/* ================================
   🔍 Search Field (Minimal Style)
=================================== */

.search-wrapper {
    position: relative;
    max-width: 360px;
    width: 100%;
    margin: 8px 0; /* فاصله از بالا و پایین */
}

.search-input {
    height: 36px;
    padding: 6px 12px 6px 32px;
    font-size: 14px;
    border-radius: 5px;
    text-align: right;
    border: 1px solid #ccc;
    background-color: #fff;
    transition: border-color 0.2s ease;
    width: 100%;
    box-shadow: none; /* سایه حذف شد */
}

.search-input:focus {
    border-color: #4361ee;
    outline: none;
}

/* ✖️ Clear Button */
.search-wrapper .btn-clear {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #888;
    font-size: 0.9rem;
    padding: 0;
    z-index: 2;
}

.search-wrapper .btn-clear:hover {
    color: #000;
}

.search-wrapper .btn-clear.d-none {
    display: none !important;
}

/* ✨ Search Highlight */
mark.search-highlight {
    background-color: #ffe98a;
    color: #000;
    padding: 0.1em 0.25em;
    border-radius: 0.25rem;
}

/* 📱 Responsive */
@media (max-width: 768px) {
    .search-wrapper {
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .search-wrapper {
        max-width: 100%;
    }
}