.search-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.search-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    z-index: 1000;
    padding: 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    scrollbar-width: none;
    -ms-overflow-style: none; 
}

.search-modal::-webkit-scrollbar {
    display: none; 
}

.search-modal.active,
.search-modal-backdrop.active {
    display: block;
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.search-modal-title {
    font-size: 20px;
    font-weight: 500;
}

.search-modal-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
}

.search-close-button {
    background: #000000;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    margin: 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-close-button:hover {
    background: #333333;
    transform: scale(1.05);
}

.search-form-section {
    margin-bottom: 20px;
}

.search-trigger {
    cursor: pointer;
    background-color: #ffffff;
    border: 1px solid rgba(14, 15, 12, 0.12);
    border-radius: 8px;
    padding: 10px 20px;
    color: rgba(125, 131, 152, 1);
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    font-style: regular;
    line-height: 150%;
    letter-spacing: 0%;
}

.search-trigger:hover {
    border-color: #d1d5db;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.search-trigger:active {
    transform: translateY(0);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

.search-input-container {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 50px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.search-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    z-index: 1;
}

.search-input-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #22c55e;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-input-clear:hover {
    background: #16a34a;
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.search-results::-webkit-scrollbar {
    display: none; 
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 4px;
}

.search-results-title {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

.search-results-return {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.search-results-list {
    border-radius: 8px;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.search-results-list::-webkit-scrollbar {
    display: none;
}

.search-section {
    margin-bottom: 24px;
}

.search-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
}

.search-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

.search-section-statistic {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.search-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.search-item:hover {
    background-color: #f9fafb;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item--selected {
    background-color: #f0fdf4;
    border: 1px solid #22c55e;
    border-radius: 8px;
    margin: 4px 0;
}

.search-item-image-container {
    width: 36px;
    height: 36px;
    position: relative;
    flex-shrink: 0;
}

.search-item-image {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.search-item-icon-fallback {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.search-item-content {
    flex: 1;
}

.search-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #111;
    margin-bottom: 2px;
}

.search-item-subtitle {
    font-size: 12px;
    color: #6b7280;
}

.search-item-return {
    font-weight: 600;
    font-size: 14px;
}

.search-item-return--positive {
    color: #22c55e;
}

.search-item-return--negative {
    color: #ef4444;
}

.loading-placeholder {
    padding: 20px;
    text-align: center;
    color: #6b7280;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.no-results p {
    font-size: 14px;
    margin-top: 12px;
}

@media (max-width: 768px) {
    .search-modal {
        width: 95%;
        padding: 16px;
        max-height: 95vh;
    }
    
    .search-modal-header {
        margin-bottom: 16px;
    }
    
    .search-modal-title {
        font-size: 18px;
    }
    
    .search-modal-subtitle {
        font-size: 13px;
    }
    
    .search-input {
        padding: 10px 45px 10px 45px;
        font-size: 13px;
    }
    
    .search-item {
        padding: 10px 12px;
    }
    
    .search-item-image-container {
        width: 32px;
        height: 32px;
    }
    
    .search-item-image {
        width: 32px;
        height: 32px;
    }
    
    .search-item-icon-fallback {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
} 